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

learn more… | top users | synonyms

0
votes
1answer
74 views

How do I measure the distance between two points within a country arcmap

I have two shapefiles with points distributed over the whole world. I would like to measure the distance (like the crow flies in km) from each point in shapefile 1 to the closest point from shapefile ...
0
votes
0answers
51 views

Calculating offset distances perpendicular to parallel lines in shapeile with results written to table using ArcGIS for Desktop?

I have a line shapefile with sets of parallel lines (or sticks on the map) representing the map view of horizontal gas wells that were drilled. I'm looking for tool or Python script to measure the ...
1
vote
0answers
138 views

Why Haversine formula and Web Mercator give different length between two latlng points?

I am calculating the distance between two points given by latlng. However, Google Maps (i.e., web mercator projection) gives me a longer distance than Haversine formula. Which is the most accurate ...
5
votes
2answers
2k views

What's the difference between vincenty and great circle distance calculations?

Python's geopy package features two distance measurements techniques: Great Circle and Vincenty's formulae. >>> from geopy.distance import great_circle >>> from geopy.distance ...
1
vote
1answer
128 views

How to compute distances between points and polygon borders?

I have point data and polygon in vector format. For each point, I want the distance from the point to the border of the polygon. However, if the point is inside the polygon, I want negative distance ...
0
votes
0answers
299 views

How to calculate distance between point feature to multiple polyline features in ArcGIS

I have a GPS track which is basically a point layer. I have different route networks such as - train, tram and bus routes. I want to calculate the distance between each point to nearest features ...
1
vote
1answer
76 views

How to calculate the distance to the nearest coastline from site locations?

I want to calculate the distance to the nearest coastline from my site locations (point shapefile), and possibly the max distance as well. I am using ArcGIS 10.2 and I already have a shapefile of the ...
0
votes
0answers
41 views

Distance Measure appears to be wrong in ArcGIS Desktop?

The distances in my shapefile are completely wrong. I got this shapefile online. Does anyone knows what's going on? I attached two pictures. The shapefile is projected as ...
1
vote
1answer
872 views

How to calculate driving distance/time between two points

I am doing some analysis for our fire rescue department where we are comparing actual response times to fires vs predicted response times. The actual response time analysis is straight forward as I ...
0
votes
0answers
40 views

Calculating driving distances from a number of post codes to a number of services using QGIS

I am hoping to calculate the driving distance from a large number of post codes to their nearest service. I have used the RoadGraph plugin but this only calculates the distance and time from one ...
1
vote
1answer
38 views

Distance between point layers [closed]

I have a point layer with geographic boundaries of an area and another point layer with road network. I want to calculate the distance of each point of road network layer to the points of the ...
1
vote
1answer
148 views

Calculating distance between borders when one polygon inside another polygon?

I am brand new to ArcGIS and having some trouble. I would like to calculate the distances between the border of one polygon to another polygon. However, these polygons overlap. Thus when I use the ...
0
votes
1answer
67 views

How to delimit point distances in ArcGIS for Desktop per thiessen polgyon

I have 2 shapefiles. The first set contains xy pair for 1100 hospital locations. The second pair contains xy of villages about 7000 that are served by the hospitals. This means each hospital serves ...
1
vote
0answers
25 views

distance() function in field calculator gives unexpected results

I have two layers both containing points - each point in the first layer has a corresponding point in the second layer (same primary key). One layer has CRS EPSG:27700 and the other layer has ...
3
votes
1answer
399 views

How to calculate the distance to multiple locations from each cell of my raster?

I'm working with Arcgis 10.1 and Python 2.7.2 How can I calculate the distance to multiple locations from each cell of my raster? I tried euclidean distance but it only provides the distance to ...
1
vote
1answer
58 views

Buffering line in ArcMap is creating smaller buffer than expected?

When I buffer a point (red dot on image) by 3 miles, it is 3 miles on all sides. When I buffer a line (blue line on image) by 3 miles, it is more like 2.67 miles on the sides parallel to the line. I ...
0
votes
1answer
153 views

Find nearby cities by a driving distance radius

