Skip to main content

Questions tagged [nearest-neighbor]

A technique for resampling raster data in which the value of each cell in an output raster is calculated using the value of the nearest cell in an input raster.

4 votes
2 answers
69 views

Change Value of Cell in Cost Layer (Raster) by whether it touches neighbouring cell

QGIS 3.36-Maidenhead: I have compiled a very large cost raster covering parts of Africa. I have applied cost values to all cells based on geographical considerations. I'd like to carry out a final ...
IanGS's user avatar
  • 388
0 votes
1 answer
34 views

Select nearest neighbour by group in R

I have two sets of coordinates, where each pair of coordinates belongs to a group. I'd like to use st_connect to identify the nearest neighbour, but within the group (i.e. nearest neighbour within &...
k42's user avatar
  • 191
1 vote
1 answer
30 views

Connect points to the nearest point that is not inside the same polygon

I am trying to connect points in a vector layer. Each point should be connected to its nearest neighbour that is not inside the same polygon. I am using the ProcessX "nearest point to path" ...
Frannzz's user avatar
  • 11
4 votes
0 answers
189 views

Drawing convex hull that joins centroids of four nearest clusters with highest values

I have point layer in which I have calculated the DBSCAN clusters. The field that stores the clusters is called 'class' and the values range from 1 to 9, plus NULL values. As you can see in the ...
Nil Aspinall's user avatar
3 votes
1 answer
79 views

Dissolve neighbour polygons when distance is below X meters

I like to dissolve polygons in QGIS which are separated by small gaps (streets or paths...). As shown in the picture below, the two polygons in the north should be dissolved, excluding the one in the ...
BAE_23's user avatar
  • 677
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
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
1 vote
2 answers
70 views

Finding features of connected lines to simplify line elements

I have a dataset of spatial line element where each line is classified as a certain vegetation type. The issue is that there are quite few instances where different vegetation types are recorded for ...
Nick's user avatar
  • 85
3 votes
2 answers
295 views

How to draw 8 lines away from every point in a layer using QGIS?

In QGIS I have a layer of many points, and I am trying to draw 8 lines of radius, r, from each point outwards, in the eight windrose directions (N, NE, .. etc). What is one method that can be used to ...
p1unge's user avatar
  • 109
4 votes
1 answer
116 views

Finding nearest body of water (polygons) in the eight windrose directions from a point using QGIS?

I have a layer of points, and a layer of bodies of water (polygon). I am trying to find then nearest 8 bodies of water, in the 8 windrose directions (N, NE, E, SE, S, SW, W, NW) within a given radius. ...
p1unge's user avatar
  • 109
1 vote
1 answer
257 views

Warning message when doing spatial join nearest neighbor on GeoPandas

I am trying a nearest neighbor spatial join with two point Geodataframes but a warning message is appearing. My code: import geopandas as gpd yield_2013=gpd.read_file('https://github.com/kevinkuranyi/...
Oalvinegro's user avatar
0 votes
0 answers
43 views

How to do Neighborhood Summary Statistics by Year in ArcGIS Pro

I am attempting to calculate neighborhood summary statistics for groups of administrative polygons for each year between 2002 and 2018 in ArcGIS Pro. In ArcGIS Pro the Neighborhood Summary Statistics ...
Matt's user avatar
  • 93
6 votes
2 answers
468 views

Finding the nearest named highway way id

Given my location (in Bochum city, Germany), I am trying to identify the nearest highway way id by using the following Overpass API query: [out:json][timeout:180]; area[name="Deutschland"]; ...
Alexander Farber's user avatar
1 vote
0 answers
32 views

Raster stack values mostly NA but in ArcGIS Pro hardly any NA values in extent

I am predicting a machine learning model onto a set of continuous and categorical spatial explanatory variables in R. When I take a look at the raster stack (called Ras1) values using: values(Ras1) ...
BHope's user avatar
  • 63
5 votes
2 answers
292 views

How to calculate distance to nearest neighbor when new candidates are created over the years?

I want to calculate distances between sold properties and the nearest wind power turbine over the years 2013-2022, in FME. QGIS is also an option. I have coordinates for them both and also dates for ...
Josefin's user avatar
  • 51

15 30 50 per page
1
2 3 4 5
17