# Questions tagged [distance]

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

1,197 questions
Filter by
Sorted by
Tagged with
8k views

### How to use GeoSeries.distance to get the right answer

When I want the distance between two points [(117.454361,38.8459879),(117.459880 ,38.846255)] (longitude,latitude) on the earth, I take the GeoSeries.distance method, but the method does not give me ...
161 views

### Calculating distance while adjusting for obstacles in ArcGIS Desktop?

I have a global grid of points in the ocean and need to calculate the distance to and identify the closest 10 polygons along the coastline for the entire world while also avoiding crossing land. For ...
26 views

### Distance be between points: XYtoLine “Length” different from Add Geometry Attribute (geodesic) “length geodeisic” (ArcGIS Desktop)

I feel as though this question has definitely been answered but can't seem to find it. Please feel free to link me to appropriate answer. I'm using ArcMap 10.7 for Desktop. I have a set of ...
2k views

### Calculating minimum distance between points using PostGIS

I have a table (tab_Cities with cities which own more than 50000 inhabitants. The table also contains lat, long and the_geom as columns. I can already see the points via QGIS. Now I want to write a ...
27k views

### PostGIS nearest points with ST_Distance, kNN

I need to obtain on each element on one table the closest point of another table. The first table contains traffic signs and the second one the Entrance Halls of the town. The thing is that I can't ...
7k views

### Creating buffer circle x kilometers from point using Python?

I am wanting to create a circle with an inputted radius around a point of predetermined latitude and longitude. I've been trying to use the formula found in this post which uses an algorithm ...
43 views

### Measure GPS distance between two points without using almost any math? (accuracy not required)

I'm programming an application where I save GPS location (lat and long) into each user info. I need to search the nearest users, I can only search using a between() function provided by my database, ...
57 views

### QGIS Buffer distance vs Distance in Distance Matrix

I created Buffer (with Vector, Geoprocessing Tools) with 500 M distance from a point in the map (let's say Point A). I made another point (Point B) and it is not inside the 500 m Buffer. The Distance ...
40 views

### Finding average distance to nearest point

I would like to find out the average distance from high schools (represented as a point in QGIS) to libraries (represented as another point in QGIS) in New York's 32 districts. I have already ...
95 views

### EPSG 3857 vs UTM coordinate

I am trying to understand the difference between the two coordinates system. By so far I grasp that EPSG:3857 is used for a web-based map like Google Maps, OpenStreetMap. I am getting a position (in ...
4k views

### Measuring Distance from Point to Point Along a Path in ArcMap

I am looking at a village and want to find the distance from each house (point) to the pagoda (point). However, I want the distance to be measured along a path (which I digitized as a polyline) and ...
81 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 ...
70 views

### Get median distance from a bunch of points from a assigned location and draw buffer accordingly

I have 2 point layers, say layer A and Layer B Layer A with a bunch of points, Layer B with a single point. I first need to measure all the distances between every single point in layer A and the ...
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 ...
49 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 ...
50 views

### Different distance when using “Measure Line” tool and manually with scale in QGIS 3

Using QGIS's "Measure Line" tool I get a distance of 1.22km between two points. But if I use the scale indicated at the bottom of the screen, 1:50000, and measure with a ruler, the distance is 2.5km (...
33 views

### Distance to value pixels by route

I have polygons layer (around 300 watersheds), points layer (boat route, contains around 20000 points) and land-use raster (modified from CORINE according to the local features, contains values ...
133 views

### Flow Mapper wrong line length calculation

I'm finding some trouble with the length calculation in the Flow Mapper plugin. As you can see in the picture below the length of the 2 lines C001-C021 = 4233.7986... C001-C009 = 6069.3053... is ...
152 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 ...
38 views

### SAR calculating distance between 2 points

I am playing around with ESA's SNAP software and Sentinel-1 data and I was curios if it is possible to measure the ground distance between 2 points in a radar image. For example let's say that I am ...
26 views

### Distance Point x,i from nearest Point x,j report Point x,j ID in r

I have a sample of points villages x,i, and I want to know the distance between each village x,i and the nearest village x,j. The i, and j depicts two different samples. I am able to find the distance ...
110 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 ...
1k views

### Euclidean Distance Extent

I have a basemap w/ GPS points on it, and polygons of certain areas. The polygons fall well within the borders of the basemap. I am trying to generate a Euclidean Distance map of distance to these ...
35 views

### python queries distance the nearest object [closed]

I have 2 point layers, I want to calculate the shortest distance between 2 point layers by python code and enclose the conditions of satisfaction. For example, a point a when there is the shortest ...
43 views

### Calculating distances between selected points from a single point in another layer in QGIS

I'd like to calculate the distances for all competitors to a proposed operation within a certain radius. Layers are: Competitors Possible Competitors Subject Property Market Radius Ultimately, I ...
17 views

### Locate features along routes: measurement unit output?

I am using ArcMap version 10.3.1: I have a polyline (also converted to a route feature) and points layer. All points lie on the line. I want to calculate the distance each point is from either the ...
204 views

### GeoPandas - calculate distance a point from a polygon

t1 = Polygon([(4.338074,50.848677), (4.344961,50.833264), (4.366227,50.840809), (4.367945,50.852455), (4.346693,50.858306)]) t = geopandas.GeoSeries(t1) t.crs = {'init':'espg:4326'} t2 = geopandas....
2k views

### Calculating Distances between coordinates

I have 75 coordinates in WGS84 that I brought in from an Excel table. They are now on my imagery basemap spanning across about a half mile on either side of a dirt road in Prescott National Forest in ...
70 views

### Measure distance to coast along river

I have a dataset on rivers and a dataset on the location of dams. I want to calculate the distance from the dams to the river’s mouth at the coast along the river (not the shortest distance) for those ...
45 views

### Projecting and Measurements

I am looking to project all my data into EPSG::2959 (NAD83 CSRS UTM 18N) as I am working out of Ontario, Canada. Every time I start a project I set the project CRS to EPSG:2959, and then begin to add ...
66 views

### Distance between points along line

How do I determine the distance between points to the neighbor point that connected via the line(road)? In QGIS 3.8.3 I have tried v.distance and v.net.distance but they do not help. The line(roads) ...
34 views

### Find distance between multiple discrete sets of points QGIS3.8

No similar question seems to relate to my issue but I desperately need help with calculating distances. I have a CSV with the residential postcode of 200 000 patients. For each patient, I also have ...
414 views

### Optimize computation distance of million points to lines in Python

I have found questions here of how to compute the distance of a point to a line (manually, with distance method of some libraries...) but my problem is that I need to compute the distance of 4M points ...
28 views

### Point to every other point as dataframe in R

I understand there are several tools out there that can help me accomplish my goal, but I think I'm running into more of a conceptual roadblock. I've tried to implement a fully reproducible example in ...
59 views

### Find 3 closest points in relation to another point

Using QGIS, I have two shapefiles: points representing enterprises (about 50k) points representing towers (about 300) For each enterprise, I need to figure out the three closest towers and their ...
72 views

### 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, ...
1k views

### Shortest path from points in one layer to points in another layer via roads in QGIS

I'm looking for a way to calculate the shortest path from addresses to subway stations via a network of roads. I have the Road Graph plugin, however, the addresses and subway stations are point ...
146 views

### Cleaning GPS tracks from large jump / outliers

Can someone please explain the steps to take in order to eliminate the parts of these linestrings which jump across large distances (not along with the road network)? They were created from GPS ...
201 views

### Deleting “lonely” points in QGIS?

I have a large point dataset of about 5.3 million points. I would like to delete the "lonely" points using QGIS, for example all points with no neighbor within a 5 km radius. The extent of my point ...
519 views

### What does st_hausdorffdistance actually compare?

Does st_hausdorffdistance just look at discreet points used to construct a line segment or does it compare two line segments as a continuous set of points? Also, the points used to construct my line ...
38 views

### Deleting points based on number of neighbours using ArcGIS?

I have one point dataset of around 270,000 points. I have another larger point dataset of about 3.5 million points. I would like to make a 5 km radius around each 270,000 points of the first dataset....
59 views

### Calculating the geographical distance between two points (especially Gnomonic)

I tried to get geographical distance between two points by using spherical trigonometry, Mercator and Gnomonic projection. The detail of 2 points point A ( 15º 55’ S, 5º 44’ W) , B( 32º 19’ N, 64º ...
108 views

### Calculating distance (lat, lon) for geom point using PostGIS

I have point in my db (Postgres postgis): CREATE TABLE geometries (name varchar, geom geometry); With example data: INSERT INTO geometries VALUES ('Point', 'POINT(0 0)'); INSERT INTO geometries ...
53 views

### Distance between points

I have 200 locations of species presence. Now, I want to calculate the distance of nearest point for all 200 points. For example, if there is a cluster of points A,B,C,D,E,F,G,H, then what is the ...
117 views

### Creating Variable Distance Buffers using QGIS

I would like to create variable distance buffers for some points in QGIS 3.4. I have seen in previous posts that there used to be a tool for this in older versions of QGIS, but that this tool wasn't ...
35 views

### Draw several lines to represent the distance to a certain point for several points

It gives a certain point that I want to analyze. I want to see what is the distance of that point from the rest of the x points on the OpenLayers map ... The data comes from external JSON in the ...
98 views

### Calculating destination point using Python

I am trying to write a function that calculates the GPS (decimal) coordinates of a point that is far of a given distance from a given point. Let say that we start from point 1 (The stripe of Dublin) ...
64 views

### PostgreSQL - attach to point table the maxium distance value to edge of containing polygon

I'm trying to find the furthest distance from a point to the edge of the polygon it sits in. The polygons in this case have been converted to vertex points. I have two POINT tables in Postgres (and a ...