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
0 answers
37 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 ...
user avatar
1 vote
1 answer
45 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&...
user avatar
0 votes
1 answer
21 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 ...
user avatar
2 votes
1 answer
50 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 ...
user avatar
  • 39
2 votes
0 answers
42 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 ...
user avatar
2 votes
1 answer
38 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 ...
user avatar
  • 21
1 vote
1 answer
38 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 ...
user avatar
1 vote
2 answers
53 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 ...
user avatar
0 votes
1 answer
46 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 ...
user avatar
  • 13
0 votes
0 answers
22 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 ...
user avatar
5 votes
1 answer
83 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 ...
user avatar
  • 418
1 vote
0 answers
24 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"...
user avatar
  • 1,446
5 votes
1 answer
64 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 ...
user avatar
  • 1,015
1 vote
1 answer
89 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 ...
user avatar
1 vote
1 answer
38 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 ...
user avatar
  • 19
0 votes
1 answer
73 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. '...
user avatar
2 votes
0 answers
31 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 ...
user avatar
  • 21
1 vote
1 answer
70 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 ...
user avatar
  • 111
5 votes
3 answers
110 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 ...
user avatar
0 votes
0 answers
35 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 ...
user avatar
1 vote
1 answer
89 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 ...
user avatar
0 votes
0 answers
47 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 ...
user avatar
3 votes
1 answer
103 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 ...
user avatar
  • 1,797
3 votes
1 answer
98 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 ...
user avatar
  • 425
6 votes
3 answers
75 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 ...
user avatar
1 vote
1 answer
35 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 ...
user avatar
4 votes
3 answers
71 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 ...
user avatar
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 ...
user avatar
  • 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 ...
user avatar
0 votes
0 answers
75 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 ...
user avatar
0 votes
0 answers
22 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 ...
user avatar
  • 1
6 votes
3 answers
201 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 ...
user avatar
  • 61
2 votes
2 answers
63 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 ...
user avatar
2 votes
1 answer
178 views

Black output when using "Proximity (raster distance)" in QGIS

I am using the "Proximity (raster distance)" tool in QGIS to calculate the distance from each pixel to the nearby forest. I created the proximity map using the forest raster as input but the ...
user avatar
2 votes
1 answer
67 views

Joining hub and spoke points by lines using Virtual Layer

I have two shape points as shown in image below. Point 1 represents the connectivity nodes (hub) Point 2 shows the address(spoke) How to connect each hub (connectivity nodes) to nearest spoke(...
user avatar
  • 825
3 votes
1 answer
79 views

Nearest neighbor analysis to pick the next closest waypoint

I'm looking for a QGIS solution to do a nearest neighbor analysis on a set of waypoints that I have as X Y points. When the points are loaded into the planning software (loaded as waypoints) they draw ...
user avatar
3 votes
1 answer
43 views

Generating paths from proximity map in QGIS

I'm trying to generate paths from proximity map in QGIS, is there a way to convert the light areas into vector lines?
user avatar
2 votes
2 answers
324 views

Finding the distance between two lines in QGIS

I want to find two lines which are very close to each other within the same layer (spatially). See the image below where there are two lines which are very close (distance of ~18 cm). I wanted to find ...
user avatar
5 votes
3 answers
591 views

Selecting the number of nearest points in QGIS

I have loaded a CSV file (includes points with elevation) in QGIS. I want to select exactly 1000 points in a specific area. My idea is to select one point and then to include all nearest points to him ...
user avatar
2 votes
0 answers
28 views

Unknown large number outside raster proximity layer (QGIS)

I am using QGIS and created a raster proximity layer, values outside of the fixed distance are coming up with the value 65,535. I created a binary raster layer for the presence of peat soil (1) and ...
user avatar
  • 21
0 votes
2 answers
70 views

What tool do I need to visualize world map with straight border while keeping its area and neighboring countries

I am fairly new to data visualization. My goal is: Turning country area into right angled polygon with same area Keeping the neighboring country tangent to its new border Finding the new arrangement ...
user avatar
0 votes
1 answer
25 views

ArcMap near table but with taxicab geometry

ArcMap 10.4.0.5524 for Desktop. No internet connection. I have a shapefile with ~ 200,000 line segments that connect at the vertices to form a network. I would like to generate a table with the 1000 ...
user avatar
1 vote
0 answers
21 views

Determining distance from drainage point to wildfire shapefiles using ArcGIS Pro

I am having some trouble on how to calculate the wildfire distance from the nearest drainage in respect to nearby lakes (images provided). My research involves observing the water quality of multiple ...
user avatar
1 vote
0 answers
10 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 ...
user avatar
1 vote
0 answers
74 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 ...
user avatar
1 vote
0 answers
54 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 ...
user avatar
4 votes
2 answers
89 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 ...
user avatar
3 votes
1 answer
62 views

Getting distance between two points within polygon in QGIS

In 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 a single polygon in polygon ...
user avatar
  • 81
0 votes
0 answers
48 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 ...
user avatar
  • 129
1 vote
1 answer
134 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:...
user avatar

1
2 3 4 5
10