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

Questions tagged [intersection]

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

2
votes
0answers
29 views

How to flatten spatially equal polygons in PostGIS?

I have the following dataset of polygons. All the pieces are broken based on their borders. I added some transparency to better understand what's going on. The pieces that have stronger colors, means ...
0
votes
0answers
9 views

Generating co-ordinates of intersection (if any) in a MultiLineString using Shapely

I'm trying to generate coordinates of intersection in one MultiLineString which generates random lengths of lines. This is my code: def gen_streets(length, coordRange): new_street = [] i = 0 ...
0
votes
0answers
34 views

How to get/calculate the percentage of wooded area around many points? (in QGIS)

I have 56 points in NE of Slovenia for which I would like to know the amount (percent ) of wooded area in 500m perimiter around each point. So first I created a buffer around each point (r-500m) and ...
4
votes
1answer
123 views

Only union/dissolve intersecting features to save time?

I have one table of about 300k polygons, some intersecting but most do not. I need to dissolve the intersecting ones and also keep the non-intersecting ones. I only need the geometries, no attributes. ...
0
votes
0answers
14 views

Shapely intersection operation gives non-intersecting results

I generated two lines by calculating the intersection of each of two overlapping Polygon objects with an overlapping LineString object that goes through both. In pictures: Here is the code: src = ...
2
votes
1answer
55 views

How to trim road end at the intersection?

I have a road centerline that I have used to create buffers that represent road area. Now I need to fix the intersections. As you can see on the picture, if the road end is touching the non-end of the ...
1
vote
2answers
37 views

Breaking lines in PostGIS?

I have a roads table and I want to break the lines in the intersections like the v.clean tool from GRASS (I'm talking about how the break tool in the parameters works). How can I do the same process ...
1
vote
2answers
35 views

Python script tool to make intersection points not working?

A colleague made a ArcPy tool for me which worked last year, but now it wont complete. I don't know what's different except maybe I moved the tool or it's output to a new location. It say's it get ...
2
votes
0answers
51 views

How to speed up 'intersection' tool for big amount of data?

I can't figure out how to work with a large dataset. The problem is: I want to know how many points (over 700 000 adresses) are within a polygon layer (it's made out of 5 layers, train noise)(they are ...
0
votes
0answers
24 views

Intersection of raster and polygon in ArcGIS Pro?

I have a layer of block group and a raster. I would like to know which block group is covered by the raster. The output I want is a table of only the block groups covered by the raster.
2
votes
2answers
42 views

Performing multiple intersections between two polygon tables and one raster table in PostGIS?

Trying to perform an intersection of an intersection in PostGIS. Its an intersection between a point table, polygon table and a raster table with different number of rows. The polygon table is the ...
0
votes
1answer
25 views

ArcGIS model tries to tabulate the number of rows from multiple table intersections

I'm trying to generate a table that captures the number of rows, and the source feature class, from the intersection of several FCs against one common layer. My expected output is one row per ...
1
vote
0answers
30 views

r - intersection of 3D objects

How can an intersection of 3D object with 3D object be done in R, for example a 3D line with 3D polygon ? Saw that "sf" provides some possibilities but didn't get the desired result. What was ...
0
votes
0answers
46 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
27 views

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

Using GDAL and/or Python Red: GeoTIFF raster Map layer 1 Blue: GeoTIFF raster Map layer 2
0
votes
1answer
69 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
16 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
41 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
46 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
84 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
81 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
59 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
54 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
43 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
68 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
35 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
81 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
58 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
93 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
195 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
61 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
125 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
206 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
41 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
13 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
32 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
121 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
116 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
37 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 ...
6
votes
3answers
1k 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
51 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
11 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
34 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
75 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
45 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
50 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
114 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 ...