Questions tagged [intersection]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
33 views

Define compound classes by intersection of two raster images in Google Earth Engine

I am trying to create ecoregions by the intersections of soil classes and land cover classification. Ideally I would like to have something like "forest_Entisol" and "forest_Oxisol" or as well "...
0
votes
0answers
18 views

R- Quickest/most efficient way to parallelize/break up an overlay of points to large grid (or spatial join)? [closed]

I have a shapefile of roughly 200,000 randomly spaced points that I need to overlay with a grid to find which specific cells the points fall within (will aggregate/average the points up later). This ...
3
votes
1answer
58 views

Calculating polygon attribute based on intersection with grid in QGIS

I'm trying to use QGIS to profiling polygons in a layer. There is also another grid layer, each grid contains its own demographics information. Assume the demographics are evenly distributed within ...
2
votes
1answer
63 views

Finding differences between polygons in PostGIS

I have another redistricting question. The datasets and queries available on my GitHub, but I will include the queries here, too. I am working on two complete datasets: 1) A PLAN - composed of ...
3
votes
1answer
43 views

Calculating intersection angles of multiple polylines QGIS

I have one vector layer of multiple polylines that intersect each other in QGIS. What I want to do: calculate all intersections angles (2-ray, 3-ray, 4-ray and 5-ray types) in this vector layer. What ...
1
vote
1answer
31 views

Finding the overlap between two rasters based on pixel values

I'm trying to find the intersection of two rasters. Raster A has the probability of a fish existing in each pixel and Raster B has the probability of a different fish existing in the same space. I ...
-1
votes
0answers
10 views

Add intersection coordinates to the Linestring using Shapely [duplicate]

I have two line strings as shown in the picture below. Blue and green. How to add the coordinates of the orange line(orange dots) to the green line and make it a single new line using Shapely ...
2
votes
1answer
31 views

Split linestring by selecting two points in OpenLayers?

I have a project where people can drag and drop a gpx file. This results in a multilinestring. People should be able to take a piece of their route and submit that. I was thinking of letting the user ...
2
votes
1answer
54 views

Perform intersection using a TRIGGER

I've two geometry table inside my DB: buffer: id INTEGER SERIAL PRIMARY KEY, geom POLYGON polygons: geom MULTIPOLYGON I need have the intersection between buffer and polygons and I will do this ...
1
vote
0answers
22 views

Intersection between two polygons using GeoDjango

I've three models: class Buffer(models.Model): geom = models.PolygonField() class ImportedPolygons(models.Model): geom = models.MultiPolygonField() class IntersectionOutput(models.Model): ...
2
votes
0answers
38 views

Clip completely overlapping polygon(s)

The shapefile that I'm working with (in QGIS) has over more than 250k polygons. But unfortunately a lot of the polygons are overlapping. The focus of my challenge is to delete or clip the polygon ...
1
vote
1answer
79 views

Line and polygon intersection in GeoPandas/Python

I am trying to intersect two GeoPandas data frames, the first one is the street data (streets) and the second one is a buffer (polygon) around a point (buffer). I want to find the intersection of ...
2
votes
1answer
38 views

Counting points between two intersections: Roadway Network

I have a roadway network as a line feature and crashes as point features. I need to count the number of points that lie between two intersections of roadways. The biggest problem is the road is also ...
0
votes
0answers
27 views

Clean up self-intersecting polylines in QGIS?

I have GPS data that contains self-intersections. This happens when someone walks around on "the same spot". Is there a way to clean up these in QGIS? I tried Smooth but that did not do the trick.
1
vote
0answers
29 views

Identifying line intersection in QGIS [closed]

I have 1 shp line, I want to determine the intersection positions of the roads at 4 the intersection. I used "intersection point at the road" but it gave an unexpected result (picture 1) I want to ...
1
vote
0answers
25 views

Adjecency matrix with road intersaction to the power of 3

I got the following code: line_gdf = Crewe.iloc[0:2500] ma = line_gdf.geometry.apply(lambda g: line_gdf.intersects(g)) lll = ma < 1 # Where values are low ma[lll] = 0.0001 # All low values ...
2
votes
1answer
30 views

