Questions tagged [intersection]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 views

Raster intersect is duplicating polygons

I am using a raster intersect to intersect two spatialpolygonsdataframes. One is a moose home range and the other is a SPDF containing wetlands. However, when I intersect them, the total number of ...
user avatar
  • 1
0 votes
0 answers
11 views

GeoPandas intersection with polygon elements in single geodataframe [closed]

I am new to Python and have a geodataframe of polygons that intersect each other and I want to run an intersection on the polygons within this single geodataframe to return only the intersected areas. ...
user avatar
1 vote
0 answers
17 views

How to transfer/split the boundaries of single IDs from one shapefile to another

I did a Land Use Land Cover Classification from a satelite image and converted the result from raster format to a polygon shapefile. Now I want to split the single polygons to the boundaries of ...
user avatar
1 vote
0 answers
33 views

Finding intersection between polygons in one shapefile using Shapely

I'm trying to repair invalid geometries in my shapefile. Before using object.buffer(0) method to repair them I need to extract geometries that intersect in-between with their whole surface cause I ...
user avatar
  • 33
0 votes
0 answers
20 views

QGIS Calculate Percentage Area of Grid Cell

I'm trying to use QGIS to calculate the area of each grid cell that has been deforested. To do so, I have tried the following: Create Grid to create a 30km x 30km square grid Add Deforestation Layer (...
user avatar
  • 19
1 vote
1 answer
43 views

Trying to update attributefields from shapefile with field values from intersecting shapefile features

I have two shapefiles. This code selects features from shp1, which intersect with features from shp2. I need to update two fields from shp2 with the values of the intersecting features form shp1. ...
user avatar
  • 65
0 votes
3 answers
87 views

Remove the intersecting parts in a set of polygons [closed]

I have a set of (~200k) polygons showing deforestation in the Amazon. Each polygon is associated with a date when the deforestation happened. Some of them are intersecting with each other, ie. one ...
user avatar
  • 616
0 votes
0 answers
11 views

Point features do not emerge after applying st_intersection on two line features

The aim is to create a point at each intersection of roads via st_intersection. Before applying the function st_intersection, I dissolve the line features based on the road number (via ref). The ...
user avatar
0 votes
1 answer
52 views

Create point feature at line intersection and split lines - R [closed]

I have a shapefile that shows all the roads in Germany. Hereby, I want to create a point at each intersection of lines. Based on this created point, I can split the line into separate line features. ...
user avatar
0 votes
0 answers
55 views

Sample points from outside sf polygon object r

I am looking for a method, that allows me to select points that lie outside all features in an sf multipolygon object. In total I need 10,000 sample points. I am looking for suggestions that adhere to ...
user avatar
  • 395
2 votes
1 answer
68 views

Splitting line on intersection to another line using Shapely

