We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [intersection]

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

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

Identifying which lines cross building polygons using ArcMap?

I have the following lines generated from coordinates with XY to Line. I would like to select and delete the lines which cross and are contained within the buildings. I need to do this to find the ...
1
vote
0answers
51 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 ...
1
vote
1answer
47 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 ...
2
votes
1answer
47 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
0answers
15 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) ...
18
votes
5answers
45k views

Finding if two polygons Intersect in Python?

I'm looking for an algorithm, a high level solution, or even a library which can help me determine if two polygons intersect, in Python. I have the vertices of the two polygons (These are single part ...
1
vote
3answers
43k views

Cropping basemap to specific area using ArcGIS Desktop?

I have a base map from ONS of the entire UK and on another layer I have a boundary outline for the smaller area which I want to crop the base map to. How do I delete everything outside of this small ...
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....
1
vote
1answer
106 views

How to get only Intersected polygon in Open Layers 3

I am trying to draw a line on polygon which I want to split, Example: I want to split 616 polygon as show in image with below code when I tied to get intersected polygon I am getting 616,617,615 ...
2
votes
1answer
33 views

Select polygons which do not contain points

I am able to use the intersect tool to find polygons which overlap with points however I would like to find polygons which do not overlap with any points. I think the Symmetrical Difference Tool ...
2
votes
1answer
88 views

ArcGIS Intersect Tool not splitting lines as expected?

I performed Intersect Analysis on one polygon shapefile and one polyline shapefile. I didn't specify any tolerances, and both SHPs were projected into the same UTM before performing the analysis. ...
0
votes
1answer
88 views

GeoPandas intersect not working as expected

Using GeoPandas 0.4.0 with Python 3.5, I'm finding that geopandas.intersects does not behave as I expect it to. For example, a buffer around Switzerland does not appear to intersect with neighbouring ...
4
votes
3answers
204 views

Intersect multiple layers at once QGIS

I'm very new to QGIS and am just learning the intersect function. I have about 10 polygons that overlap (not perfectly) and one layer of about say 15 points. I want to know with which of the polygons ...
3
votes
2answers
209 views

Creating dummy variables between layers based on their geometries in QGIS

I have the following data: administrative boundaries for the United States: https://biogeo.ucdavis.edu/data/gadm3.6/shp/gadm36_USA_shp.zip vector layer containing coastlineshttps://www....
0
votes
0answers
35 views

delete pixels intersecting vector border

