# Questions tagged [distance]

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

1,126 questions
Filter by
Sorted by
Tagged with
1answer
349 views

### Inverse of Euclidean distance in ArcGIS Desktop?

Using ArcGIS Desktop I am trying to do the reverse / inverse of a euclidean distance. For example, I am doing distance to roads analysis. The output from the distance raster shows roads as 0 and areas ...
1answer
61 views

### Cost distance tool to figure out shortest distance over water between 2 points

I have multiple points in a bay and I need to figure out the distance of each point to the nearest inlet, without going over land. I have been told to use the Cost Path or the Cost Distance tool but ...
1answer
36 views

### Measuring distance between features in linear units from vast layer in geographic coordinates in gdal

I have a point layer for a large area. The layer is in a geographic coordinate system. I need to make some distance-aware work with features from this layer. Actually, I need to build a buffer-layer ...
1answer
36 views

### 0.5° × 0.5° to meters

This paper https://www.sciencedirect.com/science/article/pii/S1352231017300936 mentions using a 0.5° × 0.5° resolution grid, and I've tried googling to find out what that means in meters but I come ...
2answers
112 views

### Get latitude and longitude differences by clicking in two locations on the map

Is it possible in QGIS 3.x to click in two places on the map and to get back the X and Y distances between these two locations (latitude and longitude differences). I was hoping there is a plugin ...
2answers
686 views

### Cost-Distance Tool not producing logical answer

I am working on creating a cost catchment based on Tobler's equation in ArcGIS10.1. I feel confident in my cost surface; it produces a raster where each cell equals the time in hours that it would ...
2answers
54 views

### Calculating geodesic distance along a path (lat/lon points) at once?

Using Python 3.7 with Jupyter Notebook on a Win10 x64. I have a list of lat-long tuples representing a path and I want to calculate the total length along that path in meters (or km, miles etc). I ...
1answer
19 views

### Apply function from rgeos package to data sets

I am using gDistance function from rgeos package to calculate the nearest distance from points to a polygon. Originally I used for loop to calculate the distance for each row in my points data set, ...
2answers
45 views

### QGIS changing map options distance units

I want to change the map distance units option in QGIS from metres to centimetres. I am currently using projection British National Grid EPSG 27700. I would like the print composer to print a map ...
10answers
14k 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 ...
1answer
128 views

### Distance between point and line layers & spatial index issue

I am trying to compute on QGIS the distance from some clusters (ie points) to their closest road (ie lines); no need for all combinations, just the distance from each cluster to the closest road. To ...
1answer
24 views

### Raster analysis , Proximity (raster distance)

This is my first message here. I am trying to create a proximity map with the Raster analysis tool. My problem is that I only get two options for distance units , pixels coordinates and georeferenced ...
1answer
286 views

### Difference between Geodetic Distance and Great Circle Distance?

