# Tagged Questions

The measure of separation between two entities or locations that may or may not be connected, such as two points.

154 views

### Given two lat/longs, how can I tell if they are within 1 mile of each other?

I'm trying to implement a very efficient check to see whether two points are within a mile of each other, or not. My current approach is to compute the Haversine distance, and then check to see if it'...
22 views

### Stream network distance between specific paired points [duplicate]

I have a stream network dataset and am attempting to do a distance analysis between paired points located in two different layers. Ex. I have 500 points in layer A with given coordinates, and then 500 ...
47 views

### Finding distance between points in two different layers along route in ArcMap?

I need to find the distance between points in separate layers along a stream network. I have source sites for macro-invertebrates and sites where they are lacking. I need to find the distance between ...
64 views

### What's the difference between planar and Euclidean distance?

I wanted a straight-line distance. When I was calculating near distance on Arc GIS, I was only given the option between planar and geodesic distance. But people in my field keep referring to my ...
15 views

### What is the relationship between the bearing the 'road' distance between two points?

Given the two points, we know how to calculate the shortest distance between them, and the bearing from one point, in order to reach the other point. Also, we know the loxodromic distance between ...
66 views

### inaccurate distance measurements in Python

I've tried several ways of measuring the distance between two points in my Django application and comparing the results to a reliable measurement. My numbers are way off. For example, I'm assuming the ...
40 views

### Tool to find the nearest points in one layer, ArcGIS

How can I find nearest points in the same layer in ArcMap? I would like to find points that are in the distance of less then 0,5m.
9k views

### Which tools and methods can be used to create isochrones?

I'd like to get an idea for what's involved in creating isochrones for a series of sites, with a reasonable degree of accuracy to the estimates. A general outline would be great, though my scenario ...
25 views

### Can I statistically smooth attributes spatially (using distance/surrounding polygons) in ArcGIS?

I have Census Areas with some of the Census attributes. Is it possible to take an attribute, for example, percentage of people in full time employment, and derive a spatially smoothed version of the ...
74 views

### How to select points with MINIMUM distance of 10 km from a vector line in a country?

Let's do it simple: I have a huge amount of points and some lines in my QGIS map. I want to do a selection just of those points that are minimum 10 km far from the line. Any idea? (I have no ...
21 views

### How to solve “features were not reachable” warning message using v.net.distance in GRASS

I'm using GRASS 7.0.4 under Linuxmint 17.1 KDE. I need to build a raster with the shortest distance from every pixel to a city following a road. I have two shape files, the city (point) and the road (...
70 views

### Calculating distance between points of the same layer

I am using QGIS 2.13 and a layer with hundreds of points. I need to calculate the distance to the nearest point... in the same layer. I tried the distance matrix but I get 0m since the "closest" point ...
74 views

### Calculate distances between records in two tables

I need to identify the nearest 3 childminders (approx 500 records) to the nearest school (approx 120 records). Both the childminders and schools layers reside in PostGIS. Can anyone offer any ...
46 views

### How to find the distance between neighboring points in ArcGIS 10.3?

I have two shape files: one has point features indicating urban centers, the other is a polygon features file that has counties. Each county has one urban center. There are around 2800 counties. I ...
123 views

### integrate elevation and Euclidean distance in ArcGIS for Desktop?

I have a number sequential GPS locations from marked animals - usually 4 to 5 locations per day for 1.5 years - and am trying to delineate seasons based on elevation and distance. From low ...
16 views

### Creating clusters based on nearest distance attribute in ArcMap using ModelBuilder

I am attempting to create a tool via modelbuilder that creates clustering for a polygon feature class based on the distance field attribute (between one polygon to another) that I have created using ...
37 views

### Why distance calculated via pixel size in GeoTiff (EPSG:3857) not equal to Google map or ::skyglyph distance?

I need to understand what's wrong with distance calculated via pixel size. I try to calculate vertical size of GeoTIFF with EPSG:3857. Vertical size in pixels is 4001 pixels and in map units is 2654....
17 views

### Wrong corners distance by geopy's Vincenty Distance formula

I try to calculate distances between corners in raster map. I use answer from this How to get raster corner coordinates using Python GDAL bindings? and make my code. But for some maps results is ...
49 views

### ST_Distance between ST_Centroid and ST_Y

I'm trying to make a ST_Distance between a ST_Centroid and a ST_Y... But ST_Centroid is a geometry and ST_Y is a float. How can I make this? My query: SELECT ST_Distance(ST_Centroid(ST_Collect(...
790 views

### How to access the road graph plugin in python?

I am developing a few scripts in Python for QGIS 1.8 to automate some geo-tasks and one of them would be to calculate the shortest distance from a hospital to each building in a town. I would like to ...
130 views

### Average value of polygons within a set distance from a point

I have two vector layers: one polygon and one point layer. The polygon layer has a value from 1 to 10. I am trying to find the average value for all polygons within or partly within a 1-mile radius of ...
39 views

### Calculating distances (differences?) between two regions?

I am building a machine learning system which predicts the location of tweets as a bounding box (using the google maps API among other things). Since the twitter API also supplies a bounding box, I am ...
56 views

### Getting distance from nearest stream and elevation to nearest stream?

I need to know if there are simple commands for this 2 points: the distance from the nearest stream, D [m], defined as the length of the path that hydrologically connects the location under exam to ...
21 views

### Distance between locations confilct?

Occasionally experimenting in arcmap with openstreetmaps basemap and in google maps i noticed something strange. I measure the distance of 2 locations in google maps (screenshot 1) and on another ...
56 views

### Distance Matrix of two datasets