PostGIS Recursively Finding Intersections of Polygons to Determine Clusters

My dataset currently contains about 15.000 buildings which partially touch each other. The objective is that those which do touch should belong to a cluster. This "basically" works but the main issue ...
2
votes
0answers
35 views

PostGIS intersected polygon fails on contains

I have two functions, first I check if a polygon is within a defined polygon. If it's not, but on the border, I cut it with ST_Intersection, and get a new polygon. If I check the result, I get that it ...
3
votes
1answer
63 views

Intersection tolerance error with Shapely

I am using Shapely to do a basic intersection operation. However, Shapely doesn't return the intersection line I am looking for. I though the reason might be Shapely's intersection doesn't have ArcGIS'...
2
votes
1answer
59 views

Aggregates Functions - QGIS - Calculating Area Explained

I've been reading through question and answers on the Aggregates Function, but have been unable to obtain a clear understanding and solution to my problem. I have a polygon grid ("Grid 4km") and I ...
0
votes
0answers
23 views

Setting topology rules to connect short lines aross complex intersections

I have a polyline SHP with a bunch of very short lines (less than one meter length). Is there an automated way to force the short lines to connect to a neighboring line at complex intersections? ...
1
vote
0answers
22 views

Choosing Clip or Insersect tool in QGIS? [closed]

I am doing a analysis but I have information which is not available in all disagregation levels. I mean, some data is at a national level, other is at subnational level and other is in district level. ...
1
vote
0answers
20 views

Create grid with a prespecified number of cells inside a shapefile with R

I need to create a grid inside a shapefile with a fixed the number of cells n (inside the shapefile). I tried a few stuff see bellow but nothing worked so far. Any ideas? The data shapefile can be ...
3
votes
0answers
97 views

Find a centerline of an intersection between two irregular shaped polygons

I have two irregular shaped polygons that overlap each other at least in at two points. I want to first find the intersection area between all of them, then for the polygon pair that intersects I want ...
0
votes
0answers
41 views

Finding out if crossroad or 3-way-intersection

I'm trying to find out the type of a crossroad / intersection in overpass by given coordinates (simple 4-way-crossroad or 3-way-intersection aka Y/T intersection). Wanted to count the way-id's I'm ...
1
vote
0answers
27 views

Improve OGR SQL query for polygon intersection using WKT geometry

I want calculate the intersected area between a shapefile and WKT geometry. My target big layer: a.shp My query small layer: 'POLYGON((1150046 1264030, 1160100 1263793, 1160079 1260606, 1150218 ...
2
votes
1answer
35 views

Using Geos C++ Library to return overlap and intersects [closed]

I'm running GEOS C++ Library v 3.6 on Fedora. I have a list of geometries I loaded from a shapefile and converted to geos polygons. The shapefile is large and I may be overlaying several ones to ...
0
votes
1answer
123 views

Overlapping two line problem

I want to check if 2 linestrings intersects (or overlaps) or no. I use turf.js overlap. Here are the results I want to get: CodePen 1- If only first or last points of line 1 intersects with first ...
2
votes
1answer
44 views

Check if points that share attribute intersect polygons

How to check whether points started in red and ended in a blue polygon (and vice versa) while sharing the same attribute? To check if the first location of the unique ID is in one polygon and last in ...
2
votes
1answer
59 views

Points along lines at set elevation intervals [closed]

I am looking for a way to create points along lines (roads) at set elevation differences (0.5m height differences) using QGIS.
1
vote
1answer
109 views

Finding percentage of intersection in polygon

