Questions tagged [proximity]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
9 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 "...
  • 1
2 votes
1 answer
28 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 ...
  • 23
1 vote
1 answer
35 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 ...
0 votes
0 answers
20 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 ...
2 votes
1 answer
99 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 ...
  • 381
1 vote
2 answers
125 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 ...
  • 13
1 vote
1 answer
116 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....
's user avatar
0 votes
1 answer
36 views

Near Tool not working in ArcGIS Pro possibly due to coordinate systems

I have 60,000 points (denoting properties) in a raster and I'm trying to measure the distance from each one to a line (denoting the coastline). I've tried using Near and a couple of other tools like ...
0 votes
0 answers
38 views

Finding distance from settlement to river in ArcGIS Pro

I am trying to determine how to calculate which specific settlements are within a 30-minute walk from a river polygon on ArcGIS Pro. The country I am focusing on is Nepal, thus, elevation also needs ...
1 vote
1 answer
20 views

Select by Location > Assign value from a different layer

Is it possible to identify, for example, a data point that is within ‘X’ distance of a Well, and then “create a field” that would assign the Well ID Value to that data point? Ideally, this would need ...
  • 19
1 vote
0 answers
33 views

Distance matrix not giving nearest point in QGIS [closed]

I'm having a bit of trouble with my procedures in QGIS Desktop 3.22.6. I bring in a shapefile for the entire US block groups into QGIS. I then bring in points of stores across the U.S. I then use the ...
5 votes
2 answers
243 views

Getting part of polygon that is closer to point A than point B in QGIS

In QGIS I have a points layer and a polygon layer. Two of the points in the points layer lie within a polygon in the polygon layer. I'd like to generate a new polygon that includes all the parts of ...
  • 51
3 votes
1 answer
223 views

Merge polygons that are within determined distance

I have a shapefile containing numerous polygons. I want to merge polygons that have another polygon within a 10 meter distance.
  • 343
-2 votes
1 answer
61 views

Space time nearest neighbor [closed]

I have a dataset with 3 coordinates time, latitude and longitude. How can I compute the nearest neighbor point for each point in the dataset using the 3 coordinates? I'm using Python but I can't ...
0 votes
1 answer
37 views

Remove multiple lines in close proximity in QGIS

I have a set of lines which are in close proximity to each other. I would like to retain only one line (or create a new single line) & remove all the other lines. Rule to remove unwanted lines can ...
0 votes
1 answer
30 views

MapInfo connect points in one layer to a single point in another layer

I have two layers in MapInfo: Layer 1: employees - hundreds of points Layer 2: place of work - one point with site location I am looking to connect (ie draw a line) for each employee to the single ...
  • 319
5 votes
2 answers
147 views

Extending "Join attributes by nearest" with WHERE clause in QGIS

I am using QGIS v3.24.1-Tisler and the "Join attributes by nearest" tool in Processing Toolbox, which does 90% of what I need. However I would like to be able to add a WHERE clause, so join ...
  • 51
2 votes
0 answers
45 views

How to join a column from a line data layer attribute table and join it to a shapefile attribute table in QGIS?

Issue: I have calculated the distance from shore from point data showing dolphin IDs to the coastline by using these commands: Step 1: Digitise the country lines for administration country shapefiles ...
1 vote
1 answer
75 views

Calculating distance from point to line, depending on unique ID using QGIS

