Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Use this tag when asking questions related to where features overlap.

0
votes
0answers
20 views

Analyzing single Polygon or Polyline that overlaps itself using ArcObjects?

My current process is to determine obstructions in an area and determine properties of those obstructions as they relate to a center polyline. Per the image below I take a polyline which denotes a ...
1
vote
1answer
26 views

How to find if a pixel is entirely within another pixel when comparing for example two GeoTIFF raster maps? [on hold]

Using GDAL and/or Python Red: GeoTIFF raster Map layer 1 Blue: GeoTIFF raster Map layer 2
0
votes
0answers
29 views

Find the intersecting polygons between 2 tags in OpenStreetMap using Overpass API?

I need to find in Italy all the intersecting polygons of: all airport terminals of the tag["aeroway"="terminal"] that are inside only international airports of the tag["aerodrome"="international"] I ...
0
votes
0answers
15 views

Intersecting files with different projections

I am attempting to calculate the intersection of two files(vectors/shapefiles) that have different projections but would in real life have actual overlap. I am attempting to do this using the ogr ...
0
votes
1answer
31 views

r - turn off automatic ordering of linestrings when applying sf::st_intersection

This question is about how while using sf::st_intersection on a LINESTRING and a set of POLYGONs to get several LINESTRINGs in the CORRECT order. sf::st_intersection automatically orders the newly ...
0
votes
0answers
29 views

Find id of polygons within a certain distance from each polygon in a polygon layer

I have a polygon layer of towns. For each town, I want to list the id of towns that fall (even partly) within a 10 km range of that given town. create a buffer of 10 km, which gives a new layer. ...
0
votes
1answer
44 views

Intersecting polygons from different layers based on common values using ArcPy? [closed]

I have two polygon shapefiles (ShapeA and ShapeB) that share some areas. The shapefiles have one attribute in common (CODE) and I would like to do a selection, where I select all the polygons in one ...
3
votes
1answer
72 views

PostGIS trigger does not work as expected while checking intersections

I'm trying to write a trigger that should prevent saving lines which do not end at building boundaries. ( A PostGIS-Solution for something like the topology-rule "Must be covered by boundary of" in ...
3
votes
2answers
55 views

Line/Polygon intersection with a tolerance in QGIS

I have a layer with Polygon and a layer with Polylines. I am looking for the list of Polygons crossed by the Polylines. Just here it's relatively simple: intersection function. That said, the ...
2
votes
1answer
50 views

Syntax for “fields to keep” of Intersection tool in graphical modeler

I'm working with QGIS 3.2 Bonn and try to set up a workflow with the graphic modeler. The model uses the Intersection Tool from the QGIS Geoprocessing Tools. The model works, but I don't want to ...
0
votes
1answer
44 views

Count how many times an attribute in a polyline intersects a polygon in QGIS

I am trying to count how many times a polyline with a specific attribute intersects a polygon in QGIS. For example, I have a polyline with a feature class called "size", this contains a text value i.e....
1
vote
1answer
48 views

How to determine if Point is in Polygon using PostGIS

I want to check if a point is inside a fenced polygon. INSERT INTO polygon (name, geom) VALUES ('test', ST_GeomFromGeoJSON('{"type": "Polygon", "coordinates": [[0,0], [0,5], [5, 5], [5,0]]}')); ...
2
votes
1answer
41 views

Read a Raster Band Value inside of a VectorLayer in QGIS [closed]

How to read pixel values in RasterLayer that intersects line features of VectorLayer, applying Python in QGIS?
3
votes
0answers
48 views

Create lines to connect vertices in QGIS

I have a file that marks street edges and want to connect "crossing" points automatically. Image 1 shows the street edge, Image 2 shows the desired result. Is there a plugin or method I can use to ...
1
vote
1answer
32 views

Why do these coordinates not display correctly (or intersect correctly) with this boundary file?

This is a follow up to my previous question. I wrote code that imports the boundaries of a few US states, and, for some arbitrary point within those boundaries, buffers a circle around that point and ...
1
vote
2answers
68 views

Finding overlay percentage between two polygon shapefiles

I have two layers that I am currently working with: 1. Parcels/property boundaries and 2. Wetlands I am trying to determine the parcels that have 0 wetlands and then for the parcels that do have ...
3
votes
1answer
30 views