I have two datasets of the same adresses, one geocoded with Google, the other with Nominatim. Now I want to compare address1 of dataset1 with address1 of dataset2, then address2 of dataset2 with ...
1k views

### Finding projection of point to line?

I have a segment defined by 2 LatLon points(A and B) and a third LatLon point (C). I need an alghorithm, formulae, or some code to find the projection point of C on the segment AB (call this point D) ...
15 views

### QGIS distance matrix projection and alternative output format [closed]

I have around 200 thousand cities around the globe and are in a point shapefile with equidistant conic projection. I use ArcGIS and QGIS but have two problems: When I use distance matrix tool, it ...
35 views

### Discrepancy between CAD and GIS route lengths

I have imported a route from AutoCAD which is marked every kilometre and converted it into a shapefile. I put markers every 100 m using X-Tools. There is a difference between the two sets of markers, ...
309 views

### PostGIS get the distance between two points over a linestring

I have a linestring: LINESTRING(-1.3326397 50.9174932,-1.3319842 50.9166939) and I select two points that lay on that linestring. I would like to get the distance between these two points (in ...
18 views

### Finding closest feature to known point based on road layer?

I am using ArcGIS 10.2, standard I have 3 files: Facilities Storage Road I want to find the closest storage location to our facilities based on the road layer. The spatial join tool doesn't ...
65 views

### Find Distance Between Two Polygons

Given two polygons (point, line, or up to 8 vertices) I need to be able to calculate the shortest distance between them via code I write or a call to an API (I haven't been able to find one that does ...
52 views

### PostGIS distance between multiple points

I have a data set in a PostGIS data base (table name is animals) with the following structure: id (int, pk) | latitude (double) | longitude (double) | type (char) | geom (srid: 4326) In the type-...
34 views

### R script for find the minimum distance [closed]

I need an R code to select which polygon in a shapefile has got the minimum distance from a given point.
898 views

### Is there an R equivalent of NEAR in ESRI ArcGIS?

I have 54 points in one data set A I have 300+ data points in a dataset B. I wish to find the distance for each point in dataset-set B, to points in dataset A. Nearest Neighbor packages appear to ...
55 views

### Call gdal_proximity() from R

I have a raster including eight land cover types (pixel values ranged from 1 to 8): > r class : RasterLayer dimensions : 9887, 30532, 301869884 (nrow, ncol, ncell) resolution : 10, 10 (...
167 views

### Check if point is within radius of another point with Shapely

I've successfully used Shapely with python to check if a point is within one of a set of polygons in a .shp file but now would like to check if a point is within a circle of radius x miles from ...
53 views

### For Loop Maximum Minimum Distance Between Two Lines

I have a table of line/lane ids in a table called matched_lanes, and I am trying to create a lateral query that on each id in the table to find the maximumum minimum distance between each point. I.e....
53 views

### How to calculate shortest distance from start to end of river?

How can I calculate the straight distance from the start to the end point of a river (red line in image)? I don't know how to do this automatically.
267 views

### How to find accurate latitudes and longitudes data for cities? [closed]

I want to put the coordinates of cities in a spatial db and then find cities from a given city at some given distance. I am hoping these functions would be readily available in a spatial db like ...
38 views

### Calculate Geometry function returns underestimated distances

I'm making a map of the Colorado Trail and obtained a set of waypoints taken down the entire trail. I projected the set of waypoints from WGS84 (unprojected) to NAD 83 UTM13N after adding to the data ...
57 views

### How to calculate distance from point to nearest polygoin via road network (polyline) ARCMap 10.3.1

Using ArcMap, is it possible calculate distance from a postcode (point) to nearest polygon using a road network layer (polyline)? As opposed to just calculating Euclidean distance?
742 views

### Measure average distance between two lines with common endpoints

I have two shapefiles, each with a set of lines generated from start and end points. One shapefile has the straight lines generated from the XY To Line tool, while the other has lines generated from a ...
25 views

### How to I change the extents of a Euclidian Distance Raster?

I am calculating the Euclidean distance of a set of points. The output raster truncates the resulting raster image to the farthest north, south, east, and west point. I need the distances to extend ...
68 views

### Shortest distance over water in ArcGIS?

I'm using ArcGIS 10.2 with an advanced license. I'm trying to calculate the shortest distance over water between points (between survey locations at sea, and seabird colonies on land). I have a large ...
27 views

### Measure the distance between points automatically

How can I measure the distance between points referring to the same element in an automated way? In fact I've imported in QGIS buildings downloaded from two different sources and obviously they are ...
82 views

### How to delimit point distances in ArcGIS for Desktop per Thiessen polygon

I have 2 shapefiles. The first set contains x,y coordinates for 1100 hospital locations. The second pair contains x,y coordinates of about 7000 villages that are served by the hospitals. This means ...
69 views

### Find distance from points along lines [closed]

I have two layers, one is a point layer of schools and another is a polyline layer of streets. The end goal is to create a buffer along the lines that is 20 feet from the centerline that goes 1 mile ...
22 views

### Calculating the distance between points and parts of a underlying raster set

I need your help with a calculation of the distance between points (cities in this case) and forest (raster data). Is there a possibility to collate to every city the distance to the nearest forest ...
4k views

### OpenLayers measure tool - instant measurement

I need to use measure tool to measure distances (instant measurement!) in my application. Instant measurement example can be found here. But the main problem is that when I use instant measurement ...
41 views

### Counting points within range using CartoDB?

I have a dataset of users location and want to assign per user how many other users they have within a given range, and updating this value into a table.The dataset name is "users_20160410" and the ...