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
votes
0answers
33 views

Distance analysis using barriers

I am not super experienced with ArcMap. I am using ArcMap 10.6 and I need some help getting distance around a barrier. Here is the issue: I have some mark recapture data regarding sea turtles. It is ...
4
votes
2answers
77 views

Shortest path touching all points

I am looking for a solution to derive the shortest route that touches all the points using Python. Please note that This is not a Travelling salesman problem (TSP), in which the route should end ...
4
votes
3answers
80 views

Measuring minimum distances for closest features between two polygon layers in QGIS

I am trying to find a way to measure minimum distance between two polygon layers in QGIS. I have one polygon layer (orange) which represents hunting areas, and one polygon layer (green) which ...
0
votes
0answers
18 views

Fixed distance path to maximise value of raster layer

I am working in ArcGIS, but I think this is a little more a conceptual problem. To summarise, I am trying to find a 10km path that both starts and ends on a road (roads are stored as a shapefile), and ...
3
votes
1answer
52 views

Appropriate distance and CRS

I want to use buffer function using miles or kilometers in Louisiana. I checked Changing unit of measure from degrees to meters in QGIS?. The original CRS is EPSG:4326 - WGS 84 - Geographic and the ...
1
vote
1answer
27 views

Calculate distance from centroid to border of polygon

I'm trying to measure the overall distribution of parks in a certain part of the city. For this, I have already retrieved a layer that consists of the park-polygons, and created a layer of hexagons, ...
0
votes
2answers
42 views

Calculating Commute Between Residential Address and Childcare address

I have an Excel sheet (10,000 + rows) that has the residential address and the provider address. I am trying to see the distance a parent travels to drop their child off to their specific provider. I ...
0
votes
0answers
21 views

Path Distance Allocation tool in ArcGIS Pro, How to infer if source is a road network?

From what I understand, the tool, given a source like a point on map will give the least to highest cost to travel from that point throughout the raster. If my understanding is right, now If I give a ...
0
votes
2answers
35 views

Measure distance between two points

I want to code some converter in C# (I need it for a project), where I get two (or more) coordinate pairs from QGIS, in decimal degree pair format (47.xxxx,19.xxxx). I need to measure the distance ...
2
votes
1answer
56 views

Why does Google Earth Engine say calculating distance on sphere cause error proportional to the latitude difference

The documentation on ee.ImageCollection.distance says that Distances are computed on a sphere, so there is a small error proportional to the latitude difference between each pixel and the nearest ...
0
votes
1answer
36 views

Object in 100 m distance, Error: Operation on mixed SRID geometries

I perform the following query: SELECT * FROM "houses" WHERE (ST_Distance(coordinates, 'POINT(-0.374930 39.478400)'::geometry) < 100) To find houses around 100 meter distance from: 39....
4
votes
1answer
329 views

Average walking distance [closed]

I have OSM network (or city created network, either will work just fine), then I have point layers that corresponds to buildings (or rather entrances) with the number of inhabitants and lastly a point ...
3
votes
1answer
67 views

How to properly generate distance map?

This question is a related to Proximity (raster distance) using ellipsoidal distance What I'm trying to do is to generate a map of distances to roads. At any given point on a map, I want to be able to ...
6
votes
3answers
58 views

Finding distance to points only outside of polygon in QGIS

I've tried using "Intersect" and "Join attribute by location" but these aren't achieving exactly what I'm after. I have a series of points inside and outside a polygon. My aim is ...
2
votes
1answer
390 views

Fastest way to extract the neighbours of a GPS point among millions of other points?

I have millions of GPS point located in the same city. I would like to make spatial bins that contain adjacent points together (GPS points that are within a specific range of each other). I have a ...
2
votes
1answer
43 views

Updating field values if condition met, but leave the original values if condition not met in QGIS

I'm sure this is probably quite simple but I'm still learning the syntax for field calc expressions. I have a points layer with the field "Distance" that I want to update using my expression:...
0
votes
0answers
28 views

Adding distance threshold to pgrouting script

I have created a loop which produces the shortest distance route between all origins and destinations within a study area. This is essentially showing routes undertaken by motorised transportation as ...
5
votes
2answers
117 views

