Questions tagged [proximity]

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

Filter by
Sorted by
Tagged with
3 votes
1 answer
91 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,281
1 vote
1 answer
60 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
74 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
0 votes
1 answer
31 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
113 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
64 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
81 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
  • 405
0 votes
1 answer
67 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
87 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
196 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
33 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
106 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
122 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. ...
B Alexander's user avatar
5 votes
1 answer
171 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
220 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,005
1 vote
1 answer
119 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
136 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
47 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
9 votes
1 answer
216 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
0 votes
1 answer
113 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
130 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
46 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
47 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
109 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
163 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
1k 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
89 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
  • 161
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
2 votes
1 answer
200 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
77 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
196 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
72 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
6 votes
1 answer
244 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....
Lakmal's user avatar
  • 61
0 votes
0 answers
57 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: ...
Rii Pii's user avatar
  • 405
2 votes
1 answer
774 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 ...
kthy's user avatar
  • 237
0 votes
1 answer
78 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 ...
kindoflike's user avatar
4 votes
0 answers
47 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 ...
TVLuke's user avatar
  • 41
2 votes
0 answers
370 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. ...
Erich Purpur's user avatar
  • 1,851
1 vote
0 answers
75 views

Performing point distance analysis using ArcMap

I have two point feature classes A & B, point A is more dense while point B is less dense, I want to carry out a proximity check for points from point A that is closest to points from point B. And ...
Obianuju Esther's user avatar
1 vote
0 answers
39 views

Values from one polygon to another

I am working with QGIS 3.24.2. In the image you can see red buildings (representing a green roof) and the green polygons are gardens. Every green building has a value to reduce noise pollution in the ...
Marlot Rijkers's user avatar
-1 votes
3 answers
265 views

ArcMap : Using "near" with python only on objects with the same ID in 2 shp

I want to calculate distance between polygons and points which are in 2 Shapefiles using "near" function in ArcMap. In my 2 Shapefiles, each point is related to a specific polygon, there is ...
Maxence MELIN's user avatar
0 votes
1 answer
153 views

Excluding certain area around feature using ArcGIS Pro

I have a problem for class where I only need features for a map that are at least 200m away from roads. I have been using the Clip and Near tools to this point, but I'm having trouble finding an "...
Big's user avatar
  • 1
5 votes
2 answers
193 views

Counting number of points in one layer within fixed distance to points in another layer in QGIS

In QGIS 3.22.7 I want to count the number of points on point 'layer B' within 60m of each point on point 'layer A' and add a column to the data on point 'layer A'. What is wrong with the following ...
osakanatengoku's user avatar
2 votes
1 answer
221 views

Calculate the minimum distance of a point grid from the nearest point of another layer with QGIS

I have a grid of 1 km points and a separate group of points representing RTK stations. (See image 1) I want to create a 3rd value for the grid points that is proportional to the nearest reference ...
Tyros43's user avatar
  • 23
1 vote
1 answer
72 views

Nearest neighbour analysis with higher elevation using QGIS

How do I calculate the flow that goes through the rainfall drainage points under a railway? I have two layers: DT: Point layer with drainage information: DT_id and elevation. ACA: Point layer with de ...
Ferran's user avatar
  • 21
0 votes
0 answers
35 views

Identifying points based on spatial proximity to other points in ArcMap

I have two shapefiles. One has location of around 10,000 buildings and the other has location of around 8000 parking lots. I want to identify which parking lot is closest to the building based on ...
sakar299's user avatar
2 votes
1 answer
195 views

Create line from point to two polygon centroids that meet a condition

This is this is a follow up to this question I have in QGIS ver 3.22 two layers named: source_point_layer target_polygon_layer I want to automatically point with a line from the source_point_layer ...
Rii Pii's user avatar
  • 405
1 vote
2 answers
2k views

R - Finding closest point to each point and filtering which points to consider

I'm a beginner in R. I am working in R with a dataset of bird nest locations and am interested in the distribution of said nests. Specifically, I'd like to find the closest neighbor to each nest as ...
KMad534's user avatar
  • 13
1 vote
1 answer
160 views

Finding which region is nearest to which stations in R

I have a point dataset of 16 places in Switzerland that looks like these and is called stations stations <- read_csv("station.csv) view(stations) Cityid x y 1 611285.549 267664.109 2 600454....
user avatar

1
2 3 4 5
11