New answers tagged distance
3
votes
Accepted
Calculating distance from point to line, depending on unique ID using QGIS
You can create a "Virtual Layer", that will join the two layers by plot "ID" then compute the distance:
Go to the menu Layer > Add Layer > Add/Edit Virtual Layer... and enter ...
2
votes
Finding distance between two different point layers in QGIS
I had a similar problem: The Receiver layer had 48600 points and I needed to find the closest point in the Source layer (15900 points).
QGIS>Vector>Analysis Tools> Distance Matrix.
1."...
1
vote
Adding break/vertex on a polyline from points
An easy way to do this is to use the "Snap geometries to layer" tool from the Processing Toolbox with the following options:
Input layer: the polyline you want to add vertices to
Reference ...
1
vote
R Distance from Point to Line: Negative if within shape
Outine solution:
Cast the polygons to lines using st_cast and compute distances of pounts to lines (otherwise you get zero for the distance of points inside polygons).
Use st_intersects on the ...
1
vote
Python: Open a (line) shapefile and calculate distance to point given as a longitude-latitude tuple
Python packages have matured a lot since this question was asked. Here is a complete solution.
import pandas as pd
import geopandas as gpd
# The 2021 Hurricane Ida 2021 track line. From here:
# ...
0
votes
Distance between two points on OSM without routing information
I would give a shot to https://pgrouting.org/docs/tools/osm2pgrouting.html
Download OSM data and import into postgis
Execute pgRouting routines.
Seems simpler, but I haven't tried it myself only ...
Top 50 recent answers are included
Related Tags
distance × 1430qgis × 374
arcgis-desktop × 288
point × 171
postgis × 137
coordinate-system × 123
proximity × 91
r × 90
polygon × 86
raster × 78
arcmap × 78
line × 71
python × 70
latitude-longitude × 57
coordinates × 47
arcgis-10.1 × 43
grass × 40
measurements × 39
distance-matrix × 36
arcgis-10.2 × 35
buffer × 34
gps × 34
arcgis-10.0 × 33
spherical-geometry × 33
shapefile × 32