Project a point onto a profile tool graph in QGIS

I'm using the Profile Tool add-on in QGIS to extract a profile of a raster data layer. Along this profile there are a series of points which I'd like to project onto the Profile Tool graph so that I ...
1
vote
1answer
49 views

Error when intersecting large spatial polygons data in R : rgeos_binpredfunc_prepared: maximum returned dense matrix size exceeded

I am trying to intersect two polygons that are SpatialPolygonsDataFrame. I am finally getting output after intersecting a small subset of the data frames. But when i run this on the entire dataset ...
0
votes
1answer
54 views

Create buffers around points and merge with SpatialPolygonsDataFrame to create a list of matched polygons and the area of intersection

I have data on polling booths as points and data on village boundaries as polygons. I want to create buffers of 1km around the polling booths and (a) save the ID of all the villages that intersect ...
0
votes
0answers
14 views

Intersect five different points of same layer

In ArcGis Desktop I have the following problem: I have a layer of sites, let them be hotels, for instance, and I want to find each place, where there are less than five hotels within a radius of 30 km....
1
vote
1answer
53 views

Cookie cutting in R?

Is it possible to perform a cookie cut in R? Firstly, I have a polygon shapefile of many polygon some of which overlap. I then have a second polygon shapefile with contiguous non-overlapping ...
2
votes
2answers
90 views

How to run Intersect in QGIS when invalid geometry?

I have two layers to make an intersection. I use QGIS 2.18.22 and Vector - Geoprocessing Tools - Intersect - run is not working, because "Input layer A contains invalid geometries. Unable to complete ...
0
votes
1answer
90 views

turfjs intersect line and polygon

In old turfjs versions, it was possible to intersect a line and a polygon, like in this example. But changing the turf.js version to the last one makes it fail, as shown in this other example. The ...
0
votes
0answers
26 views

Intersect a linestring with a collection of polygons in Shapely

I have a LineString that represents a trajectory and a Python list of Polygons that represent crossroads. I would like to insert new points into the LineString wherever it crosses any of the polygons, ...
1
vote
1answer
12 views

Intersecting geotiff with another one using alpha-channel (or nodata value) in GDAL?

I have two geotiffs related to one location but with different areas covered: 1. 2. How can I intersect their opaque parts into single geotiff like that?
1
vote
1answer
24 views

Find intersection of multiple DSM's using Python and GDAL

I am quite a beginner in respect to GIS and hopefully someone can help me out with the problem I have. I have multiple digital surface models [DSMs] of the same area with all necessary geo-...
4
votes
1answer
118 views

Finding combinations of polygons in PostGIS

all, I have found something that has made me a bit curious about how to correctly use ST_INTERSECTION(A,B). I am looking for every combination of two political district boundary sets in California, ...
0
votes
0answers
35 views

Shapely get line string bounded by a BoundingBox

