Questions tagged [distance]
The measure of separation between two entities or locations that may or may not be connected, such as two points.
1,566
questions
0
votes
0
answers
24
views
NNJoin plugin crash
I'm trying to run NNjoin plugin to compute nearest distance between my plot and buildings (urban) but I'm having this error :
Here are my files (maybe not projected yet but it should be in ESPG 23839)
...
1
vote
2
answers
57
views
ST_Distance from one location to several locations on the same table
I have a table that contains different city buildings called "gebaeude_salzburg".
I want to calculate the distance of all the buildings of the type='school' and 'kindergarten' to the central ...
0
votes
0
answers
28
views
How to calculate a specific distance along a multilinestring from a specific point in QGIS
I have a shapefile of a road network and another one with some points. What I should achieve is calculating a fixed distance (e.g., 10 km) in all directions along the road network, starting from the ...
3
votes
1
answer
153
views
Get convex hull of polygons if they are within a certain distance of each other otherwise leave their geometries alone
What the question says, I want to join geometries together (as a convex hull) if they are within a certain distance of each other, and leave them as separate geometries if they have no neighbors ...
2
votes
1
answer
70
views
Multiple operations within Field Calculator using the same IF statement
I have 2 layers (Point_Orien_Vert - red points and Point_Centroides - green points), both are Point Geometry.
I need first to check if the distance between one feature in Point_Orien_Vert and one ...
0
votes
0
answers
30
views
QGIS shortest line between features cannot return 0,0?
I have been out measuring railway tracks. I need to find any deviations from a straight line on the individual rails. I have created a line between the first and last point in my measurement (snapping ...
0
votes
0
answers
35
views
How to select lines within a distance of a certain point?
I am currently dealing with the following issue:
I have a dataset with of the roads of a certain place in The Netherlands. Within this place I added two points.
I would like to know all the roads ...
3
votes
2
answers
113
views
Calculating sum of Euclidian distances from one point to multiple points within buffer in QGIS
I want to calculate the sum of the inverse distances from one main point to multiple other points within a buffer around the main point in QGIS
I have a point file with multiple home addresses (red ...
4
votes
1
answer
70
views
Extract longest distance between a point and the edge of a polygon for multiple polygons in QGIS
I want to calculate the longest distance between the edge of a polygon and the point that is inside it (or if no point is inside, then the closest point). The polygons are catchments and the ...
0
votes
1
answer
26
views
Why is r.grow.distance in GRASS GIS returning a raster with all values = 0?
I'm trying to create a raster map that contains "Euclidean" distances to roads from another raster that contains said roads, by using r.grow.distance in GRASS GIS. The command executes ...
6
votes
3
answers
332
views
Calculating point density as attribute in point layer in QGIS
For each point in my layer, I would like to calculate the number of other points within x distance, and for that information to be in the attribute table.
I have a method but it is a few steps. As it ...
0
votes
1
answer
26
views
GRASS build polylines based on category/ID (v.net.distance)
I have calculated shortest routes between citywide origin-destination pairs with GRASS and v.net.distance. These routes are segmented, however, and I would like to turn them into polylines based on ...
0
votes
1
answer
66
views
How to calculate GPS offset given azimuth(bearing) angle and slope distance and inclination angle of the object
If there is an object (tree) which gives back the below data measured from a given GPS location:
Azimuth angle
Slope distance to the tree or object
Inclination angle to the tree or object.
How to ...
3
votes
2
answers
277
views
How to draw 8 lines away from every point in a layer using QGIS?
In QGIS I have a layer of many points, and I am trying to draw 8 lines of radius, r, from each point outwards, in the eight windrose directions (N, NE, .. etc). What is one method that can be used to ...
0
votes
0
answers
17
views
Map location of unknown point coordinates with two known coordinates and distances between them [duplicate]
I have a problem where I need to find the coordinates of a point which is the intersecting point of two circles. I found a similar question on stackoverflow.
I understood to some extent, but not able ...
0
votes
0
answers
11
views
Creating table from distance raster
I have made a distance raster in ArcMap using the Euclidean Distance tool from one town to another that appears to be OK (see attached image). I'm trying to determine the distance from each parcel in ...
1
vote
1
answer
41
views
Minimized distance between points while staying INSIDE of a designated polygon
I am a fisheries student and am currently tracking fish movement in a lake. I am trying to assess their optimum/minimized distance moved between each sequential location for each fish. However, I can ...
0
votes
0
answers
43
views
Calculating average of nearest neighbour distance between points in grid
As a novice ArcMap user, I would like to calculate the average of the shortest distances between each point contained in a vector grid.
My inputs are two vector layers : a polygon grid and points.
The ...
0
votes
0
answers
32
views
Accumulated distance between points
I have this piece of code that I can make lines between points and calculate the length of the line, but now I need to calculate the accumulated distance only between the X axis, I managed to use ...
2
votes
1
answer
72
views
Calculate road distance between two points in PostGIS - Resultant distance is not accurate (not even close to the actual distance) [closed]
SELECT
torigin1.id AS origin_id,
tdest1.id AS destination_id,
CASE
WHEN ST_LineLocatePoint(troad.line_string, torigin1.geom) < ST_LineLocatePoint(troad.line_string, tdest1.geom)
THEN ...
0
votes
0
answers
56
views
QGIS raster proximity / distance results too small
Following advice at Raster analysis , Proximity (raster distance) & Units raster proximity, I reprojected my geographic-coords raster to projected (NAD83/UTM zone 17, EPSG:26917), set the project'...
3
votes
1
answer
46
views
Plotting transect line with equally spaced points and get the coordinates in QGIS
In QGIS I am trying to plot a transect line. For this I would like to place points every 500m along a line and get the coordinates of each point, but have not managed to achieve this unfortunately.
Is ...
0
votes
2
answers
34
views
Creating buffer region using ArcMap
I'm trying to exclude a distance of 2km from several built-up area/settlements as an exclusion area.
A little background, I extracted the built-up area from a land use cover map and converted it to ...
1
vote
0
answers
48
views
Unable to get the road network distance between two points in PostGIS
SELECT
sf.id,
sf2.gid,
SUM(ST_Distance(
sfroads.geom,
ST_LineInterpolatePoint(sfroads.geom_latest1,
ST_LineLocatePoint(sfroads.geom_latest1, sf....
0
votes
0
answers
26
views
QGIS Distance to nearest hub wrong point selection for distance calulation
I'm using the graphical modeler in QGIS 3.28.8 to automatically calculate distances of two lines between points, see the picture.
To do this, I'm using Distance to nearest hub (line to hub) and an ...
1
vote
1
answer
57
views
How to Calculate Summary Statistics For Distance Bands in R [closed]
I currently have a shapefile with tourism data by district for the country of Jamaica, but I would like to try and also obtain for each district the average amount of tourism activity in districts ...
1
vote
1
answer
46
views
Number formatting in Elevation Profile in Print Composer for QGIS
I have created the following Elevation Profile in QGIS based on a DEM featuring its distance in metres.
As you can see, the distance axis displays the values in metres, which, for the sake of the ...
0
votes
2
answers
294
views
Attribute nearest raster values to points, only for points within X distance of raster
We have points data which represent places we tied a gillnet (imagine a tennis net underwater) to mangrove roots along the shoreline and subsequently caught (and released) sawfish, a type of shark. ...
1
vote
0
answers
28
views
QGIS: Distance to nearest polygon in another filtered layer
I have two layers, one that collects data and is made up of some hundreds polygons and another that has polygons for cities/towns/villages and includes the number of inhabitants. In the data ...
1
vote
1
answer
40
views
Distance between point layers in QGIS
I have data points where respondents have indicated where they were on vacation (variable pointsSH). In the attribute table of these data points is stored where the people live (the zip code). I also ...
0
votes
0
answers
24
views
Setting distance range in spatial join using ArcMap
I have many city polygons and I want to select some of them with distance range condition from boundary of other polygons. I use WITHIN_A_DISTANCE in spatial join but this item selects even ...
3
votes
1
answer
107
views
Calculating and visualizing interdistances among points in QGIS (Delauney Triangulation)
I have a point layer:
and I would like to calculate and visualize interdistances among the points with lines automatically to see if there is any trend.
The main issue is that if I connect all the ...
2
votes
1
answer
52
views
Calculating the straight distance of non-straight polyline in QGIS
I have a GIS layer of bus stops (MultiLineString), which contain the paint lines that are painted on the asphalt.
The complete bus stop element is in a single MultiLine element. If I select it:
I ...
0
votes
0
answers
113
views
Calculating latitude and longtitude using yaw degree and distance
I have some drone videos and metadatas. I would like to find latitude and longtitude of center of image, if it is possible any point. To do this, I thought I can use altitude and pitch degree. Because ...
0
votes
2
answers
38
views
Use the EucDistance function of ArcPy in PyCharm
I failed to calculate the Euclidean distance with the EucDistance function in the PyCharm. The codes are as follows.
import arcpy
from arcpy import env
from arcpy.sa import *
arcpy.env.overwriteOutput ...
1
vote
2
answers
59
views
QGIS field calcuator expression distance between centroid and point feature of another layer
I look for an expression in QGIS field calculator, that calculates the distance between the centroid (red dot) of polygones (red polygones) of layer 1 and the nearest (point-) feature of layer 2 (...
4
votes
3
answers
204
views
Calculating minimum river width for a route within the river in PostGIS/Python
I have a complex ancient river system containing islands and multiple channels. I also have line segments defining a vessel's path along the river:
I use PostGIS to hold the data, the river system is ...
4
votes
1
answer
200
views
Expression for calculating the longest edge of a polygon rectangle in QGIS
I want to be able to calculate the longest edge of a rectangle polygon to create an expression for a style.
The styled rectangles will have variable orientations, widths and lengths.
I want to use ...
0
votes
0
answers
26
views
Use case for calculating the geometric distance between points in two separate GIS layers
I am trying to calculate the distance between each transformer in one view layer and its respective upline substation (one per transformer) in another view layer. The upline substation is listed in ...
2
votes
1
answer
72
views
Add parallel lines inside an irregular polygon QGIS 3.22 [closed]
I am using QGIS 3.22.10
My end goal is to know the distance a tractor will travel all up when it is seeding an area (the irregular polygon) at 1m distance (single line seeding).
Is there an option to ...
1
vote
1
answer
37
views
How to make interpolation and contour for recording distances on images?
I have a question about interpolation and contours.
In the images from the animal observation cameras, we would estimate the distance from the camera to the animal. In theory, we had the idea of ...
0
votes
1
answer
998
views
How does Geopandas calculate distance between a point and a line?
I am using GeoSeries.distance to calculate the distance between a point and a linestring in a projected coordinate system. How does Geopandas calculate this distance? What is the logic behind the ...
5
votes
1
answer
181
views
Travel time for shortest path (by distance) in QGIS
I have a network with previously calculated and direction-dependent travel time for each edge (speed_fw for drawing direction and speed_bw for against drawing direction). I prepare the network in QGIS ...
4
votes
1
answer
170
views
Derive a raster layer with distance to the nearest forest polygon in QGIS
I am preparing a set of environmental variables and I am fairly new to QGIS.
I am in possession of a land cover raster layer (downloaded from Copernicus) which I have reclassified for my study area ...
2
votes
1
answer
335
views
Calculate the correct OSRM route distance in OpenLayers?
I extended this helpful fiddle by Jonatas Walker
https://jsfiddle.net/jonataswalker/079xha47/
by a route distance output. Here's the JS Code used:
var points = [],
msg_el = document.getElementById('...
1
vote
1
answer
119
views
Distance between individual points within a feature collection and a separate polygon - GEE
I have a feature collection containing 100 points and a raster of ice present in Greenland. My goal is to calculate the distance between each individual point and the patch of ice closest to that ...
1
vote
1
answer
81
views
Calculating distance discrepancy: EPSG 3112 Projection VS GeoDesic (Karney), is ~0.5% difference normal?
I have lat-lng coords in EPSG:4326, and I'm calculating the distance between them (in metres).
Since these are in Australia (and Australia wide, therefore no specific MGA zone projections), I'm using ...
1
vote
1
answer
208
views
Using GeoPandas to calculate distances across continents
GeoPandas distance calculations are non-intuitive: they only work if you convert your data to the right CRS.
Calculating distance over short distances has been explained here:
import geopandas as gpd
...
1
vote
1
answer
74
views
Creating polygon along highways in QGIS
In QGIS 3.30.1 I would like to create a polygon that shows an area of 200 meters on each side of a highway. I already have a shapefile of the entire highway network of Germany but they are just lines. ...
2
votes
0
answers
166
views
QGIS: Calculate distance between two point layers based on matching ID
I have two point vectors in QGIS. One contains several coordinates, which are grouped geographically by a reference in the field name PID.
I also have a point vector of the centroids from each group ...