I have a two files : vector file : polygon (red) raster file : got by clipping a raster file using this vector file (Green) I want to delete pixels that intersect with the vector border (I want to ...
2
votes
3answers
1k views

ST_Intersection point of two 3D linestrings - how is the Z value calculated?

I have two 3D linestrings (geometry type LINESTRING Z) in a PostGIS database that intersect in 2D space, but not in 3D space. Given that there is technically no 'shared portion' of geometry in 3D, how ...
1
vote
0answers
21 views

Query on line intersection

I have used the line intersection tool in QGIS 3 and I have used vector id for example: vector 1 intersects with 3 and the point (id 1) but also repeats the same imformation in reverse saying vector 3 ...
1
vote
1answer
119 views

Union, merge, intersection, join layers - logical difference and clear explanation for QGIS

I note that there are answers available on the difference between join and merge (e.g., Difference between 'join' and 'merge'?) that link to ArcGIS resources as a reference. However, I ...
22
votes
3answers
13k 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
1answer
101 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
15 views

Creating heatmap for spatial overlap of features (or buffers of features) across different layers using ArcGIS Desktop? [duplicate]

I have several layers of features. For example: Layer1 -> set of polygon features Layer2 -> set of point features (with buffer around each feature) Layer3 -> set of polyline features (with ...
4
votes
1answer
2k views

Postgis Clipping two postgis vector layer without changing attribute table

What I want to do is make the purple layer at the back having the same shape as the transparent layer. However, I don't want any attributes of the transparent layer to be joined to the purple layer, ...
1
vote
1answer
78 views

Polygon creation fails: “The feature cannot be added because it's geometry collapsed due to intersection avoidance”

From one moment to the other I cannot create any polygon anywhere on the map, independent from the layer I am in, even if I create a new shape-file. I have checked all snapping options, enabled them, ...
1
vote
2answers
140 views

Problem with intersecting lines over a polygon layer in QGIS

I have a shapefile with lines (a road network) and I want to intersect it over a polygon layer in order to finally have a polygon layer (each cell has an ID number) with the intersected lines for each ...
0
votes
1answer
94 views

Selecting features of layer present just in one feature of another layer?

I'm a student approaching to QGIS 2.0.1-Dufour. My goal is to know how many features of a layer are present just in one feature of another layer. I tried both with the tools "spatial query" and "...
0
votes
0answers
46 views

Merging layers to intersect and count (tally) multiple fields in QGIS?

My question is similar to Performing multiple layer intersection in QGIS? However, there are a few differences. I have run a test analysis on a dummy data set and cannot replicate the result with my ...
0
votes
1answer
41 views

Creating point feature at intersection of two lines using ArcGIS Desktop?

How do I create a point feature at an intersection of highways and trails? I am using ArcGIS Desktop 10.5.1.
5
votes
1answer
430 views

Only union/dissolve intersecting features to save time?

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

How do I generate points at the intersection of the line with each polygon?

I need to generate points in the places where the line shape cuts to the shape of polygons.
5
votes
3answers
749 views

Identifying polygons that intersect with another layer using QGIS?

Using QGIS, I have two polygon layers, a vegetation layer and a treatment layer. I want to add a field to the attribute layer of the vegetation layer to indicate if any part of the polygon has been ...
2
votes
1answer
132 views

Find intersections of roads in QGIS

I want to get points at the intersections of the road network. I have a single shapefile. It contains 100k features and some of them continue each other. As can be seen from 2 pictures above, the ...
2
votes
0answers
50 views

Calculating share of overlapping areas via aggregate function in a virtual field

I'm trying to calculate the shared area for several overlapping areas. I need a dynamic solution in order to get automatically calculated statistics when drawing new polygons. The target area is in ...
2
votes
2answers
3k views

Intersection with JTS Geometry

I want to calculate an intersection between two geometries with the intersection function from JTS Geometry. What happens, if the geometries have different SRIDs? SimpleFeature sf1=...; //SRID ...
3
votes
1answer
263 views

geopandas.intersects() over each row

In trying to answer Writing selected features to shapefile using OGR and Python? I ran into problems with geopandas.GeoSeries intersects methods. I have the following line and polygon: import pandas ...
0
votes
1answer
241 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 ...
2
votes
1answer
124 views

How to dissolve shared line segments together in QGIS?

I have 2 features which are lines on a single layer re-projected to ESPG:2039. I wish to combine them into one MultiLineString but in a way that their common part is merged to a single LineString. I'...
2
votes
1answer
34 views

Counting the number of shared point within polygons [closed]

I have a set of points on a map, each with a unique location id, with one or more points within a number of polygons with unique polygon ids. I am trying to associate each location id with the number ...
4
votes
1answer
8k views

Intersection error QGIS - invalid geometries that are actually valid

I'm trying to intersect two vector layers (having the same CRS EPSG:4326 WGS 84, in QGIS 2.18.10) but I get this error in the log: Input layer A contains invalid geometries (feature 52). Unable to ...
2
votes
1answer
31 views

I have the following multilinestring, and I am looking for finding the intersection between each pair

I have a pair of lines, which I like to find the intersect of each of one them with each other. I know for two lines I can do the following: from shapely.geometry import LineString line1 = ...
0
votes
2answers
266 views

Identifying polygons that intersect with another polygon using ArcGIS Desktop?

I have two polygon layers, a vegetation layer and a treatment layer. I want to add a field to the attribute layer of the vegetation layer to indicate if any part of the polygon has been treated (...
2
votes
2answers
121 views

Spatial joining two line layers and checking intersection in PostgreSQL/PostGIS

I have two line layers in PostgreSQL/PostGIS. I want to the select data which are not intersecting. When I am writing this query it is taking a lot of time. How can I make it faster and see the result?...
0
votes
0answers
9 views

Seeking approach to simulate taxi on NYC map data? [duplicate]

I am new to GIS field. As part of my class project we want to simulate 100-1000 taxi agents on NYC map.We plan to write java application which fetches road network information and moves these agents ...
5
votes
1answer
553 views

Simulating Random Agent Movements along Roads on Map? [closed]

I need to simulate agent movements on map as follows: Agent starts a known location and moves along a road. At each road intersection, the agent uniformly chooses one possible road and moves along ...
2
votes
1answer
26 views

How to obtain statistics from an intersection?

I am new to the earth engine. My question is on how to obtain statistics from the overlapping region of two areas. I have uploaded a table that contains the locations of river basins (https://code....
3
votes
3answers
3k views

Testing if geometry is inside another using OGR in Python?

I need to tell whether geometries from a shapefile are inside other geometries or not. For example, I want to test if there are trees (represented as points in trees.shp) inside the urban areas (...
1
vote
1answer
213 views

Intersection function returns multiple coordinates

I am trying to find intersection vertices of two polygons defined below PG = Polygon([(0.0,0.0), (0.0,4.0), (2.0, 0.0)]) QG = shapely.affinity.rotate(PG, 10.0, origin="centroid") print(PG....
0
votes
1answer
236 views

Find intersection vertices of two polygons

I have defined two polygons and I can find whether they intersect or not. I need to find the intersection vertices if they intersect or not ? How can I do that ? p1 = Polygon([(0,0), (1,1), (1,0)]) ...
0
votes
1answer
20 views

Data of left turn signal

I wonder if there is any publically available dataset that has left turn signal information (say, in the U.S.)? For example, in right-hand traffic countries, major intersections may have a left-...
3
votes
1answer
69 views

Getting attributes of intersected polygons using PostGIS

I have a PostGIS table containing about 50,000 polygons and some of them are overlapping. I'm trying to use PostGIS to return a table with all the Intersecting parts of the polygons along with some ...
11
votes
3answers
4k views

Rgeos drops associated values when intersecting polygons

I am trying to intersect two SpatialPolygonsDataFrames and get a SpatialPolygonsDataFrame as the result. Unfortunately, using the gIntersection function from rgeos (which works impressively quickly ...