I have a line string and a bounding box. I want to get the points inside the bounding box including intersection points. (I have tried polygon.intersection(line) but this method only gives ...
0
votes
1answer
24 views

Error: Intersect 2 polygons in Python. Record's geometry not match: 'GeometryCollection' != 'Polygon'

I'd tried replicating intersecting two shapefiles from Python or command line by anna-magdalena which requires intersecting two shapes. I used @gene answer for that: import os from shapely.geometry ...
5
votes
1answer
425 views

Ignoring invalid input features with Intersection tool in QGIS?

In QGIS 2.18, when I used the Vector > Geoprocessing Tools > Intersection tool, I was able to check an option which said "Ignore NULL geometries [optional]". Now I've downloaded QGIS 3.2 and that ...
1
vote
0answers
39 views

Nearest point does not intersect line in 'sf' R package

This is a similar question to my recent questions on how to find the nearest point along a polyline and how to split a polyline by an intersecting point using only the sf package. My question has ...
0
votes
0answers
10 views

Using global turn evaluator to find angle between two intersecting line features?

Since the global turn evaluator is able to recognise the angle between two intersecting line features (or edges in the network): Does anyone know a way to get that information about the angles out of ...
0
votes
0answers
26 views

Alternative overlay processes in Python?

In Geopandas I get a lot of topology exceptions and it is very slow. Can I do it with other libraries like fiona or just Shapely although geopandas is using Shapely I think? data2['geometry'] = data2....
1
vote
0answers
47 views

TopologyException issue when doing intersection in Geopandas?

When I do overlay processes like intersection, I mostly get: :TopologyException: found non-noded intersection between LINESTRING (229971 4.39944e+06, 229971 4.39944e+06) and LINESTRING (229971 ...
2
votes
1answer
41 views

Find overlay between polygons excluding boundary

I want to find which polygons in a spatialpolygonsdataframe overlay each polygon in another spatialpolygonsdataframe. I have tried to use the function over from the package sp and it works fine... ...
0
votes
1answer
27 views

How to calculate intersection of two arcs? [closed]

Given two arcs (defined by start and end points with latitude and longitude) how to check if there is intersection (cross point) and if there is -- how to calculate it? Calculate "manually" -- i.e. I ...
1
vote
1answer
105 views

Only show buffers that overlap geometry

I have multiple sites that are surrounded by a buffer. I also have a layer which corresponds to areas affected by changes. I am trying to filter out buffers that are not overlapped by the change ...
1
vote
1answer
44 views

QGIS 3.0 Field calculator - Call second layer in Intersect

I am trying to use the 'intersects' function within an 'if' condition. If a polygon in Layer A intersects a polygon in layer B, then the cell should display 'YES', otherwise 'No'. However, I don't ...
1
vote
3answers
222 views

One to many intersection of polygons

using QGIS 2.18.16 I am trying to figure out how to find out what polygons in layer one (blue) intersects the polygons in layer 2 (red\pink). I know that there will be more than one intersection for ...
0
votes
0answers
37 views

Area weighted calculation of an intersection in R

I am not new to R, but I am new to spatial manipulation in R. I am trying to attributes from one shapefile to aggregate into another shapefile with different boundaries. Essentially I am trying to ...
2
votes
2answers
73 views

r - reinsertion of intersection points into initial dataset after sf::st_intersection

I have one dataset with POINTS called pts1. I'm connecting them into aLINESTRING and I'm calculating intersection points of that LINESTRING with multiple LINESRINGs from another dataset. The main goal ...
1
vote
0answers
54 views

Query/force only certain geometry types returned from ST_Intersection?

I have ST_MultiLineString geometry records in table_a that I'm intersecting with ST_MultiPolygon geometry records in table_b. Nearly all of the returned GeoJSON is of type LineString but a few are ...
1
vote
0answers
48 views

Length of the boundary intersection between two polygons in R

I am trying to find the length of the border shared by two polygons. I have run cleangeo on these shapefiles. There were no flags that came up. I have looked through several other posts on the topic ...
0
votes
1answer
94 views

Geopandas Overlay and ValueError

I am trying to get an overlay (intersection) of two geodataframes of polygons, but it returns me a ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all(...
1
vote
1answer
33 views

Line intersection with multiple polygons from a shapefile in PostGIS/PostgreSQL database

I am trying find where a line (chosen by a user) intersects any of the multiple polygons within the shapefile. The shapefile is in EPSG:4326 and the coordinates are in (longitude, latitude). I have ...
0
votes
1answer
60 views

Geometry issue when doing intersection

I'm trying to do a quite simple operation, an intersection, but when I run it it says : "Input layer A contains invalid geometries (feature 1745). Unable to complete intersection algorithm." I'm new ...
2
votes
1answer
60 views

Creating index layer around rasters to rename files using ArcPy with ArcMap?

I have a few hundred high resolution geotiffs (cell size 2m) such as the example below which I am trying to rename according to the location in an index layer (red rectangles in example below). I ...
0
votes
0answers
39 views

What does wkt in GDAL intersection method do?

I don't think I understand WKT in the GDAL intersection method. When we use it are we suppose to change the numbers? from osgeo import ogr wkt1 = "POLYGON ((1208064.271243039 624154.6783778917, ...
1
vote
1answer
25 views

cutting waterlines at the edge of polygons

Using ArcGIS 10.3, I would like to cut the river lines at the edge of water body polygons bordering the region. Using the intersect tool and split line to points tool resulted with the disappearance ...
0
votes
0answers
15 views

ST_Intersection between two raster returning different results depending on input order

Depending on the input order of two rasters, I get different results even though I select the correct band. In my opinion, the following two queries should return the same results: 1st query: SELECT ...