I have four points of interest for each plot, a line representing the segment that faces the road and the plots themselves for representation purposes (all of them share in common an unique "id&...
0 votes
1 answer
31 views

Calculating distance between polygon and line using ArcGIS Desktop

I’m trying to calculate the tax parcels distance closest to a transmission line. If the tax parcels distance to the transmission line is <2km, then I score 5. If 2-4km, score 4 If 4-6km, score 3 ...
2 votes
1 answer
131 views

Distance to nearest shape in Python

I have a shapefile containing multiple polygons of protected zones, I try to compute a raster with, for each pixel, the distance to the nearest protected zone. I've been able to obtain it with QGIS ...
  • 39
2 votes
0 answers
66 views

Compare two fields in different feature classes using ArcPy

I am trying to make an automation script to evaluate the distance and compare attributes between an incoming layer and another existing layer in the database. I made this script to say: If the ...
2 votes
1 answer
82 views

Number of points within x min walking distance in QGIS

In QGIS I have a layer of points each one representing a household with its (x, y) coordinates and a population assigned to them. I'd like to calculate the points that are accessible from each point ...
  • 21
1 vote
1 answer
52 views

Spatial Joins - Intersect then non-joined Nearest

Is there a tool to join by interest and then for those that are not joined, join by nearest - all in one calculation? If not, maybe this is a valid feature request, to combine these two tools together ...
1 vote
2 answers
85 views

Visualizing proximity to nearest park in QGIS

I'm relatively new to QGIS but have undertaken a project trying to understand access to parks in a neighborhood of nyc. I want to visualize the proximity to the nearest park from the entrance of each ...
0 votes
1 answer
68 views

Performing conditional near analysis in ArcGIS

I have two shapefiles with different points (cities) in lat/lon, and I am running the Near Analysis tool to find the nearest point in the second shapefile for each point in the first one. However, I ...
  • 13
0 votes
0 answers
24 views

Retrieving closest point to another point with arcpy

I created a script to detect duplicate cables in an entity layer. The goal is to get the duplicate cables and estimate the distance between them and their duplicates in the main layer to know if it is ...
5 votes
1 answer
100 views

Identifying the two points ending a line in QGIS?

Project : footpath going from point to point I have two layers Layer 1 points, each point is corresponding to a stake showing a unique number (the unique id of this layer Layer 2 lines, the route ...
  • 438
1 vote
0 answers
41 views

How to select nearest feature with the same attribute on different layer in QGIS?

Introduction: I have two point data sets containing data about sites investigated using different methods, let's call them sites-original and sites-comparison. Each table has a field "method"...
  • 1,528
5 votes
1 answer
68 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 ...
  • 1,035
1 vote
1 answer
208 views

Calculating average attribute value of neighbour grids based on location and applying it to grid cells in QGIS

I have a grid dataset of 2.5km grid-cells and want to calculate the average of some attributes for each of the eight adjacent cells to the central one (nine cells forming a square). So the calculation ...
1 vote
1 answer
45 views

Finding the n farthest points from any man-made structure within a country

I am trying to find the farthest points from any man-made structure in Denmark. I have acquired an OpenStreetMap data extract of Denmark from this page, in PBF format. How do I compute a number of ...
  • 19
0 votes
1 answer
167 views

Connecting address points to nearest part of a road network that has matching street name

In ArcGIS Pro (or ArcMap), using built-in Esri geoprocessing tools, how can I create connection lines between address points and the nearest part of a road segment with a matching street name (e.g. '...
2 votes
0 answers
34 views

Python for finding viable solar parcels close to power line

I am currently working on a project for a solar company and we are interested in finding the closest parcels to a power line. For this project we have a few different shapefiles, parcels (dissolved by ...
  • 21
1 vote
1 answer
129 views

Difference between SDO_NN and BallTree Sklearn for Nearest Neighbors

I am trying to find nearest n/w nodes from multiple buildings in an area, I have 2 geodataframes/Tables in Oracle DB, buildings have point geometries with ID's and Nodes have point geometries with ...
  • 111
5 votes
3 answers
127 views

Measuring minimum distances for closest features between two polygon layers in QGIS

I am trying to find a way to measure minimum distance between two polygon layers in QGIS. I have one polygon layer (orange) which represents hunting areas, and one polygon layer (green) which ...
0 votes
0 answers
54 views

Iterating through shapefile and appending each row separately to existing shapefile

I am attempting to iterate through each row of a shapefile, run a process on it (finding the nearest point from each in_feature to the closest near_feature) and then appending each row to the ...
1 vote
1 answer
278 views

How to get nearest locations by coords using Laravel or JavaScript

I have a locations table that has latitude and longitude I have a JavaScript event that register the clicked coords, that coords are saved on coords variable. Then, I'm using axios to get a list of ...
0 votes
0 answers
55 views

Return N closest elements in GeoPandas

I have a dataset with dozens of records and each record includes columns for the geographic point's latitude and longitude. I'm currently using a code that I also found on Stack Exchange, but that ...
3 votes
1 answer
254 views

Split polygons in a shapefile based on distance [closed]

I have polygons as shapefile sprawl on very large area in Brazil, with many "blank" area in the middle: I would like to split this shapefile to smaller groups of polygons based on their ...
  • 1,819
3 votes
1 answer
182 views

How to properly generate distance map?

This question is a related to Proximity (raster distance) using ellipsoidal distance What I'm trying to do is to generate a map of distances to roads. At any given point on a map, I want to be able to ...
  • 455
6 votes
3 answers
105 views

Finding distance to points only outside of polygon in QGIS

I've tried using "Intersect" and "Join attribute by location" but these aren't achieving exactly what I'm after. I have a series of points inside and outside a polygon. My aim is ...
1 vote
1 answer
37 views

Finding lat/longs within 500 feet of other lat/longs in PostGIS

I have a table crashes with data on car crashes in New York City and a table locations with data on schools in New York City. I'm trying to return a table indicating whether each crash occurred within ...
4 votes
3 answers
109 views

Returning count of all points within specified range to single point using PostGIS

This may be more of a SQL fundamentals question but I'm sure somebody on here has encountered this before. I have a database of geospacial data (around 4 million points) using PostgreSQL/PostGIS I ...
0 votes
0 answers
16 views

Looking for exact geocoordinates and/or zip code of location of nearest hub identified with "Distance to nearest hub"

I used the "Distance to nearest hub (line to hub)" tool from the QGIS processing toolbox to determine the distance between over 8.000 polygon centroids and a line layer. That worked ...
  • 9
2 votes
1 answer
53 views

Identifying neighbouring polygons but field calculator preview and output are different

I'm really struggling trying to create a field which lists the neighbouring cells of my grid. I have a grid of 814 cells, and for most cells (i.e. the ones which are fully surrounded) there are eight ...
0 votes
0 answers
149 views

How to run gdal_proximity in python rather than command line?

I have a folder of raster files, each containing a single rasterized polygon, where a value of 1 is burned into the polygon shapes, and where all else is no data (or could be simply changed to 0). I ...
0 votes
0 answers
24 views

How to use 50% Areal Containment Method in ArcGIS Pro with 2010 Census data

I am new to GIS. I am trying to use something called the "50% Areal Containment Method" laid out by Mohai and Saha's 2006 paper. Basically, you create a buffer around a location, then ...
  • 1
7 votes
3 answers
233 views

Aggregating result of many to many join of points closest to line in QGIS

I have a layer of points and a second layer of lines. The goal is to know for each line, how many and which points (by "ID") are closest to that line, to then export this information for ...
  • 73
2 votes
2 answers
130 views

Finding nearest point of route using ST_DWITHIN

I'm new to PostGIS and distance comparisons and am having some problems with my current project. I have a an array of geopoints (long lat) which correspond to a route. And I need to find the nearest ...

1
2 3 4 5
10