I'm finding a solution for split a LineString on intersection to another LineString. My first solution is: from shapely import wkt from shapely.ops import split first_line = wkt.loads('LINESTRING (28....
user avatar
3 votes
2 answers
119 views

Calculating overlap percent of multiple features in same layer using QGIS

I'm trying to find a way of identifying features in a layer that are at least 50% within another feature in the same layer so that I can remove them. I've discovered SAGA's Polygon self-intersection ...
user avatar
  • 491
0 votes
0 answers
19 views

Polygon Intersection with LineString (closed curve)

I have a polygon as such polygon_coords = [(-13585557.004033158, 4498795.070440721), (-13585215.14187693, 4500515.198409752), (-13581108.78850055, 4497863.34704348), (-13581192.612077117, 4497554....
user avatar
  • 101
0 votes
1 answer
31 views

Extract Points by Attribute for each Intersecting Polygon in ArcGIS Pro

I have a points shapefile and a polygon shapefile, each with millions of features. All points lie spatially within polygons so that there is one or more points within each polygon. The points have an ...
user avatar
0 votes
0 answers
86 views

How to determine the order of shapely's intersection function between two LineStrings

I want to find all the Point intersections between two shapely LineStrings. It is possible that there are multiple intersections and hence the output can be a MultiPoint. How do I know that the output ...
user avatar
  • 311
1 vote
0 answers
53 views

Compute the distance from a point to polygon given the point and direction

I want to compute the distance from a point to a polygon given the point and direction. Currently I am using shapely and defining a "somewhat" infinite line string. This is not ideal as I ...
user avatar
  • 311
2 votes
2 answers
112 views

Intersection of lines passing from two line segments in PostGIS

I am trying to find the intersection point of two lines of which I know 2 points. For example, I have these 2 line segments: select st_geometryfromtext('LINESTRING (4.50554487780521 51.922119943633575,...
user avatar
  • 277
3 votes
1 answer
166 views

Filter a QGIS attribute table using an attribute value from another layer

I am trying to filter an attribute table in QGIS 3.22 using 'Advanced Filter (Expression)' so that the filtered features shown are only those that intersect with a value of an attribute in another ...
user avatar
1 vote
1 answer
36 views

Clip a vector without losing geometries - QGIS 3.22

I experienced a lot of issues trying to keep only a German region from the vector I have of Europe. I've tried everything, using mask+clip with my shapefile of the German region, using "Select by ...
user avatar
  • 399
4 votes
3 answers
468 views

Identifying self-intersections in LineString using shapely

I am looking for an efficient way to identify the self-intersections in a shapely LineString. I can check if there is an intersection by lineStringName.is_simple function. However, I couldn't find a ...
user avatar
  • 315
0 votes
0 answers
29 views

Pairwise multipoint intersection using ArcGIS REST API

I have multiple points I want to get information for using the ArcGIS REST API. However,I'm not sure this is possible when querying a Feature Service layer with multiple points at once. Suppose I have ...
user avatar
1 vote
1 answer
35 views

QGIS fix invalid geometry for intersection on Corine Land Cover files

There are many posts on this but I was wondering on which layer should I do my operations. I explain: I am using the Corine Land Cover (CLC) files for 2006 and I am just interested in one part in ...
user avatar
  • 399
1 vote
1 answer
54 views

Remove polygons that touches other polygon border in GeoPandas

How to remove polygons which touches other polygon border? I have a polygon and a single box outline. I need to get polygons which are outside the box and do not touches box borders and polygons which ...
user avatar
  • 441
3 votes
3 answers
373 views

Intersection point (coordinates) of two paths given start points (coordinates) and bearings (degrees) in Python

I'm dealing with geographic coordinates and geographic bearings (true north) and I want to get the intersection point of two points with different coordinates based on their azimuths (True north ...
user avatar
  • 43
3 votes
2 answers
90 views

Comparing two different layers with duplicates in QGIS

I'm trying to compare 'layer A' with 'layer B'. Layer B is the result of the intersection between layer A and another layer C, so the elements in B are all contained in A. My goal is to create a new ...
user avatar
  • 161
1 vote
1 answer
56 views

Comparing polygons in two layers based on their location in QGIS

I'm trying to compare two layers representing the cycleways of my hometown. I've exported one layer from OpenStreetMap and the other from a regional web site. Now I want to compare the two layer and ...
user avatar
  • 161
0 votes
0 answers
22 views

Are there any functions to check the angle of polygon?

I have 2 polygons that are connecting each other at a line like this. I want to remove overlaps between 2 polygons for which I see a function difference in JTS which works nicely but I want to apply ...
user avatar
0 votes
1 answer
35 views

Merging two multipolygon shapefiles and removing one of overlapping polygons using R

I have two shapefiles of digitized wildfires. Each shapefile has many polygons representing different fires. Each shapefile has an attribute field to denote the year of the fire. One shapefile covers ...
user avatar
  • 165
1 vote
0 answers
63 views

PostGIS - Area inside or outside w.r.t. a polygon

I need to check if a specific point belongs to the area defined by a polygon on a map using PostGIS. How can I specify if the area to be considered is either the one "inside" the polygon, or ...
user avatar
  • 41
2 votes
1 answer
81 views

Counting points in polygon by time / attribute condition

I have two tables in different databases I cannot connect directly. Table A contains polygons of regions. Table B contains points with timestamps. I want to count the points in each polygon for a ...
user avatar
  • 24.5k
1 vote
1 answer
69 views

Identifying road intersections in QGIS [closed]

I'm currently in a project where I need to identify whether the road exist in an intersection or not. However there are 700 roads which is a hassle if I do it manually. Is it possible to identify ...
user avatar
0 votes
0 answers
49 views

Intersecting buffer with county polygon to find county population that lies outside buffer using ArcGIS Pro

I am using ArcGIS Pro. I have previously created single ring buffers around points, and intersected theses with census tracts and summarized in order to calculate the population within the buffer. I ...
user avatar
0 votes
1 answer
52 views

Dynamically displaying polygon symbology by number of intersecting points as point layer updates using ArcGIS Pro

I have a set of polygons (municipal boundaries) and a point layer. I'd like to (eventually) create a WebApp to show the number of points inside each municipality, but that point layer is going to be ...
user avatar
  • 131
1 vote
0 answers
27 views

Get overlapping area between polygons by group rather than total area using the sf package in R?

I'm interested in calculating the area of overlap of different protected area types in a polygon I make of an animal's range using a Brownian Bridge. The shape files come from here https://www....
user avatar
  • 41
2 votes
0 answers
74 views

Measure length of shadow from object center in QGIS

I am trying to measure the length of object shadows in QGIS 3 in order to calculate the object's height. In order to know height (h) I will need to have: The length (l) of the cathetus (line from ...
user avatar
  • 448
0 votes
1 answer
41 views

Point geometry intersects line geometry not working in PyQGIS

I have two geometries, one is Line Other one is Point. I tried find intersects between features QgsGeometry(point).intersects(QgsGeometry(line)) I have two cases: case1: if point placed on line ...
user avatar
4 votes
3 answers
212 views

Skipping invalid geometries without fixing them in QGIS

In QGIS 3.16.14 I have a shapefile with multipolygons (flood risk map of the country) and another layer of points (buildings). I need to identify which of those points are inside those polygons and ...
user avatar
  • 43
2 votes
1 answer
102 views

Extracting intersection areas in R with threshold

I have two shapefiles. One contains distribution species maps(circle) and the other contains types of vegetation (A,B,C). I want to know what area of every vegetation contains which species. I tried ...
user avatar
1 vote
1 answer
126 views

How to speed up PyQGIS code for finding intersection of features in the same layer

I an deleting one of the intersecting polygons from a vector layer using PyQGIS code mentioned below. It is too slow as I have many features in the layer. Is there a way to speed it up? index= ...
user avatar
3 votes
2 answers
100 views

ST_Intersection fills up LIMIT with empty geometry points

I have managed to get the intersection between a circle around a point and objects in a geometry using this PostGIS query: SELECT ST_Intersection(sea_level.geom, ST_Buffer(ST_Transform(ST_SetSRID(...
user avatar
  • 31
0 votes
1 answer
368 views

GeoPandas Intersection cause duplicate columns

I have two dataframes - large and small polygons, and a loop. What I try to do is loop through large polygons and find corresponding small polygons. The tool to be used is GeoPandas Overlay, however, ...
user avatar
  • 441
3 votes
2 answers
518 views

Find and remove overlapping polygons with GeoPandas

I have 2 data frames, let's say, df1 and df2. I need to find df1 polygons that overlay with df2 (the green line), and remove them from main dataframe df1. I do not need to extract a overlaying part or ...
user avatar
  • 441
1 vote
2 answers
42 views

Habitat area within UTM grid in PostGIS

I'm using PostgreSQL 14.1 with PostGIS 3.1 and I've got two tables malla, that contains a UTM grid of 10x10 km, and CLC18, that contains the habitat polygons of the Corine Land Cover project. Now I ...
user avatar
  • 2,271
3 votes
1 answer
201 views

st_intersection from sf package do not clip the territory correctly

I want to clip a polygon shapefile using sf::st_intersection, however the territory is not cut straight. Here is a RE. I use a Canadian province shapefile that can be downloaded easily: library(sf) ...
user avatar
  • 517
1 vote
0 answers
28 views

Merging/dissolving line features that only touch one other line using ArcGIS Pro

I am using ArcGIS Pro. I have a line feature class that contains a stream network. Some of the line features have vertices where they are only connected to/ touching one other line (i.e. not where two ...
user avatar
1 vote
2 answers
211 views

Why is there a speed difference between sf_intersection in R and QGIS intersection

I have two shape files that each have around 4600 polygons. I want to find the overlapping area of these polygons. In R, I am using the following code: intersect_pct <- st_intersection(ward_2016, ...
user avatar
  • 11
4 votes
3 answers
152 views

Extracting overlapping polygons within same layer in QGIS

I want to extract all overlapping areas in the same polygon layer, where borders from e.g. area 1 and area 2 (picture) overlap. I have tried "intersection" with the same layer as input and ...
user avatar
  • 41
3 votes
4 answers
165 views

Numbering polygons according to starting point of intersecting line in QGIS

I wanted in QGIS to be able to number (whole number: 1,2,3,4...) multiple polygons in a sequence according to the the direction of a line intersecting through them (so that I have control over the ...
user avatar
  • 1,054
4 votes
1 answer
172 views

Getting Intersect Feature in PyQGIS

I tried to get the intersect line feature if user placed point on that line. I tried below: class AddPoint(QgsMapToolEdit): def __init__(self, canvas, iface, Layer): self.canvas = canvas ...
user avatar
3 votes
1 answer
48 views

Expression for counting features that intersect other layer in QGIS

I'm working with QGIS 3.16 Hannover. I've got a single polygon layer National Park and another layer with a 1x1 km grid UTM. In the print composer, I want to include in the legend the number of UTM ...
user avatar
  • 2,271

1
2 3 4 5
21