Questions tagged [distance]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
37 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 ...
Marcus Prull's user avatar
0 votes
0 answers
34 views

Calculating average of nearest neighbour distance between points in grid [duplicate]

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 ...
Tom Gloaguen's user avatar
0 votes
0 answers
31 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 ...
Mestrexama's user avatar
2 votes
1 answer
63 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 ...
Badboy's user avatar
  • 31
0 votes
0 answers
47 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'...
dez93_2000's user avatar
  • 1,039
3 votes
1 answer
41 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 ...
onc's user avatar
  • 31
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 ...
Yfunfur's user avatar
1 vote
0 answers
47 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....
Badboy's user avatar
  • 31
0 votes
0 answers
25 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 ...
abedl's user avatar
  • 1
1 vote
1 answer
52 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 ...
Matt's user avatar
  • 93
1 vote
1 answer
33 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 ...
Trikelians's user avatar
0 votes
2 answers
140 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. ...
dez93_2000's user avatar
  • 1,039
1 vote
0 answers
26 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 ...
Homerun_'s user avatar
  • 115
1 vote
1 answer
35 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 ...
user227676's user avatar
0 votes
0 answers
23 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 ...
coral's user avatar
  • 79
3 votes
1 answer
104 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 ...
HyPhens's user avatar
  • 516
2 votes
1 answer
50 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 ...
Egidi's user avatar
  • 3,788
0 votes
0 answers
75 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 ...
Piko's user avatar
  • 43
0 votes
2 answers
37 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 ...
zongxu li's user avatar
0 votes
1 answer
41 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 (...
Mat Thias's user avatar
4 votes
3 answers
154 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 ...
ronix75's user avatar
  • 41
4 votes
1 answer
168 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 ...
Kat's user avatar
  • 161
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 ...
Nicole's user avatar
  • 19
2 votes
1 answer
69 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 ...
Aagwood's user avatar
  • 99
1 vote
1 answer
35 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 ...
Tim Pirc's user avatar
0 votes
1 answer
569 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 ...
Andrei's user avatar
  • 13
5 votes
1 answer
138 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 ...
winnewoerp's user avatar
4 votes
1 answer
124 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 ...
Danny's user avatar
  • 41
2 votes
1 answer
230 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('...
winnewoerp's user avatar
1 vote
1 answer
71 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 ...
Jack S Marchant's user avatar
1 vote
1 answer
63 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 ...
Melbourne Boi's user avatar
1 vote
1 answer
133 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 ...
moblie's user avatar
  • 113
1 vote
1 answer
67 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. ...
Thomas Schindler's user avatar
2 votes
0 answers
93 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 ...
MrBeardo's user avatar
1 vote
0 answers
37 views

Measuring distance from coast along stream network

I have a stream network I am using to make a suitability model for a species. One of the factors I want to consider is distance from a given point to the coast, so I'm hoping to find a way to create a ...
Young's user avatar
  • 11
5 votes
3 answers
230 views

Using the Advanced Digitizing Panel in QGIS to input distance into UTM layer

I am trying to input (survey) line distance accurately using the Advanced Digitizing Panel. I am working in a layer with a UTM CRS and entering distance based on grid measurements. Unfortunately it ...
Mike's user avatar
  • 91
1 vote
1 answer
106 views

Calculate distance between two sets of x & y values into a new field using ArcMap Field Calculator and Python

I am a novice when it comes to python. I am working on creating a new field that has the distance between two sets of x & y values. I've joined two tables so I have each of their x y values in the ...
JTstone's user avatar
  • 37
0 votes
0 answers
39 views

Using v.distance to classify points far from overlapping polygons always return the same set of polygons

I have two vector layers with the distribution of an animal species. EDIT: I'm showing how the maps look in QGIS, but I'm working in GRASS GIS. First dataset: Second dataset: As you can see, these ...
LT17's user avatar
  • 303
2 votes
1 answer
24 views

Calculate the distance to the sea of several points in ArcMap 10.8

I am a ArcMap user. I have a layer of points representing weather stations located inside an island. In turn, I have another layer (polygon) that represents the boundary of the island. The points ...
David's user avatar
  • 23
3 votes
1 answer
123 views

Calculating distance between two closest points on graph in QGIS

I have a graph layer and a point layer. The points are snapped to the graph. I want to get the distance between the closest points on the graph
barney stinson 2's user avatar
1 vote
1 answer
58 views

Find Euclidean distance based on cell size [closed]

Usually, Euclidean distance is defined as squareroot((x1 - x2)^2 - (y1-y2)^2) but, instead of having x and y values you have a cell size of 20. How can to calculate the Euclidean distance between the ...
Arthur_Morgan's user avatar
0 votes
0 answers
37 views

Cost distance QGIS similar to ArcGIS

I want to create the cost distance raster using a tool from QGIS. I see a lot of old questions about this, but I could not have the answer. When I use the cost distance tool in ArcGIS, the resulted ...
Bárbara Duarte's user avatar
0 votes
0 answers
27 views

How to calculate the distance between multiple points from two layers

I have these two layers (see the picture) that contain point clouds from a radar measurement processing result. I have got to check if the layer in green (from this month) is aligned with the layer in ...
xerxes's user avatar
  • 1
0 votes
1 answer
21 views

Determining locations that contain multiple raster attribute types within a set distance

In ArcGIS Pro 3.0.0: I have a raster dataset of land cover type (LANDFIRE.gov), where each cell is assigned one of many possible land cover types (strings) in the EVT_NAME attribute column. I'd like ...
Erica's user avatar
  • 1
3 votes
1 answer
123 views

How can I calculate the nearest 3D distance (x, y, z) between points in Qgis?

I'm new to Qgis. I have two point groups. One is the points representing the road with an interval of 1 m, and another is the forest area. Each point has x, y, and z values. I want to calculate the ...
Kang's user avatar
  • 33
3 votes
0 answers
52 views

How to create an average polygon from multiple one

I have in a layer multiple polygons representing for 1 point the potential driving distance in 1 hour like this: For each white cross I have 4 different polygons (based on different driving date/time)...
stéphane Briand's user avatar
1 vote
0 answers
25 views

Calculate distanceTo between points consecutively and use an update cursor to fill in a new field in an attribute tablea

I have a shapefile that I need to update with the distance between its points in the order they appear in the attribute table. I've been instructed to do this by using an Update Cursor and the ...
hanbone's user avatar
  • 33
1 vote
0 answers
39 views

QGIS - Find the shortest path on ORS Tools

I have got two layers: Point Layer 1 that has got random 'houses' in a town Point Layer 2 that has got all the post offices in the town My aim is to find the shortest path from each house from layer ...
Galv01's user avatar
  • 53
0 votes
1 answer
185 views

How to measure the distance between two points in the same layer accounting for stream meandering in ArcGIS Pro

I am trying to measure the distance (in meters) between points that are in the same layer and I would like to account for the distance of meanders in the stream if possible. I was able to calculate ...
Reece's user avatar
  • 11
1 vote
2 answers
165 views

Math error when trying to calculate the distance between two coordinates in python

I'm not sure if this is the right place but I am trying to develop a Django site that (among other things) shows public projects within 30 km of a given French commune. It mostly works fine but for ...
Ash_Crow's user avatar

1
2 3 4 5
32