Questions tagged [proximity]
Use for questions about vector features and their proximity or nearness to other features.
532
questions
-1
votes
1
answer
16
views
Distance from polygon to address using ArcGIS Pro
I have a layer that is polygons.
One of the data fields is a street address.
How can I determine which polygons are a street address that is more than X miles away from the polygon?
1
vote
1
answer
17
views
How to adjust gdaltransform ground control point weighting control?
Let's take a 6 x 6 mile US PLSS township, and house numbers 800 to a mile. Using gdaltransform, given the coordinates of each section corner as our ground control points (-gcp 4800 4800 lon lat for ...
0
votes
1
answer
38
views
Proximity Map from Line Shapefile (Line to Raster)
I have this cycling route and I need a proximity map that shows the proximity to this route:
I have the route as line shape, and I turned it into raster (using vector to raster). Following this exact ...
0
votes
0
answers
26
views
gdal_proximity - setting processing extent using -te parameter in QGIS not working
the default processing extent of many tools in QGIS is the input layer's extent. GDAL Proximity (Raster Distance) is no different. According to the documentation (https://gdal.org/programs/...
1
vote
1
answer
67
views
Finding shortest distance from one point to each polygon and the distance from that point of the polygon to any of the points in the polygon in QGIS
I'm trying to find the shortest distance from a point (point A uploaded as a CSV) to a polygon uploaded as a shapefile (polygon 1) and then the distance from that point of the polygon to any of the ...
2
votes
2
answers
127
views
How to transpose points on a line
I need to transpose points on a line, how do I do that? Which tools should I use?
More precisely, my problem is this. I have points taken with the gps (then converted into shapefiles) that are on a ...
0
votes
0
answers
18
views
Proximity distance calculation error
I am trying to calculate the proximity distance for my road layer. I have already converted the vector layer in raster, with the units in meters. However, when I try to run the proximity distance tool,...
1
vote
1
answer
70
views
Get nearest points by sindex at large data
I have cities and roads of a large region. I want to get distance of the cities by roads that connect them. However, coordinates of cities are not exactly on the roads so I cannot implement ...
6
votes
1
answer
102
views
Drawing 10 nearest lines from each point connecting to the centroid of the 5 points nearest to each point with QGIS expression
Starting from a layer with point geometry, my goal is to do two calculations in one Geometry Generator expression.
First, for each point, I would like to calculate the centroid for the 5 points ...
0
votes
1
answer
48
views
Merging thick boundaries with individual districts
I have this shapefile of Akron's city council districts in 2010.
For some reason the boundary lines are very large. What would be the simplest way of combining the with the nearest district? If the ...
3
votes
1
answer
111
views
Extracting two closest points with matching ID and create line between both points in QGIS
In QGIS, a have point vector Layer_A with a unique ID field and point vector Layer_B with multiple points for each Layer_A ID. For each point on Layer_A I want I need to create a line that connects ...
1
vote
1
answer
102
views
Moving (snap) lines to nearest features in QGIS
I have two sets of lines: Layer A (a planned network) and Layer B (how the network was realized). The course of the lines on those two layers is similar, but not the same and they do not have the same ...
0
votes
1
answer
170
views
Finding nearest OSM link (road) to GPS points in Python
I have a large dataset (about 50,000,000 rows) of GPS x,y points related to GPS equipped taxis with timestamps and speeds. I also have a shp. of the OSM links and I want to find the nearest link to ...
2
votes
2
answers
71
views
Selecting points near lines in QGIS
In QGIS 3.22.16 I try to select and delete some roads (lines) that have a False value in the attribute table. Along with that, I need to delete all the gullies (points)along these road.
I don't have ...
0
votes
1
answer
46
views
arcpy.analysis.Near within a for loop
I want to calculate Distance between Points from two different polygon tables. I'm using this code but I get this error code. Any idea?
import arcpy
search_radius = "5000 Meters"
...
1
vote
0
answers
126
views
Making Nearest neighbour join with attribute condition in QGIS
I have two line layers in QGIS:
Input Layer A: Street Segments
Layer B: Traffic Data
and would like to perform the nearest neighbour join with a condition (where the same street name is equal- one-...
0
votes
0
answers
67
views
Data jumbled when setting Zimbabwe CRS
I have got point data in Zimbabwe and am having a lot of trouble getting the projection right.
I have tried saving the QGIS project and layers to to WGS 84/UTM zone 36 and this now displays correctly ...
0
votes
1
answer
93
views
QGIS value relation dropdown filter by overlay_nearest
I have in QGIS 3.28.8 two point layers: source_p and target_p
I want in source_p layer to create a dropdown to "TargetFID" field with Value Relation to target_p layer with only 3 nearest ...
0
votes
1
answer
213
views
Creating “distance to” raster using QGIS
I imagine there’s a proper term for what I’m trying to do but, if so, I do not know it.
I have a map of populated areas, as polygons. I can rasterise that, but what interests me isn’t the effect of ...
2
votes
1
answer
112
views
How to obtain the nearest line between two point layers with the constraint of a line distance layer
From three layers:
'POINTS': Points of house facades
'CONTROL': Waste collection points
'STREETS': Street axes
When you apply an standard expression like the following to find and draw the nearest ...
1
vote
1
answer
288
views
Calculating distance between point and polygon in network in QGIS [closed]
I have a 100x100m hexagon grid (polygons) and a point layer with football fields.
I would like to calculate the "walking" distance (aka distance using the actual network, not straight line ...
0
votes
2
answers
47
views
Finding closest point on line from point using ArcMap
I am using ArcMap 10.8.
How can I find the point on a line that is closest to a given point, or alternatively, the closest vertex point of the line if it is not perpendicular?
Refer to the following ...
6
votes
2
answers
132
views
Identifying direct neighbours connected by network in QGIS
I have a point layer of settlements and a LineString layer of a road network. The settlements have been snapped to the network so they are directly connected by it. Settlements are not always at the ...
2
votes
1
answer
148
views
Finding maximum possible distance of point to polygon boundary using QGIS Expression
Points layer is structured as below
Polygons layer also has code as a field
For each point, I want to get maximum possible distance to the edge of the polygons listed with code in the overlap column. ...
5
votes
1
answer
187
views
Connecting points to the two closest highest values grouped by category
In a points layer with the fields "POP" (corresponding to the population value) and "CATEG" (corresponding to municipality id), my goal is to connect the points of each ...
6
votes
3
answers
250
views
Finding nearest line feature from linear layer in QGIS
I have two linear layers like you see below:
I would like to select just the nearest black lines to the red ones, which represent the other layer.
I found similar solutions, but they refer to the ...
1
vote
1
answer
160
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
183
views
Trying to find nearest point on a coastline (in Python), but projection is not working as I expect
I am trying to find the nearest point on a coastline, to a station. However, I cannot get the correct answer. Here is a minimal example with an artificial coast line: the west coast (w_coast) is ...
1
vote
0
answers
55
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 ...
9
votes
1
answer
240
views
How to create variable buffers with nearest mean distance radius value
Given a point geometries collection, I would like to use an expression which:
Find the 4 points nearest to each other
Create the buffer for each group of 4 points with the radius distance value ...
0
votes
1
answer
151
views
(Extended) Proximity Analysis on QGIS
I have a road shapefile that I've rasterized. My study area goes beyond where the roads are.
I've tried using Proximity tool with the rasterized roads to create a "euclidean distance" layer (...
3
votes
1
answer
139
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
-3
votes
1
answer
53
views
Calculate distances from points to all adjacent polygons in ArcGIS
I have the zip code centroids and state polygons. I want to calculate the distances from each zip code centroid to all the nearby states using ArcGIS. I have tried to use Generate Near table tool, but ...
0
votes
1
answer
23
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 ...
1
vote
0
answers
52
views
How to use Near tool then join by FID to calculate exposure index [closed]
I am working on a project and the instruction I am given is:
For each school, calculate an index of its exposure to toxic emissions. For all toxic sites within 1 mile of each school, divide the site’...
4
votes
2
answers
145
views
Populating attribute table with the ID of the nearest point in QGIS
I have two point layers, let's say one is 'endpoints' and another layer is 'nodes'.
The "endpoints" layer attribute table has a field called "nearest_node", I want to populate it ...
2
votes
1
answer
213
views
Enabling time field in ModelBuilder of ArcGIS Pro
Does anyone know how to enable a time field in the ModelBuilder of ArcGIS Pro?
I am attempting to create a model that takes a newly created feature class and runs "Group By Proximity", which ...
2
votes
1
answer
2k
views
Finding all latitude and longitudes within X km range from input location using Python
I've close to 4000 location data(latitude and longitude). The task is to find all location points(from the above location data) within the X km range from the input location.
Example
input_latitude = ...
2
votes
1
answer
95
views
PSQL can I speed up a distance and string matching calculation query
I have a query that checks a lat,lon pair with each coordinate column in a PostgreSQL table. Then gets the shortest distance like so:
SELECT A.id,
A.name,
similarity(A.name, %s) AS sim,
...
1
vote
1
answer
178
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. ...
2
votes
1
answer
287
views
Connecting points to the nearest point with a similar value in QGIS
I have a point shapefile and am trying to create lines connecting each point to the nearest other point with a similar value, based on one of its attributes. Specifically, the points are polygon ...
0
votes
1
answer
78
views
Finding two nearest line features to each point
I am using ArcMap
I have hundreds of points as a point shape file and also a polyline feature class as another shape file.
Problem: I need to know two most nearest polyline IDs to each point.
What I ...
0
votes
1
answer
229
views
Radius in nn2() in RANN package
I was trying to use the solution offered here to find all the location from df which are within the 70 km distance from my point of interest userLocation=c(6.9,55,2), but it does not work properly.
...
2
votes
2
answers
76
views
Finding observations by minimum distance in QGIS
I am trying to look at the distance between property sales and crimes committed within city. I want to be able to find all the crime that occurs within 1 mile of each property sold. I am sure that is ...
6
votes
1
answer
263
views
Finding the shortest distance between two selected polygons using PyQGIS
I'm researching the shortest distance between two selected polygons among the number of polygons in a shapefile using PyQGIS. Coding as follows>
layer = iface.activeLayer()
sFeat1 = layer....
0
votes
0
answers
60
views
QGIS overlay_nearest multi_point type to single_point type layer
This is follow up to this question answer
I have in QGIS 3.22 two point layers:
multipart type point layer
singlepart type point layer
Multipart pointlayer Geometry generator algorithm:
...
2
votes
1
answer
994
views
Cannot figure out how to reference outer table in nearest neighbor subquery
Running PostGIS 3.2 on PostgreSQL 14.
I have a layer of linestrings with two columns, id and geom.
I am trying to select each feature together with its nearest non-touching neighbor, but I'm getting a ...
0
votes
1
answer
83
views
Proximity map does not match up with original data
I have a vector layer of paths that I want to create a distance map from. so I converted the layer to a raster layer and ran raster > analysis > promixity on it. the problem is that the result ...
4
votes
0
answers
48
views
Splitting vector layer based on shortest distance to feature in another layer in QGIS
I have two shapefiles of Europe. One is a highly accurate shape of the continent, the other is a map of countries in Europe in 1500, containing the names of all countries as attributes. Sadly, the ...
2
votes
0
answers
419
views
Measuring distance polygons to lines with sjoin_nearest() in GeoPandas [closed]
I am trying to use GeoPandas sjoin_nearest() function to measure the distance from polygons to lines. I have several polygons and I am measuring the distance to the river, which is the green line.
...