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.

3
votes
0answers
34 views

Unable to compute intersection between two polygons using PyQGIS?

I have two polygons in different layers. I am trying to find the intersect between the two polygons. Below a figure showing my test case. I initially wanted to find the intersect between the green ...
1
vote
0answers
13 views

Deleting vector layer within buffer? [closed]

I am trying to delete points from a shapefile with vector information that intersect a buffer that was created. I have tried using the intersect tool, but that only highlights the information that ...
0
votes
1answer
43 views

Intersect of raster image on Google Earth Engine

I have this situation on Google Earth Engine: 3 different images, each of these are made by 17 different bands. These bands represent the different year. I call these images with these letter: a,b ...
-2
votes
1answer
26 views

How do I filter 4 features from a vector shape file to create a new layer to perform buffer, intersection and union on it, in QGIS 2.18?

From a dataset that contains points of interest defined by type of object with 4 different features, I am trying to distinguish the features to perform different analysis. Thought I had to filter the ...
3
votes
0answers
63 views

Intersection and area calculations in geographic vs. projected coordinates

I think one should do intersection calculations when layers are in the same coordinate system, and one should do area calculations in the appropriate projected coordinate system. The order matters, ...
0
votes
2answers
47 views

Faster alternative to `Intersection` in QGIS to just retain overlapping features without cutting

I want to keep only the features from my data layer (polygon A) within my area of interest (AOI). If I compare two methods to perform that, the processing time is very different. Intersection tool I ...
1
vote
1answer
28 views

Why does shapely intersection of two lines change behaviour when fiona module is imported?

I am having issues with calculating an intersection of two LineStrings using Shapely. Such an intersection should return a point, yet my code returns a LineString. I found a simple example of an ...
1
vote
0answers
18 views

How to output file with all overlaps between two Shapefiles - Neighborhood/Zip Codes [closed]

I have a pretty specific problem I would like help with. I have two shapefiles: neighborhoods from https://www.zillow.com/howto/api/neighborhood-boundaries.htm zip codes from the census bureau: ...
0
votes
0answers
45 views

Comparing speed of Spatial Analysis with GeoJSON versus shapefile in QGIS?

I have a large dataset that I want to perform spatial analysis on in QGIS. Specifically, I want to perform a polygon intersection analysis between two polygon layers. Given the size of the dataset ...
2
votes
1answer
40 views

How to find intersection polygons in single layer on QGIS version 3.4.2?

I have polygons intersection in single layer. I want polygon in yellow frame and use polygon intersection to calculate area , how to do this?
1
vote
0answers
55 views

Query for finding intersection points between adjacent features within a buffer tolerance - PostGIS

I've developed the queries to find out intersection points (within 0.2 buffer) between line and polygon and also within adjacent polygons by using PostgreSQL 10 and PostGIS 2.4 database. Line data is ...
1
vote
1answer
36 views

PostGIS ST_Intersects result is ignored by where condition

I have a simple query filtering by st_intersects function finding all lines intersecting with a polygon. select *, st_intersect(graph_line, st_geomfromtext('POLYGON((261 156,148 452,333 507,566 199,...
3
votes
1answer
66 views

Extending a segment in QGIS to check intersection with a polygon

I am trying to find the adress points (red dots) located in front of an obstacle (red polygon). The street is green and the pink line represents the street face (Si). This is what I have so far, but ...
0
votes
0answers
57 views

Geopandas KeyError: “['__idx1' '__idx2'] not found in axis” during overlay operation

I'm trying to get the intersection area between two geodataframes using the overlay method. gpd_df1 = gpd.read_file("shapefile1.shp") ## US census tract shape file gpd_df1 = process(gpd_df1) ## ...
1
vote
1answer
51 views

No output of simple intersection in QGIS / Shapely

I have three simple geometries (download): 1) Province boundaries of a province in Egypt (Al Wadi Al Jadid). 2) A 10 x 10 degree polygon (index = 417). 3) another 10 x 10 degree polygon (index = 416)....
1
vote
0answers
82 views

Is PostGIS faster than Shapely [closed]

I've recently tried using Shapely to dissolve and intersect large sets of 100'000+ geometries, some of them quite complex. This would take me at least one hour, at which point I would usually shut the ...
2
votes
1answer
40 views

Intersection of touching geometries returns a polygon

I'm using Postgis 2.3. I have two touching geometries that I got from an overlay (ST_Difference) operation: id | st_astext 3 | MULTIPOLYGON(((0 -2,0 ...
1
vote
0answers
12 views

Which polygons intersect rectangle in PHP/Linux GDAL?

I'm developing a website where I want to test which polygons from a shapefile intersect a given rectangle. Using PHP, I thought about using exec() function, calling a GDAL program, like ogrinfo. ...
0
votes
1answer
15 views

Adding field of intersected polygons in points using ArcGIS Desktop? [duplicate]

I have some points and polygons in an area. I want to add a field in those points that tell what polygons have been intersected by those points and not only what polygons but a specific attribute of ...
1
vote
1answer
40 views

Creating a new shapefile from points which are overlapped by polygons PyQGIS3

I want to extract points which are overlapped by polygons to a shapefile with PyQGIS. I typed the code below, I don't get an error, but I get points that I have on the beginning. So my intersection ...
-2
votes
1answer
34 views

Calculating wetland coverage/overlay over parcels of land? [duplicate]

I have two layers. Layer 1 has features that are property/parcels with area in acres. Layer 2 has features that are wetlands/bodies of water with area in acres. I want to calculate the percentage of ...
2
votes
1answer
82 views

Slow PostGIS line intersection even with indexes

I have line data contained in different graphs. Querying data over multiple graphs and using st_intersects results in slow queries. All lines are represented as geometry(LineString). I am querying ...
0
votes
0answers
58 views

using st_join for a spatial join

I am using the sf_package to work around spatial data in r. At this stage, I want to make a spatial join so that the tax lots of my area of study inherit the attributes of the floodplain on which they ...
3
votes
1answer
51 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 ...
-1
votes
0answers
27 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 ...
-1
votes
0answers
35 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 ...
5
votes
1answer
173 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
27 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
69 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
39 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
40 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
57 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 ...
2
votes
2answers
50 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
32 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
67 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
48 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
72 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
18 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
49 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
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
87 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
103 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
71 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
45 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
63 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
45 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
90 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
37 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
118 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 ...