Questions tagged [closest-distance]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
2 answers
72 views

Connecting points to the nearest K polygons in QGIS

I have a layer of point data, and a layer that contains polygons of all the lakes in a region. I am trying to find the K closest of these lakes for each point. The distance should be measured from the ...
p1unge's user avatar
  • 89
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 ...
Marcus Prull's user avatar
3 votes
1 answer
98 views

How to obtain the closest mean distance between two pseudoparallel lines

From two layers (LINE_1 and LINE_2) with a irregular pseudoparallel lines geometry, my goal is to obtain the closest mean distance between two pseudoparallel lines. Here I publish a screenshot with ...
Ingrid Ingravida's user avatar
5 votes
2 answers
218 views

Drawing line to the nearest point following a attribute hierarchy

With a point layer and a attribute table formed by the field "HIERACHY", where there are 3 values (3,2,1). The meaning of the values is from highest to lowest relevance in descending order: ...
Ingrid Ingravida's user avatar
1 vote
1 answer
136 views

Point to Polyline Distance & Angle ArcGIS Pro

Using ArcGIS Pro Advanced license 3.0.3 I have a dataset of 200 or so lines. The task is to calculate the distance between these lines on the right and the left of the line at given intervals. ...
Meg0's user avatar
  • 21
8 votes
2 answers
288 views

Calculate the distance between a single point and multiple polygons using PostGIS

I’m working with a very large dataset and I need to calculate the shortest distance between a single point and the closest edge from multiple polygons. I need to use PostGIS because such a task with a ...
Filipe Dias's user avatar
1 vote
1 answer
257 views

Why do dist2Line and st_nn give slightly different distances?

I have some points and am finding the distance to the nearest state border. My question is: why do dist2Line and st_nn give slightly different answers for the distances? The code below is based on ...
bill999's user avatar
  • 125
1 vote
1 answer
404 views

How to associate point to nearest state boundary outside of the state the point is in

I have a point within a state and I want to find 1) the distance to the nearest state border and 2) the bordering state's name. I am able to do 1). For 2). I am able to get the state name ...
bill999's user avatar
  • 125
1 vote
2 answers
474 views

Unit of GeoPandas distance function after determining closest coastal line of a point

I am using this (I think working) code to find the distance of a lat/long point to some open source coast lines. import os import geopandas as gpd import pandas as pd os.chdir(r"C:\Users\...
cs0815's user avatar
  • 474
2 votes
1 answer
384 views

Calculate distance from point to polygon edge in QGIS

I am trying to calculate the distance of around 90 points from the closest edge of a polygon. I a currently using QGIS Version 3.22.8. I have reviewed previous answers at this link that fits my ...
Fitzy_A's user avatar
  • 71
3 votes
1 answer
106 views

Creating lines indicating the shortest distance points to line in QGIS [duplicate]

How can I create lines indicating the shortest distance from a points dataset to a to line, avoiding the line to points tool first? In the past (at another company) we used MapInfo "Distance ...
Helen Pater's user avatar
6 votes
2 answers
2k views

Calculate Distance (in miles) from Point to Polygon Edge in QGIS

I am attempting to calculate the distance from a point to the nearest polygon edge (county boundary). I have approximately 80 points and want to find the closest county edge for all of the points and ...
David V's user avatar
  • 69
5 votes
1 answer
83 views

Dynamic closest point with subgroups in unique layer in QGIS

I work in forest and I need to export plans for students. They have to designate some trees on field (a forest plot with all trees numbered) and I get a CSV list with the student's number, the tree's ...
romainbh's user avatar
  • 1,045