Questions tagged [adjacency]

Spatial relationship where two features share a common border under some interpretation - ie, are 'next to' each other.

Filter by
Sorted by
Tagged with
2 votes
0 answers
21 views

Style rule based on feature adjacent edges and ignore vertices

I have a set of square tiles which I want to show in a different colour when the tile to the north, south east & west are present in the same way as below with the links I want in black. I have ...
user avatar
  • 21
0 votes
0 answers
29 views

Normalize distance between U.S. counties so that adjacent counties are unit distance away

High level problem: I'd like a "distance" metric that measures adjacency rather than euclidean distance. Details: I'm looking for a way to normalize distance between U.S. counties so that ...
user avatar
  • 101
1 vote
1 answer
34 views

Adjacent polylines subtraction [closed]

I have road segments that have slope values. I want to find the roads with the largest grade changes between neighboring segments. How do I go about doing that in QGIS?
user avatar
4 votes
4 answers
302 views

How to find neighboring polygons which share a common feature in ArcMap 10.4?

I am currently using ArcMap 10.4. My task is to find which polygons share a border given a specific feature. I would like to automate this workflow. For instance, I have 2 polygon feature dataset (...
user avatar
0 votes
0 answers
26 views

Querying Adjacent Polygon Features using ArcMap

I have a layer of polygon features representing forest stands with a vegetation type and age. For every forest stand I want to assign it a value in an empty field if any of the adjacent stands have a ...
user avatar
0 votes
1 answer
131 views

ArcGIS Pro matching and dissolving neighbours

I have a FeatureClass derived from ArcGIS Desktop 10.6.1's Polygon Neighbors tool [Windows 10 - 64]. I have supplied a tiny sample (of >250k) that gives the flavour and an example of the objective. ...
user avatar
3 votes
2 answers
171 views

Extracting lines from polygons/buildings based on adjacency to lines/streets

I have a building and street shapefile of a district. I am looking for a way to select and eventually extract those lines or edges of the buildings that face the street. however the extracted edges ...
user avatar
  • 31
0 votes
0 answers
226 views

Problems with adjacency matrix with poly2nb in R

I am working with a shapefile of Ohio precincts, with the hope of performing areal regression models (probably BYM2). To build the adjacency matrix, I used poly2nb from the spdep package. As a double-...
user avatar
  • 1
0 votes
1 answer
48 views

How to increase the number of the adjacent cells of a focal cell?

I want to recover the adjacent cells around a focal cell, I could do it by using the function adjacent form the package « raster », cells_adj <- adjacent(Habitat[[1]], cells=cells_xy, directions=...
user avatar
6 votes
2 answers
197 views

Why do clipped polygon features (clipped with adjacent polygon tiles) still overlap with each other?

I have two layers in QGIS with intersecting polygons (blue "P1" and green "P2"). I want to clip them with adjacent polygons tiles (dotted line - blue "cut1" and green &...
user avatar
0 votes
1 answer
77 views

Polygon Neighbors tool produces incorrect results

BACKGROUND: At 10.8.1, I have used the Polygon Neighbors tool with a countywide parcel shapefile (approximately 47,000 polygons). The tool runs to completion (taking < 1 minute) without reporting ...
user avatar
  • 6,972
0 votes
2 answers
257 views

Identifying shared polygon boundaries in ArcGIS Desktop

I am aware you can dissolve boundaries (standard feature analysis tool) but is there a way you can calculate polygons that share a boundary? I have attached picture with an example of the polygon data ...
user avatar
4 votes
3 answers
312 views

Simplifying adjacent polygons on subset of vertices only

We have many adjacent polygons which are very complex and we need to simplify only some portions of them. There are no gaps nor overlaps between any two adjacent polygons. What we'd like to do is to ...
user avatar
  • 263
2 votes
1 answer
244 views

how to remove small water bodies in binary mask array that we get from ndwi values?

I've detected water bodies in satellite images (modis, sentinel, landsat) in special area polygons, by ndwi values and based on special thresholds. area polygons and image tiles are coordinate ...
user avatar
1 vote
2 answers
249 views

Checking if selected features are adjacent using OpenLayers [closed]

I need to be able to merge features on the condition that the selected features are adjacent to each other. How can I achieve this using Open Layers version 5?
user avatar
  • 193
1 vote
0 answers
39 views

Adding attributes from surrounding feature (exclave problem)?

Here is the problem: I am creating polygons based on the result of closest facility tool in Arcmap. Polygons consist of municipalities with the same closest hospital (impedance is a travel time, not ...
user avatar
  • 41
0 votes
1 answer
174 views

Finding neighbouring countries using Overpass?

How can I find all countries that are neighbours (share a border point or line) of a given country (eg. germany) using Overpass?
user avatar
0 votes
1 answer
33 views

Computing area of shared surface between adjacent 3D features in ArcGIS Pro?

ArcGIS Pro currently provides the Polygon Neighbors tool to compute the length of the shared border between features. I want to do the same type of calculation for (closed) 3D features, i.e. I want to ...
user avatar
  • 181
2 votes
0 answers
140 views

Converting polygon to line with neighbor info using QGIS?

Is it possible to create lines from polygons with information about neighbors in QGIS? I would like to do this for land plots. There is a tool in ArcMap that works like a charm, but I do not see ...
user avatar
2 votes
0 answers
91 views

Convert bitmap image to adjacency [closed]

I have a map in a bitmap image format (.bmp) where each region is assigned an RGB colour. What I want is a list of every adjacent region, for every region. So if region1 is adjacent to region2 and ...
user avatar
  • 21
3 votes
0 answers
103 views

Grouping polygon neighbors recursively using PyQGIS? [closed]

I have a shapefile with polygons and need to group them with the same Group_ID if they touch each others. The thing is, once I start assigning a number to one polygon, it needs to keep looking for ...
user avatar
  • 31
3 votes
1 answer
174 views

Ordering polygon neighbors in clockwise order using ArcMap

In ArcMap, I am using the Polygon Neighbors tool to generate a list of each polygon's adjacent polygons, or 'neighbors.' Currently, ArcMap orders the polygons using each polygon's numeric ID. What I ...
user avatar
1 vote
2 answers
419 views

Merging polygons that share one vertex (node neighbors) using ArcGIS Desktop?

I have a set of very large shapefiles and would like to merge polygons within these that share one vertex. Currently they are all separate like so: What tool can I use to merge all the polygons ...
user avatar
  • 115
5 votes
1 answer
2k views

Dissolve (merge) polygons QGIS based on attribute values only when are adjacent

I am a fairly new user of QGIS having a question regarding dissolve functionality. I am working with the NUTS-2 shapefiles provided by EU, which I have imported in QGIS. I have created a new layer ...
user avatar
  • 71
1 vote
1 answer
487 views

Using Polygon Neighbors for boundary polygons to find boundary lengths in ArcMap?

I am working in ArcMap. I have a map of districts in South Carolina, and I'm trying to find the boundary length that every district has with every other district, and the boundary of South Carolina ...
user avatar
  • 135
0 votes
1 answer
107 views

Second-level neighbors of large polygon (neighbors' neighbors)

I have a large-ish set of polygons and am after identifying second-level neighbors of each, that is, the neighbors of the neighbors of each polygon (distinctly, i.e. the 2nd-level neighbors cannot ...
user avatar
1 vote
1 answer
278 views

Extract the "mid/center-point" of the touching borders/lines of adjacent polygons

I have a layer with several polygons and want to extract the "mid/center-point" of the touching borders/lines of adjacent polygons. Despite trying several methods, I do not know how to achieve what I ...
user avatar
  • 892
7 votes
6 answers
1k views

Determining if polygon not enclosed by other polygons [closed]

Does anyone know of a routine/function or transformer that would identify if a polygon is not fully enclosed/surrounded by other polygons? The polygons have no gaps or slivers between them so if a ...
user avatar
  • 3,150
0 votes
1 answer
205 views

Identifying/exporting adjacent polygons in ArcGIS Desktop?

I have many polygons (US Counties) with agricultural land data in them. I would like to identify and export (ideally into excel) the data from the counties that are adjacent to the ones with ...
user avatar
0 votes
1 answer
62 views

Selecting coastal census tracts in ArcMap? [closed]

What tool should I use to select or identify geographic units that are adjacent to the U.S. coastline feature in ArcMap?
user avatar
  • 11
3 votes
0 answers
524 views

Creating Adjacency Matrix using SpatialLinesDataFrame and SpatialPointsDataFrame in R?

I am trying to create an adjacency matrix of power plants that are connected via power lines. The plant data is point data (~8000 observations) with longitude and latitude measurements. The line data ...
user avatar
1 vote
0 answers
174 views

Directions based on polygon centroid and average/median point of adjacent polygon's touching border

I have a layer containing multiple polygons, and I am trying to find a way to identify the directions of the adjacent polygons of a certain polygon. The directions would be based on the main polygon ...
user avatar
  • 892
2 votes
0 answers
270 views

Postgis List of adjacent LineStrings ordered sequentially from one end of the MultiLineString to the other

I have LineStrings that represent a road network/address centerline that are segmented at intersections, etc. I have determined how to query collections of LineStrings that are adjacent to each other ...
user avatar
0 votes
0 answers
97 views

Calculate Adjacent Fields Issues

I am trying to run the Calculate Adjacent Fields ToolBox on one of my Shapefiles, but the process is taking hours to run, and I have yet to complete the process. My table is 18,000 rows, and so far ...
user avatar
  • 223
2 votes
1 answer
4k views

Merging adjacent polygons in QGIS

I have a set of polygon layers with thousands of polygons some of which are adjacent (Either rings or simply adjacent). I would like to simplify this polygons by merging them. Is there a way to do ...
user avatar
  • 1,478
2 votes
1 answer
184 views

Adjacency Matrix Not Including Vertices

I have a SpatialPolygonsDataFrame and I would like to create an adjacency matrix. However, I would like to only count two polygons as adjacent if they share more than just vertices (i.e. they share an ...
user avatar
  • 23
2 votes
3 answers
1k views

Counting polygon neighbours and writing to table using PyQGIS? [closed]

I have a shapefile with municipality polygons. I would like to count the number of neighbours for each polygon and write it to the attribute table. I have no succeeded yet in doing this, even though I ...
user avatar
  • 481
12 votes
3 answers
3k views

Conditional assignment of values to adjacent raster cells?

I have a value raster: m <- matrix(c(2,4,5,5,2,8,7,3,1,6, 5,7,5,7,1,6,7,2,6,3, 4,7,3,4,5,3,7,9,3,8, 9,3,6,8,3,4,7,3,7,8, 3,3,7,7,5,3,2,8,9,8, 7,6,2,6,5,...
user avatar
  • 387
4 votes
1 answer
212 views

ArcGIS, detect adjacent polygons with different values

I am developing an ArcMap extension and I need to validate a particular case. I need to detect adjacents polygons that have one value equal, and the others not equal. I you take a look at the image, ...
user avatar
  • 385
1 vote
2 answers
546 views

Identifying isolated polygons within other polygons ArcGIS for Desktop?

I am using ArcGIS 10.4 for Desktop. I have a single feature class with one attribute with 5 levels describing the state of grasslands and how they have changed over time. The attached image shows a ...
user avatar
5 votes
1 answer
154 views

Style rule based on feature adjacency?

Is there a way in QGIS to use an expression to define a polygon feature's color based on whether it's adjacent to other features? I would like to achieve something like the following: -If a feature ...
user avatar
  • 1,214
1 vote
1 answer
45 views

Identifying ID of adjacent pipelines?

I work with ArcGIS. In the picture you can see several pipelines, more over pipeID's A; 1; 2; 3 I would like to have as an output the following columns and rows: A - 1; A - 2; A - 3; As an ...
user avatar
  • 11
0 votes
1 answer
453 views

Merge adjacent polygons [closed]

I want to write software that merges groups of (mainly) adjacent polygons. For example, merge the US counties into sales regions. Then, display either the boundary of these sales regions or fill them ...
user avatar
1 vote
0 answers
54 views

Merge without dissolve in ArcGIS for Desktop? [duplicate]

I am trying to merge several polygons in a feature dataset into one. Normally I would use a simple merge but the issue is that merge automatically dissolves. I on the other hand want to have them all ...
user avatar
  • 61
2 votes
1 answer
226 views

Adjacency matrix from TopoJSON

I have a TopoJSON file which describes electoral districts in Montreal, and I would like to produce an adjacency matrix which would tell me which districts share a boundary with which other districts. ...
user avatar
1 vote
1 answer
1k views

Creating lines that connect the centroids of adjacent polygons to one another

I have about 10 polygons, and I have added their centroids to the map. I want to create lines connecting the centroids of each adjacent polygon. If polygon 1 borders polygon 2 and 3, I would like a ...
user avatar
  • 71
0 votes
1 answer
942 views

Merge touching polygons with keeping their attributes

I've got a layer of polygons Although they all in the same layer, each polygon own some unique data like the date of this polygon and an amount it possess (a number). I want to join/merge all the ...
user avatar
  • 99
2 votes
1 answer
698 views

Adjacency matrix from polygons in GeoJSON

I have a set of polygon features in a GeoJSON file. They are neigbourhoods in Chicago. I would like to produce an adjacency matrix A, in CSV format or any other form, where the i,j element of A is 1 ...
user avatar
3 votes
0 answers
196 views

Adjacency matrix for polygons using Java

I am trying to create an adjacency matrix from a set of polygons. That is, I have a bunch of polygons and I want to identify which polygons have a common edge or "touch" each other. Once I find this ...
user avatar
1 vote
1 answer
69 views

Outputting Polygon Neighbors into special format using ArcPy?

I need Polygon Neighbors to give me data in a specific format. Every polygon should have its own line in the output. Take this, for example(it's obviously not ArcGIS formatted, but it serves the ...
user avatar
  • 13