I'm studying GIS services to solve one specific need: Given x/y coordinates of one city, I want a JSON result that lists only cities (not facilities) that are nearby the specified city, within a ...
3
votes
3answers
170 views

How to convert points to lines?

I want to convert these points to lines, however they are not sorted sequentially along a line (by ID or FID), i.e. the converted lines zig-zag across the obvious trail of points. How can I join ...
9
votes
2answers
2k views

Calculate Distance between a Polygon and a Point Along a Path

I am very new to ArcGis and am trying to figure out how to do this. Basically, this is what I am trying to do: I have a map of Canada and in it I have polygons representing areas (each about the ...
1
vote
1answer
83 views

Distance of points to nearest polygon edge in ArcGIS 10.2

I have a point feature class that consists of a systematic grid of points across a landscape. I also have a shapefile consisting of several polygons. For each point in the feature class, I'd like to ...
0
votes
3answers
116 views

Using GDAL/C++ to calculate distance in meters

I'm using GDAL in C++, with WGS84. I want to calculate distance between two points in meters. The code snippet below tries to find the distance between 25N/75E and 25N/76E. The code, as is, returns ...
0
votes
0answers
26 views

Generate Near Table (path distance)

I have a number of points and want to get path distance to all "wetland" polygons within 1km. This is very easy with eucDistance in Generate near table, is there a was to alter this to give path ...
0
votes
0answers
17 views

QGIS modal value within distance

I have a vector layer with several values associated to each polygon. I then have a point vector layer. I want to get the mode of each value for polygons within 500 km of each point. I'm not sure how ...
0
votes
0answers
18 views

Distance corresponding to fractions of a minute of lat/long [duplicate]

My GPS is set to degrees minutes fractions of a minute. I am trying to determine the distance represented by a single increment on the Lat and Long of fractions of a minute. IE. traveling from ...
1
vote
1answer
30 views

polygon vertex to vertex distance calculation in arcobjects

I have polygon with multipart (donuts) I want to calculate vertex to vertex distance. I tried to get outer ring vertex to vertex distance and it is working. Could you please tell me how to get inner ...
2
votes
2answers
61 views

Create buffer along shoreline near sample site

I want to look at the land use on the shoreline of a river relative to a specifc point on the river. I have created a point on the shoreline using the Near tool. Following this I am having trouble. I ...
4
votes
2answers
130 views

Calculating average raster to point distances within census tracts

I have some experience using ArcGIS, but mostly with the field calculator in the attribute table/spatial joins, so I apologize if I say something that doesn't make sense. To provide a bit of ...
0
votes
0answers
83 views

Merging rasters which overlap using ArcGIS for Desktop?

I need to merge two rasters which overlap, both indicate distance values. I need the output of the merge to result in the shorter/lower distance value. I am using ArcGIS 10.1. I hope it is more ...
0
votes
0answers
48 views

How to create an attribute table from a Euclidean Distance Raster?

I am trying to create an attribute table from an Euclidean Distance Raster. I get the following error: "error 000423: Only single band integer dataset is a valid input". The ED Raster has actually the ...
1
vote
1answer
29 views

Distance to object, taking into account size of object

I have a number of polygon features on the edge of a lake feature. I also have sample points throughout the lake feature. I am looking to add some sort of indicator for these points as to how ...
1
vote
1answer
58 views

SQLite db with FDO geometries: how to assign ID of point in layer A to closest point in Layer B with SpatiaLite?

How can I assign ID of point in layer A to closest point in Layer B with SpatiaLite (find nearest neighbors for each point in A)? For each point stored in table fdo_fc1 I would like to select one, ...
1
vote
1answer
69 views

How do I generate a distance table using 2 different point files and a line file?

I have two point datasets, one containing multiple transit stops and the other containing multiple schools. I also have a street line dataset. I need to generate a table that gives me the shortest ...
1
vote
1answer
68 views

Postgis ST_Distance query returning inaccurate results

I am using the following query to retrieve records from a postgresql DB @services = Service.select("*, ST_Distance(services.lon_lat, ST_GeomFromText('POINT (lat lon)', 4326)) as ...
3
votes
1answer
101 views

Proof of part of haversine formula?

I'm trying to study how to find the distance between two points if their latitudes and longitudes are given. I have a question about the proof of part of the haversine formula given at Math Forum. ...
3
votes
4answers
8k views

Calculating the minimum distance between points and polygons in QGIS

I have two vector layers: one point and one polygon and I want to calculate the minimum distance of each point from the polygons (ie the distance from the closest point of the closest polygon). Is ...
2
votes
1answer
63 views

Calculating Distances Between Geometry Columns of Differing SRIDs

I am attempting a relatively simple task but have been running into trouble. I have two tables, one which has lat and lon points which were geocoded using google (SRID 3857) and another table which ...
2
votes
1answer
196 views

Calculate longitude length in miles

Suppose I have geographic coordinates of "Saratoga, California, USA" as Latitude: 37°15.8298′ N Longitude: 122° 1.3806′ W I know from here that in case of latitude 1° ≈ 69 miles and that ...
1
vote
0answers
75 views

How to calculate the average point spacing for a layer of points in QGIS?

I have a set of points and want to calculate the average point spacing for further analysis. ArcMap has the 3D Analyst Point File Information for this but I'm searching for an alternative in QGIS. ...
1
vote
1answer
135 views

QGIS Azimuth and Distance plugin length issue

Relative newbie to QGIS and trying to figure out exactly what I'm doing wrong. A couple days ago I had azimuth and distance working perfectly. I was using it in a different project with different ...
2
votes
3answers
574 views

Toblers's Hiking Equation and Slope Dilemma

I'm trying to use Toblers's Hiking equation to determine economical backgrounds of some hillforts. The equation is anisotropic which means that the speed of movement that it calculates differs whether ...
2
votes
1answer
147 views

Distance to nearest hub output not correct

In QGIS 2.6, I'm working with two point layers: center of the population per census tract and stores that accept food stamps. I'm using "distance to nearest hub" to calculate nearest food stamp outlet ...
4
votes
2answers
1k views

Postgis, get the points that are x meters near another point, in meters

I'm trying to find the points within a certain distance, in meters, from another point. I'm using the function ST_Buffer, but I don't get how to express the distance in meters. I'm trying with ...
2
votes
1answer
393 views

Haversine formula to calculate distance between real coordinates?

I need to calculate distance between two stations in a map in order to calculate empirical variogram in ordinary kriging to interpolate temperature data. Calculating distance in kriging using ...
3
votes
1answer
265 views

Performing Point Distance analysis using Basic level license of ArcGIS for Desktop?

I am using ArcView Version 10.1 and I need to perform a point distance analysis like: What is the distance from A to B-Z, B to A-Z, C to A-Z, etc? What are the steps that I take to do this?
2
votes
1answer
3k views

How to calculate pixels per meter ratio, according to Google or Bing map zoom level?

I have an image and detect two points in the image. I want to calculate the distance between these two points. I'm using Google map and Bing map. I have x,y pixel values for both two points zoom ...
16
votes
5answers
9k views

How to cluster spatial data in R?

I am very new to R, so please bear with me : > I have bunch of data points with latitude and longitude. I want to use R to cluster them based on their distance. I have already taken a look at this ...
1
vote
1answer
40 views

How to calculate the shortest path to pass on 7.000 UTM points?

Anyone can give me an advice how to calculate the shortest path with a lot of UTM points? In total I have 7000 points, but it can be grouping 100 or 500. I have knowledges about Java and Python for ...
1
vote
1answer
43 views

Euclidean distance outside a Polygon (ArcMap)

I got some university coursework to analyse the best potential areas for a residential development project and I'm currently doing multi-criteria evaluation. One of the shapefiles in the dataset given ...
1
vote
2answers
257 views

Calculate distance between a set of points: lat and long in QGIS or R

I have shapefiles containing the location of several individuals along several months. Positions were documented with a 30 minutes interval. Tables contain the following data fields: collar (ID), ...
0
votes
1answer
65 views

Euclidean Distance between two lines

I have two lines in ArcMap 10.2.2 and was wondering if it is possible to create a raster showing the Euclidean Distance between them. Like to map each cell on one line to its nearest cell on the other ...