A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

# Questions tagged [distance]

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

1,185 questions
Filter by
Sorted by
Tagged with
20 views

### Creating raster displaying graduated Distance to polygon or feature using QGIS

I am trying to create a raster which displays the relative distance of a pixel to a set of polygons of a specific value. I have satellite derived fire scar data going back for the last 20 years. For ...
15 views

### Rescaling point distance values

I have a single line feature that I have converted into points that also contains an attribute field with each point distance value along the line. I’ve edited that line (e.g. made it longer, changed ...
34 views

### How to find the points of hausdorff_distance()?

The Shapely hausdorff_distance() function returns a single (scalar) value. Is there a way to get the/a pair of points on both geometries that fit this distance? Similar to how we have ...
56 views

### What Projected or Geographic Coordinate System should I use to calculate km distances between various points on a large scale map? [closed]

I want to measure distances using the distance matrix tool on QGIS between the yellow dots and their closest blue dot. I want my output to be in KM and to be as accurate as possible. I don't want to ...
24 views

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

I have a set of coordinates (WGS_1984) for patients home locations (Point A) and the first facility they visited (Point B). I want to calculate the distance between point A and B for each patient. I ...
30 views

### Finding distance of consecutive points in a GeoPandas data frame

I am trying to find the distance between every consecutive points in a GeoPandas dataframe. Let's say we have the following data frame: import pandas as pd import geopandas data=pd.DataFrame() data['...
35 views

### Moving geometry at same distance in different coordinate systems

I haven't been making tools in ArcPy for a while and stuck in one case. My goal is to create a serie of geometries in a center of current extent by running a script. I.e when I move ArcMap's extent ...
10 views

### Calculating distance from point to feature returned from layer query using ArcGIS API for JavaScript

I have a project where a user clicks on a map and I filter to show all features from a layer that are within a certain distance of the point clicked. That part of things works fine. What is not ...
18 views

### Units used for distance calculations by distance matrix tool of QGIS [duplicate]

I can't seem to get the measure tool to match up with my distance matrix tool regardless of what measurements I use. There are conflicting answers on other posts about this question. Both of my layers ...
16 views

### Preferred methods to create distance layer in Google Earth Engine [closed]

I have a vector fishnet grid (100 x 100 km) of 128 points and a river Shapefile (line) that span the country of Vietnam. I upload them into GEE as Feature Collections. Both vector datasets are ...
20 views

### Finding distance from every point in one layer and every feature in another using ArcGIS Pro

I have two layers. One contains points (lat/lng) and the other contains lakes (polygons). I want to generate a table that shows, for every point, the distance to every lake. What tool in the ...
24 views

### Finding distances associated with change in latitude and longitude at given location [duplicate]

I am writing a program that uses GPS lat and long coordinates and a time change to determine speed with the output in units of m/s (precise to 0.1 m if feasible, but 1 m is sufficient). When ...
25 views

### Are OSM tiles Cartesian at small scale? [duplicate]

I am new to GIS and I want to know if OSM tiles can be taken as a Cartesian reference system at small scale and at which scale this approximation breaks down? For example if I have an OSM map tile of ...
70 views

### Distances in Google Earth Pro

When I use the ruler tool and create a segment between two points, which one of the following is true for the calculated distance?: The geodesic distance calculated over a an ellipsoid The projection ...
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 ...
23 views

### Measuring distance from points to polylines

I have a shapefile with polylines that show railway lines in Africa in different countries.There is another shapefile with points (longs and lats). I want to measure the distance between each point to ...
28 views

### Calculating distance from points to some specific lines using ArcGIS Desktop

I have a shapefile with many points (longs and lats). There is another shapefile which is comprised of many lines (polylines). I want to know whether there is a way to calculate the distance from ...
53 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 ...
42 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, ...
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 ...
81 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 ...
48 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 ...
26 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 ...
23 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 ...
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 ...
14 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 ...
122 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....
66 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 ...
38 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 ...
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 ...
39 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 ...
27 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 ...
57 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 ...
198 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 ...
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....
53 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º ...
97 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 ...
107 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 ...
63 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) ...
59 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 ...
70 views

### Using Geometry.distance_to() in ArcGIS API for Python

I'm calculating distances between points in arcpy or ArcGIS API for Python, and am probably doing something wrong. Hopefully, someone can show me what. Take this as an interactive session with ...
53 views

### Distance between centriod of the polygon and each and every point of the polygon [closed]

I'm trying to calculate the distance between centriod of the polygon and each and every point of the polygon using GeoPandas Python I need to find the distance between centroid(18.9568383649 72....
75 views

### Distance between points inside LineString

I have a collection of geometries represented by a linestring. Each has at least two coordinates. Is it possible to write a SQL that instead of returning coordinates, return a distance between them. ...
56 views

### Calculating distance between point (address) and every road in city using QGIS

I'm new on QGIS, and I'm trying to measure the distance between an address and every road in the city. I used NNjoin but I got only the shortest distance between the address and the nearest road. ...