# Questions tagged [proximity]

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

408 questions
Filter by
Sorted by
Tagged with
7 views

### How to find average distance of points in polygon to boundary of polygons?

I have a layer of polygons and a layer of points that I lay on top of those polygons. Some polygons, which I will refer to here as "zones", will contain 1 point within their boundary, and ...
29 views

### Calculating minimum distance between point and border using R

I want to generate the shortest distance between this province's capital to the China border. I want to calculate a minimum distance between a point and a border using R. My code is as follows, but ...
18 views

### Most efficient way to find distance of points from inner border of polygons

Problem: I have a points layer and a polygons layer. I have already used the Near tool to find the distances from points to the closest polygons, but it gives me a 0 value for all points that ...
27 views

### How to link points (X, Y) with their fields to the nearest segment?

I am new to ArcGIS. I want to know how to link some data points (X, Y) with their fields to the nearest segment, as shown in the attached image. Input1: Points with fields (Latitude, Longitude, Speed, ...
65 views

### Calculating number of points within 400 meters along network route

I have a layer with (several thousand) addresses, for every one I need to find the number of shops (155 total) within a 400 meter road network. Because of the large number I need to find a tool to use ...
33 views

### Distance between two points (1st layer) inside polygon (2nd layer) in QGIS

I am using QGIS 3.10. I have two layers, first one is point layer and the second one is polygon layer. Every two points (with same ID) in my point layer OVERLAY with single polygon in polygon layer. ...
30 views

### Join by nearest Error: Could not convert value “LSU” to target type

I am trying to join a point shapefile to nearby sampling locations in the Graphical Modeler, but the following red text appears in the model log: Feature could not be written to ...
40 views

### Joining points to closest line with summary of attributes using GeoPandas

I have a streets line dataset and a GPS Ping point dataset which contains speed. I'm trying to join the points to the closest street within 15m to get an average speed along each segment. More details:...
49 views

### Calculating distance from polygon to nearest polyline using QGIS

I have a village shapefile of India and a river shapefile containing major rivers and tributaries polylines of India. How do I calculate the distance between any village and the river nearest to it ...
124 views

### Calculating the nearest neighbour using given road network in QGIS

I have the following information/layer: Address points (point layer) Points which represent the entries to urban green spaces (point layer) - I built these cutting the roads with the borders of a ...
269 views

### Finding nearest neighbor with smaller attribute value in QGIS for a huge dataset: make expression more efficient

The setting I have a Geopackage point layer in QGIS 3.18 with over 350.000 features for an area of about 1700 km² (extent ca. 50*60 km), representing centroids of buildings. The points contain an ...
15 views

### Measuring distance between point to polyline using ArcMap

There are two lines A : polyline B : Axis I created points along the line B with same interval using 'generated points along lines' tool of ArcMap. I would like to measure the distance between these ...
27 views

### Determining distance between point feature and nearest point feature in same layer

I have one layer which contains school locations. What I want to do is find the nearest distance between these point features. Keep in mind it's one layer. Any solution? I'm using ArcGIS Desktop.
336 views

### Closest point on 5km line

Given a point and a line, I am trying to determine the point on the line that is closest to the given point. The given point is always at least fairly close to the line (3-4 meters max) Originally I ...
37 views

### Selecting, sorting, and grouping spatial data (lines) by length and proximity

I'm working on a project where I have a bunch of lines inside of polygonal land parcels. Here's a rough sketch of what I'm talking about: I need to further subdivide these parcels into sections that ...
16 views

### Adding nearest point-(features) to attribute table

Using QGIS I'd like to add the (10) nearest random points, that I created within a polygon, to a target point and have their distances to said point added to that point's attribute table. I'd like to ...
120 views

### Getting values from adjacent polygons or nearest point

I have joined temperature values from the point layer to intersecting polygons but I have few polygons (yellow in the image) that don't contain any point data. Can I somehow get average temperature ...
90 views

### Get the attribute of the nearest line to a polygon

In QGIS, how could I get the attribute of the nearest line to a polygon with an expression (or virtual layer)? I wish to create a new field in the polygon layer(in this case the parcels) with the ...
17 views

### Graph showing proximity of two objects over time [closed]

I have a dataset showing time and location data for two moving objects (eg B & D). I want to make a graph which shows how close (difference between LAT/LON) two objects (B & D) have been ...
44 views

### Finding nearest points based on distance and the user location and display on a Folium or Leaflet map?

I want to display the nearest 'services' points using the distance function on the Folium map. I need to pass the user location from the form and find the nearest services based on the current ...
36 views

### Gathering information from a point to nearest polygon in QGIS

I am using QGIS and would like to know what the nearest vegetation type is from a point (animal location). Could someone help me figure out what tool I should use?
57 views

### Mapping distance of animal locations to water points in dry and wet season

I have shapefiles of location data for around 40 collared animals as well as a shapefile layer of water points. I want to find out how water affects the movement of the collared animals. I thought of ...
32 views

### Conceptual advice on proximity analyses in arcpy

I have a question concerning proximity analyses in arcpy (ArcGIS 10.7). Forgive me if it takes a while to explain, but I've added a figure below to illustrate my problem. Explanation I'm trying to ...
15 views

### How to combine neighboring parcels to find maximum stream length per parcel combination - ArcMap

I am typically assigned with the task of finding parcels in a watershed which have the highest linear footage of stream running through them. For this I can simply intersect my stream layer with my ...
23 views

### Calculating nearest distance between two Linestrings using R

I have two simulated linestrings, one that represents a satellite ground-track and the other representing a linear surface feature (e.g., a road or river). I am trying to calculate the minimum ...
54 views

### Spatial Interactions - ArcGIS Online - Query based on mouse-click

I have a web map, authored and deployed as a web app. It contains a series of points and lines. I was wondering if it was possible to create an ability to click anywhere on the map, and have the ...
26 views

### Filtering duplicate records using space and time overlap

I have a dataset consisting of about 23,000 fire incidents obtained from years of fire brigade reports. The incidents have a lat, lon, and timestamp. The problem is that in the case when two (or more) ...
37 views

### Adding field by proximity using ArcMap

I'm using ArcMap with the Basic license. I have turnout gates (points) on or very close to irrigation facilities (lines). The irrigation facilities have a field for type (canal, pipeline, culvert, etc....
34 views

### Identifying polygons that lie between two polygons using ArcMap

I am working on a single layer which includes an island constructed of multiple polygons (used to represent territories). I would like to look at dispersal between territories, specifically, how many ...
152 views

### Finding nearest street name from selected point using ArcPy

There are two data layers with house numbers and street. My house numbers are point type, and my street layer with road names is line type. What I want to do in my project is to find 15 meters near ...
28 views

### Finding distance between point layer and matching polygon layer using ArcGIS Pro

I have two points (GPS photo coordinates) per polygon (area photo is taken). The two points have an identifier that links both to their corresponding polygon, so I already know each polygon will have ...
13 views

### Choosing tool to add field based on nearest neighbor using ArcMap

Using ArcMap, I have two feature classes. The first is my polygon parcel layer with crop type, irrigation type, owner, etc. The second is my line canal layer, which has a field for our water schedule (...
294 views

### How do I interpret the results from the distance matrix?

In this dataset I have created the green dots represent coyote sightings while the yellow dots represent rabbit sightings. I am trying to determine if coyotes and rabbits are randomly distributed or ...
36 views

### Find for each point-feature in layer the nearest point in other point-ayer over a network

I'm looking for a solution for following problem: given a point layer A (10.000 points) given a point layer B (15.000 points) given a line layer C, as network (waternetwork) I want to have for each ...
458 views

### Find nearest line feature from point in QGIS

I have a line feature set and point feature set. I want to get the nearest line feature from every point. For this, the line features are converted to point using "Extract Nodes" tool. Then ...
16 views

### OSRM Nearest health facility to a village

I work in a health research project in rural West Africa. I want to measure distance by road from a village to closest health facility. I use Stata 16. Per now I only have distance "as the crow ...
69 views

### Calculating distance to the closest feature from different layer using Fiel Calculator

I am looking for the distance of the closest point (Layer 1) to my atlas object (Layer 2). I want to use the expression builder. Example: I have a House, which is also the atlas_feature, on 'Layer A'. ...
98 views

### NNJoin in QGIS does not return any distance

I have two layers, one with ~100,000 points, and another with ~20 polygons. I'm trying to find: a. which polygon a point belongs to b. the distance from the point to that polygon I understand that ...
33 views

### Calculate Quickest Route Between All Features

I am looking for a way to create a line feature class that is the quickest path (as the bird flies) between all features in a feature class. I feel like there has to be an ArcGIS Tool that can do this,...
18 views

### Finding x% of closest features to point using Network Analysis of QGIS

I have address points (Z locations), route lines, and polygon shapefiles. I need to find the route lines needed to reach 40% of all Z locations per polygon area. I have created centroids for each ...
162 views

### Transferring attributes to neighbors in point layer using QGIS

My goal is to create a wind map for an area about 300 km² in QGIS. For this i have the data of only one weather station. The idea is to estimate the wind speed by the roughness lenght and the ...
329 views

### Faster st_is_within_distance for points to lines

I am looking for a fast way to run a st_is_within_distance (or equivalent) in R, to find all the lines (y) within a given distance of each point (x). (This would be an equivalent of ArcGIS's "...
55 views

### Getting closest point-feature of another point-feature

I have two point-shapefiles. For each point-feature in one of those two files I want to identify the closest point-feature from the other file and save the "ID" of this point as attribute. ...
68 views

### When to use spatial regression for the proximity analysis

I am not sure about whether I should use spatial regression for the proximity analysis I am trying to do. I’ll just describe the scenario and goal: People claim that convenience stores lower nearby ...
30 views

### Does Euclidean distance consider multiple points nearby?

I have a hypothetical setting I am trying to use to better understand Euclidean distance. So of course this example will only work for the purpose of understanding a concept, rather than actually ...
30 views

### Changing distance units in joined layer in QGIS 3.10

I am performing a Vector analysis using the 'Join attributes by nearest' tool. I am trying to evaluate the distance between a central highway and each vector point in a layer (which each represent ...
121 views

### Finding Overlapping/Close Points of Same Layer in ArcGIS Pro

I have a dataset of point features with photo attachments of street signs from volunteers through the Survey123 app. The app records their location which ultimately creates the point feature. Part of ...
215 views

### Using ArcPy to Generate Near Table in memory

I have a point SHP in WGS84 (EPSG 4326) and I am trying to tabulate the distances to the nearest point in meters. I need to do the analysis using ArcPy, but I want to get the results in a Pandas ...