Skip to main content

Questions tagged [proximity]

Use for questions about vector features and their proximity or nearness to other features.

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

QGIS How to calculate closest point referenced to centroid?

I have a QGIS project in which I work with a polygon layer ('POLIGONS_TEST') and a point layer ('PUNTS_TEST'). I use the following Geometry Generator expression on the 'POLIGONS_TEST' layer to draw a ...
Ingrid Ingravida's user avatar
4 votes
1 answer
66 views

Linking all possible polygons to point within a distance

I am using Python. I have a shapefile with polygons and a CSV with points. My goal is to assign to the points all the possible polygons within a distance of 10 kilometers. I am able to assign the ...
OgeiD's user avatar
  • 618
0 votes
0 answers
39 views

Near Analysis with GEODESIC method, the feature classes aren't being recognized

I have postal codes and bus stop location, I need to find out the nearest bus stops from postal code location. I am applying GEODESIC distance method in near analysis. import arcpy as ap # Set ...
Chowdhury's user avatar
5 votes
3 answers
268 views

Creating list of adjacent polygons in QGIS

The answer to Using join in Mapviewer describes an effective way to count the number of adjacent polygons. However, I need to create a list of the adjacent polys. I envision a process that generates ...
Stu Smith's user avatar
  • 8,160
0 votes
0 answers
35 views

Calculating/determining point on elevation surface closest to point underground using ArcGIS Pro

I wish to find the spot on the earth's surface that is closest to my underground point. Which tools do I use to calculate this? I am modeling in a Gobal Scene various layers, including one layer which ...
plf3's user avatar
  • 1
0 votes
0 answers
33 views

Determining if feature occurs between single point and polyline using ArcGIS Pro

I am using ArcGIS Pro. I'm looking to perform an analysis that outputs whether or not something lies between two points. This specific example would be: does a stream occur between a point of interest ...
ben's user avatar
  • 1
-1 votes
1 answer
20 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?
MHammett's user avatar
1 vote
1 answer
19 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 ...
Dan Jacobson's user avatar
0 votes
1 answer
44 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 ...
Bilgeyts's user avatar
0 votes
0 answers
30 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/...
Guziko's user avatar
  • 1
1 vote
1 answer
78 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 ...
QHNL's user avatar
  • 21
2 votes
2 answers
140 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 ...
Micol Genazzi's user avatar
0 votes
0 answers
31 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,...
Richa Adhikari's user avatar
1 vote
1 answer
120 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 ...
navid's user avatar
  • 11
6 votes
1 answer
119 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 ...
Ingrid Ingravida's user avatar
0 votes
1 answer
49 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 ...
ericandrethegiant's user avatar
3 votes
1 answer
116 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 ...
winnewoerp's user avatar
  • 1,504
1 vote
1 answer
142 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 ...
Jackie's user avatar
  • 11
0 votes
1 answer
274 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 ...
Themos Papadopoulos's user avatar
2 votes
2 answers
75 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 ...
GIS Noh's user avatar
  • 321
0 votes
1 answer
64 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" ​ ...
khalid_EL's user avatar
1 vote
0 answers
139 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-...
Nabil's user avatar
  • 31
0 votes
0 answers
70 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 ...
sandy's user avatar
  • 11
0 votes
1 answer
110 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 ...
Rii Pii's user avatar
  • 464
0 votes
1 answer
418 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 ...
PowellHall's user avatar
2 votes
1 answer
125 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 ...
Ingrid Ingravida's user avatar
1 vote
1 answer
473 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 ...
Selma's user avatar
  • 301
0 votes
2 answers
58 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 ...
Pravin Ghule's user avatar
6 votes
2 answers
149 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 ...
Will's user avatar
  • 141
2 votes
1 answer
167 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. ...
Alexander B's user avatar
5 votes
1 answer
193 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 ...
Ingrid Ingravida's user avatar
6 votes
3 answers
265 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 ...
Geographos's user avatar
  • 4,029
1 vote
1 answer
214 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
219 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 ...
Peter B's user avatar
  • 113
1 vote
0 answers
56 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
10 votes
1 answer
258 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 ...
Acperience's user avatar
  • 1,122
0 votes
1 answer
225 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 (...
Linus AG's user avatar
3 votes
1 answer
144 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
-3 votes
1 answer
62 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 ...
user87349's user avatar
  • 343
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 ...
Erica's user avatar
  • 1
1 vote
0 answers
56 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’...
Mason's user avatar
  • 17
4 votes
2 answers
195 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 ...
Kuma's user avatar
  • 73
2 votes
1 answer
261 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 ...
rpenman's user avatar
  • 33
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 = ...
Nitheeswaran B's user avatar
2 votes
1 answer
119 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, ...
bcsta's user avatar
  • 191
1 vote
1 answer
252 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
2 votes
1 answer
355 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 ...
Graham Callaway's user avatar
0 votes
1 answer
85 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 ...
sadra imanyfar's user avatar
0 votes
1 answer
253 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. ...
Haribo's user avatar
  • 115
2 votes
2 answers
78 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 ...
Roscoe's user avatar
  • 21

1
2 3 4 5
11