For two given polygons generated in this code, how do I find the percentage of intersection on the rectangle? [The polygon was created using the Alphashape function] (Linked to Finding points of ...
1
vote
0answers
65 views

Finding points of intersection in polygon?

For two given polygons generated as shown below, how do I find the points that are intersected on the rectangle by the circle? [The polygon was created using the Alphashape function] (Similar to ...
1
vote
1answer
82 views

Replicating“Intersection” function in QGIS using PostGIS queries

I have two multipolygon shapefiles that I've imported into my PostGIS database - one of congressional districts (cds) and one of US counties (ctys). Below shows the counties in blue and the districts ...
1
vote
3answers
123 views

Variable Buffer on Street Centerline using ArcGIS

I have a street centerline file where all road segments have a functional class of Arterial (A), Collector (C), Local (L). I also have a point file of each intersection. I would like to do a crash ...
1
vote
1answer
41 views

Building query with st_shared in QGIS

I have a table with county polygon boundaries (named "counties"). I need to build a query that identifies a particular county as well as any adjoining counties that share the same border. Have tried ...
0
votes
0answers
92 views

Determining if Raster and Polygon intersect using ArcPy?

I have a folder of rasters (.tif) and I want to determine which rasters intersect a polygon. The rasters are single band with a value of "1" while the rest of the extent has a no data value (coloured ...
1
vote
0answers
46 views

How to delete vertex and keep topology

I work with line vector data (road network).The lines (roads) includes several vertexes. I would like to have for each line only nodes - at the end of line, or at the intersection of n lines. How can ...
0
votes
0answers
15 views

Split height data based upon grid? (Same as Create Grid, Intersection, Split Data for Vector)

I have vector data for a large area that I have split into 2km x 2km layers using Create Grid, Intersection, and split, within the vector menu. I've downloaded STRM data for the whole area. I'd like ...
0
votes
0answers
90 views

Faster calculation of Shapely polygon-line intersection

I am running a Python Shapely where I have a rotating and translating polygon for which I obtain some probe signals in the following way: for theta_index, theta in enumerate(thetas): rotated = ...
1
vote
2answers
292 views

Length of intersections from a linestring and a grid shapefile by using Python GeoPandas & QGIS

I am using Python GeoPandas and I have two shapefiles. One of them is a grid file containing equal polygons. The other shapefile is a linestring file with several lines and its Attributes. The idea ...
1
vote
1answer
50 views

How to get the intersected region(s) of multiple polygon layers

I have multiple layers with polygons. I want the regions that are intersected by all the polygons. The shared, common regions. An example use case would be finding the shared area of multiple raster ...
1
vote
1answer
26 views

Unioning a set of intersections [closed]

I'm working with two datasets: a set of precincts and a set of census block groups. The census block groups include water; the precincts don't. I would like to trim the census block groups to get only ...
2
votes
1answer
76 views

Multipart geometry after pyqgis-3 intersection()

I'm trying to intersect two polygons with intersection() function of QgsGeometry (pyqgis-3). The problem is that the result is a multipart polygon instead a single part polygon and QGIS doesn't allow ...
0
votes
0answers
17 views

Selecting street segments (polylines) based on intersections with others and adding value to its field from Excel table?

I have a shapefile of city streets polylines and an excel sheet with similar data. I need to select a street segment based on the two segments it intersects. Then I add the value from the "ID" field ...
1
vote
0answers
53 views

Identify intersections and assign them to one of the features in a single layer

I have a single SHP-layer (12,810 features) and want first of all to identify intersections (incl. duplicates --> features with identical geometries). In the next step I want to delete/clip these ...
2
votes
1answer
54 views

Generating map with polygon aggregation in PostGIS

Generate the map of federal units from the municipalities map in PostgreSQL with PostGIS. Example below: The table has only the geometry information and the "id". I tried: SELECT st_union(m.geom) ...
1
vote
1answer
59 views

Select shapes in one layer that overlap with shapes from another layer?

This question is a duplicate of this: How to select only polygons that overlap with another layer? But in my question I want to know how to do this in QGIS not in ArcGIS. I want to be able to select ...
1
vote
1answer
41 views

Getting area covered by intersection or junction?

I need a way to get following information for each intersection or junction in Berlin: latitude and longitude area covered I could get all Junctions from openstreetmap as nodes, which would give me ...
1
vote
1answer
25 views

Improving performance of shapely crosses

I am unsure if this is the fastest way to test if LineStrings cross each other. Is there a better method. for line_1, line_2, in itertools.combinations(lines, 2): crosses = line_1.crosses(line_2) ...
0
votes
1answer
30 views

Get just not null values from intersection of shapefile and buffer with Python

I generated a buffer using this question: Creating buffer circle x kilometers from point using Python? I did an intersection with this buffer and a shapefile using: intersection_origem = shp_geom....