According to Wikipedia: The great-circle distance or orthodromic distance is the shortest distance between two points on the surface of a sphere, measured along the surface of the sphere (as ...
0answers
31 views

### Cross section profile distance not providing accurate distances?

I have created a DEM file, which I am using to draw a cross section along a line to see the variation of height from point A to point B along land seen below. When it use the Profile tool on the ...
2answers
79 views

### Calculate distance covered by points in a shapefile

Is there a way to calculate the total distance covered by thousands of points in a shapefile in ArcMap 10.4 or possibly ArcPro? I am trying to apply a buffer for each point, then dissolve and find the ...
0answers
22 views

### Calculating distance between polylines from same feature class using ArcGIS Desktop?

I have a feature class with multiple lines outlining the extent of a glacier through time. I would like to calculate the distance between consecutive years (i.e two polylines from the same feature ...
3answers
59 views

### Finding accurate distance of a drawing in QGIS

Attached shows a rough drawn image of a pipeline track. I need to measure the pipeline track from one end to the other, e.g from the red and blue square to the other red and blue square, e.g from the ...
0answers
21 views

### Converting distance from km to degrees (WGS84)?

Is there an equation in which I can convert distance in kilometers into degrees? I am performing a Kriging analysis and when I am measuring the distance between the input points (for LAG and Major ...
0answers
31 views

### Creating a distance map from OpenStreetMap data

I would like to create a distance map using OpenStreetMap objects as input objects. To explain what I mean with distance map, let's look at the wikipedia definition: A distance transform, also ...
1answer
40 views

### Optmizing PostGIS minimum distance query

I have the field_1 of my Table_1 that must have the minimum distance between the geometry of my Table_1 and any geometry of my Table_2. To do so, I used a CROSS JOIN (Full Cartesian Product) between ...
0answers
20 views

### Maximum mathematical variation between non-government, non-state, physically contiguous zip codes?

I'm programming a matching list for street addresses, and I'm trying to prioritize different aspects of the address based on likelihood of similarity if both addresses are the same physical location. ...
3answers
1k views

### Finding point in country furthest from boundary? [closed]

i'm trying to find the point in south africa furthest from the sea or a landward boundary. my method thus far: i obtained a first guess at the centre of the inscribed circle and the three segments ...
1answer
2k views

### Automatically reducing polygon size in QGIS?

I am working with two polygon layers (counties & states) which I will 'intersect' to find which counties are within which states. Due to data inaccuracies I have to change all county polygons and ...
1answer
32 views

### Computing x and y distances between two raster maps using GRASS GIS?

I am working with a maximum water elevation raster in which, similarly to using r.grow.distance, I am trying to extract the distance from the each null cell to the nearest water elevation cell. ...
2answers
2k views

### Finding points along a path

I am unsure of the best approach to this problem. I can think of some ways of doing it which I will list below but I am looking for the best and most efficient way of doing this. Problem Given a ...
0answers
26 views

### Error in RGEOSDistanceFunc(spgeom1, spgeom2, byid, “rgeos_distance”) : negative length vectors are not allowed

What does the error in the title mean? I'm fairly new to GIS and can't understand which negative length vectors R is talking about? Here is what I'm doing: I have a csv of lat/long locations of ...
2answers
78 views

### Calculating distance between multiple lines of points in QGIS?

I'm looking to calculate a distance from a sensor reading to that of the nearest sensor reading on a different sensor line, all held within the same points file. Ideally using QGIS. The image below ...
1answer
2k views

### Finding and using data on population density files?

I'm attempting to replicate this map for the state of Nevada in QGIS: source: http://www.bostonfed.org/commdev/c&b/2014/spring/map-distance-to-closest-snap-outlet.htm (A SNAP outlet is just a ...
0answers
230 views

### Finding census block with highest pop. value within census tract using QGIS?

In QGIS, I'm trying to plot a centroid of only the census block with the highest population within each census tract. So there should only be one point per tract- that of the block with the greatest ...
0answers
17 views

### Find closest points using S2, given point and radius

I'm trying to use the go s2 package to find closest points, given a point and a radius (meters). I'm modeling my alg. after dynamodb-geo.js as I'm storing my points in DyanmoDB. I can't seem to get ...
0answers
23 views

### Distance in advanced digitizing not working properly?

I'm trying to remap a papermap of a festival with QGIS. I tried to use the advanced digitalizing tool to set the right distances and angles between the point but noticed that the distance I put in isn'...
1answer
106 views

### Calculating the distance of each pixel in a raster from a point in PostGIS [closed]

I have a raster in PostGIS and a table of points. I want to calculate the distance of each pixel to each point. How can I do that? For example, if 9 pixels and 3 points, then I want to calculate 27 ...
0answers
29 views

### Calculating nearest distance between points and Spatial Polygons in R? [closed]

So right now I have pretty large datasets, about 200,000 (lat,long) locations and a Large SpatialPolygonsDataFrame with a polygons list of length 428386 spread in a single city of around 450 square ...
0answers
724 views

### Calculating distances between n geographical points? [closed]

I would like to calculate the distances between N (an arbitrary number, but usually <50-100) geographical points (e.g. distance between points a, b, c, d, e, that is to say between a and b, a and c,...
0answers
18 views

### Find distance between points and borders

I'd like to ask for your help for the following problem. I would like to find the distance for each points from the nearest border, represented by the polyline feature here. I was thinking about ...
1answer
348k views

### Calculating 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 ...
0answers
44 views

### Getting minimum distance of points with scalable algorithm

I have a number of geographical coordinates with latitudes/longitudes: id | name | lat | lon 1 | New York | 40.730610 | 74.0060 2 | Philadelphia | 75.1652 | 39.9526 3 |...
0answers
42 views

### Shift a lat/lon coordinate based on a distance and direction?

I have a coordinate in (lat/lon). I want to find a new coordinate shifted from this point by 'x' meters in the direction given by a compass bearing (degrees). The distance offset I am hoping to ...
0answers
21 views

### Similarity between two sets of lat/long points

I am trying to measure the similarity between two trajectories (two sets of lat/long points) which are the outputs from two APIs. I am trying to measure the difference between the routes given by ...
1answer
541 views

### Creating distance raster using road network ArcGIS

I'm working with three main layers in ArcGIS- geocoded dental office points, bus stops, and a road network. I would like create something similar to a three ring buffer that accounts for three ...
1answer
48 views

### Table to Distance Between in PostGIS

I am a new user in PostGIS. I need to create a table with the ID_DIR of table A, ID_SQ of table B and have a new column called "Distance" that would be the distance between the ID_DIR and the ID_SQ in ...
1answer
33 views

### Moving points by multiple attributes automatically

I have a shapefile including sightings of birds (points), but the gps points are taken from where the sighting have been made, not where the bird actually are. And in the map I need to show the real ...
4answers
180 views

### Finding distance between buildings and nearest road using QGIS?

I am very new to working with GIS data. I am currently using the QGIS tool to work with the data. I have two datasets: Buildings - polygon shapefile with information about different buildings in a ...
2answers
55 views

### Is there any criterion for measuring the distance between a group of points to origin?

I wonder if is there any criteria to represent the distance of a group of points (in 2D space) to origin? A simple criteria is the mean of distance of each point. But as can be seen in the picture, ...
0answers
38 views

### Is there a difference in using Haversine distance vs re-projecting coordinate frame?

I have a GeoTIFF raster file in the EPSG 4326 (WGS 84) geographic coordinate system. I want to crop a 20 km x 20 km square around a particular (lat, long) coordinate, and save that as a new raster. ...
1answer
12 views

### When I run the Join function on two vector layers the distance field keeps returning “-1”

When joining two point layers by geographic location with the "Each point will be given attribute" selection, I keep getting a NEARDIST of -1.
0answers
40 views

### How to calculate walking distance between multiple addresses? - QGIS

I am working with historical data and I would like to calculate the walking distance between multiple addresses. For instance, in my excel dataset I have someone who lived on 1 Laurierstraat in ...
1answer
56 views

### Nearest Neighbor - return object ID in R

I have a csv file that contains the GPS coordinates of about 100 villages and their unique ID. I have an other csv file with the GPS coordinates of some potential destinations and their unique ID. I ...
1answer
120 views

### Calculating minimum distance in meters of two polygons (defined in lat/long coordinates)?

I'm new to GIS and I'm a bit lost in the terms and concepts, so I'm not sure I'm asking a valid question, but I need to calculate the minimum distance (in meters) of two polygons which are defined in ...
6answers
1k views

### Find Point Along Line at Certain Distance

We have software that returns '5143m from PointA on PathB' and I need to know where that would be without using the measuring tool and snapping to manually trace the line. I am not looking to measure ...