Skip to main content

Questions tagged [closest-distance]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
52 views

Extracting border from shapefile and then calculate distance to the border

I started with a states boundaries shapefile. I want to extract a part of state border and then calculate the distance of village centroids to the nearest point on this border. I have already ...
Ak2020's user avatar
  • 1
0 votes
1 answer
74 views

Calculating distances between two features (polygons)

I'm a bit stuck on calculating distance between two polygon features (i.e. closest part of the polygon A to closest part of polygon B (not necessarily where the points are as sometimes a line between ...
sarchaeologist's user avatar
0 votes
1 answer
30 views

How to calculate the shortest geodetic(orthodomic?) distance from a Point to LineString using GeoTools?

First of all, sorry if used wrong terms. I have a LineString on and I need to calculate the shortest distance to it from a Point using java GeoTools library. I don't need just geometric distance, ...
acanthite's user avatar
3 votes
0 answers
57 views

PostGIS: Why does <-> and ST_Distance give two different results?

I have a query where I want to get the closes row by coordinate distance like so: SELECT A.id, st_distance(coords, ST_SetSRID(ST_MakePoint(-9.15054,54.115341), 4326), true) AS dst, A.coords &...
bcsta's user avatar
  • 191
0 votes
0 answers
21 views

How to create ND.nd folder with .nds files

I am using ArcGIS Pro 3.2.1. When using Network Analysis, I have to import Network Data Source which in _ND.nd format(i.e. XXXX_road_ND.nd). There are six files within the .nd folder with .nds file ...
Panda CHENG's user avatar
3 votes
1 answer
87 views

PostGIS query to get the closest data available

I've got three tables in a PostgreSQL/PostGIS database: referencia.comarcas_agrarias_centroides (holds geom centroids of agricultural regions) referencia.estaciones_r_pen (holds geom locations of ...
jpinilla's user avatar
  • 3,230
2 votes
2 answers
85 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
  • 109
1 vote
1 answer
65 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
126 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
253 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
256 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
359 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
322 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
528 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
667 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
608 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
122 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
86 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