Finding mean distance between cluster center and points in cluster in QGIS

I have done the following in QGIS: I used the integrated k-means clustering tool to cluster around 160k data points into 50 clusters. Using the mean coordinate tool (Vector analysis > Mean ...
1
vote
0answers
33 views

ST_Distance column empty in self join query

So I am working on an assignment with a database of GIS club members that includes the following columns: id, firstname, lastname, postalcode, and geom. I am querying to find which member is closest ...
-1
votes
2answers
50 views

Finding distance from Point to LineString in meters using Python [closed]

I have tried this following method to find distance but it is giving me distance like 0.12. I don't know what that 0.12 is meant and I want the distance to be in meters or kilometers. line.distance(...
0
votes
1answer
83 views

How to generate Euclidean distance for each polygon in shapefile?

I have a single shapefile with many polygons, 100 for this example. I want to iterate through each polygon to generate a Euclidean distance raster for each polygon, using the extents of the initial ...
1
vote
0answers
85 views

Why ellipsoidal distance measured in EPSG:7030 in QGIS?

I measure distance (km) in QGIS (Ctrl+Shift+M) . In Ellipsoidal, it using CSR EPSG:7030. In Cartesian, they didn't say what projection is used. If it using ellipsoidal option, does it mean measured ...
0
votes
0answers
23 views

Accuracy of distance between two latitudes and longitudes points

Is the error of evaluating the distance between two lat,lon points bounded? For example: Given point a and point b (acquired by smartphone GPS) such as |a.lat-b.lat| < 10^-4 and |a.lon-b.lon| < ...
0
votes
0answers
42 views

Calculating distance between points in QGIS

I have a CSV file with a bird track and multiple points with exact coordinates as well as date and time. My CSV files are divided by days. Here is an image of attribute table: How can I calculate the ...
2
votes
1answer
40 views

Selecting fields in NNJoin plugin

I want to know if there is the possibility to choose only the desired fields for each layer that will appear in the output layer on the NNJoin plugin. If so, how can I do it?
1
vote
1answer
30 views

Calculating and identifying maximum distance between points using ArcGIS Pro

I have these 12 sites mapped on ArcGIS Pro. I am trying to set up an experiment that has 4 treatments. Since I have 12 sites I was hoping to allocate 3 sites per treatment so 3 replicates per ...
0
votes
0answers
38 views

Calculating minimum distance between points in QGIS

I hope to calculate the distance between each property in the Washington DC metropolitan area and the nearest metro station, and I am doing this for each month from 2000 to 2017. I use Distance Matrix ...
1
vote
1answer
31 views

Attributing distance from feature in attribute table using ArcGIS Pro

I have the exact same question as posted at Attributing distance from feature in attribute table using QGIS, but for ArcGIS Pro. I would like to create a field in the point shapefile attribute table ...
2
votes
2answers
51 views

Finding nearest point of route using ST_DWITHIN

I'm new to PostGIS and distance comparisons and am having some problems with my current project. I have a an array of geopoints (long lat) which correspond to a route. And I need to find the nearest ...
1
vote
1answer
111 views

Black output when using "Proximity (raster distance)" in QGIS

I am using the "Proximity (raster distance)" tool in QGIS to calculate the distance from each pixel to the nearby forest. I created the proximity map using the forest raster as input but the ...
0
votes
1answer
60 views

Calculating distance to a specific boundary of a multipolygon [closed]

I have a dataset of electric charging station coordinates in LA and multipolygons of school district boundaries. I want to calculate the shortest distance between each station within each district and ...
1
vote
1answer
126 views

SQL Server STIntersects, STDistance and STCointains with Lat Lon points and Geometry Polygons

I need to create 3 functions in SQL Server (2017) that has to do the following: IsPointInsideTown(Point, TownCode, [SRID]) -> true/false: indicates if the point is inside the town's polygon. ...
5
votes
1answer
166 views

Equal distribution of points to regional hubs in QGIS

I have approximately 1,600 points plotted on a layer in QGIS. On another layer, I then have 8 regional hubs plotted. I am trying to distribute the 1,600 points among the 8 hubs, based on which hub ...
4
votes
1answer
156 views

QGIS 3.16.11 shortest distance between point and line via field calculator and overlay_nearest

I was searching for the shortest distance between a point (point layer with about 22000 points) and the nearest point of a line from another layer (MultiLineString). I tried Distance Matrix, nearest ...
5
votes
1answer
142 views

Creating longest line within polygon that crosses point

I am performing a morphometric analysis of dolines using QGIS. I want to generate longest axis within basin polygon that crosses the lowest point (from other layer) of basin. Is there a way to ...
0
votes
0answers
28 views

EucDistance fails on last iteration of loop using ArcPy with ArcGIS Pro

I am building a tool for ArcGIS Pro 2.8.0 with Python using the template that ESRI provides. The first part of the tool defined in the execute function takes a point feature and loops through a search ...
2
votes
0answers
46 views

Distance between line and point with shared ID

I have a point layer and a line layer with matching ID fields. I want to calculate the shortest distance between points and lines where the ID matches. They are not always the closest features to each ...
1
vote
1answer
27 views

Making raster layer with shortest distance of each cell to roads using QGIS

I have a road shp (or raster) layer, and I'd like to make a new raster layer of each cell is filled with the distance to the nearest road. Is it possible to compute the layer using QGIS with some ...
2
votes
2answers
166 views

Finding the distance between two lines in QGIS

I want to find two lines which are very close to each other within the same layer (spatially). See the image below: There are two lines which are very close (distance of ~18 cm). I wanted to find such ...
1
vote
1answer
72 views

FME - Measure length of line to any point along line

Do you know how can I measure distance from the beginning of line to point. Points are on lines. I tried some solution and think about measuregenerator, lengthtopointcalculator, neighborfinder... but ...
4
votes
1answer
50 views

Modifying code to create a field with length of lines intersecting polygons

Some time ago I made a post about creating a field in a polygon layer that get its value from length of line intersecting them. The answer I got at the time helped me for a specific purpose, but now I ...
1
vote
1answer
46 views

How do you measure distance from a line end point to a point on a separate layer in QGIS 3?

I have layer of points that correspond to a layer of lines. I need to find the distance from the beginning and end point of the line to the corresponding point. I used line_locate_point to get the ...
0
votes
0answers
42 views

Adding metre distances to Web Mercator projection

I'm new to using GPS and using map projections. I've read quite a bit but I'm struggling to understand how to use Web Mercator projection. I have lat/long coordinates from the nuScenes dataset. The ...
0
votes
0answers
27 views

R (gdistance): least cost path passing through and/or crossing cells with NA

Intro The 'gdistance' R package is really useful in calculating least-cost paths (hereafter LCP) between locations. I have successful used some published material (LINK) for my purposes. What I'd like ...
0
votes
0answers
24 views

How do I calculate the average distance from a cell of value x to other cells with value x?

I have a raster with values representing the underlying predominant land use. I'm looking to calculate the average distance to the five closest cells with the same value for each cell. So, say I have ...
0
votes
0answers
47 views

Behavior of distances and areas when Plate Carreé projection is applied to ellipsoid reference coordinates

Disclaimer: I am a Data Scientist, so bear with me regarding GIS knowledge. I am working with a raster dataset that is Plate-Carrée projected using EPSG:4326 as a CRS. Pixels are rendered via an ...
0
votes
1answer
51 views

Calculating distance of a path/vector through multiple points in QGIS 3.16.3

I created a .csv file with coordinates to show a route between two locations where I live. I want to figure out the distance one would travel to arrive from one location(A) to another(B). With '...
0
votes
1answer
43 views

Creating distance raster based on a binary raster?

I have a raster with cells that have a value of either 0 or 1. What I would like to do is create a new raster that shows the distance of each cell to the nearest cell with a value of 1. For all cells ...
0
votes
1answer
137 views

Calculate distance from centroid to border of Spatial Polygon in R

I have 3409 Electoral Divisions from the Irish census for the Republic of Ireland. I want to calculate 400 metre distances from the centroid of every electoral division to the spatial polygon boundary ...
4
votes
1answer
84 views

Finding distance between polygons in same layer

I would like to know the distance between polygons in a layer. The goal is to know which houses are within 5 meters from each other in order to cluster them. I tried adding a buffer and playing around ...

1
2 3 4 5
29