Skip to main content

Questions tagged [intersection]

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

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

QGIS Overlap analysis and R terra::intersect do not give the same results

I have performed an Overlap analysis between a Vector layer of classified values (Slope) and a series of smaller vector layers generated from KDE analysis. The aim was to produce a table with the ...
Amantil's user avatar
2 votes
1 answer
63 views

Assigning Z value along line on raster using QGIS

In QGIS I have a mnt, a line with a Z attribute of value 100. How can I replace the Z values ​​of the raster that intersect the line (see a buffer around the line) with that of the line, i.e. 100? I ...
fcka's user avatar
  • 985
0 votes
1 answer
39 views

Spatial selection of intersected entities within a shape does not take the new entity

I'd like to retrieve part of shape A from layer A in relation to the boundary of my layer B. After making an intersection, I end up with a new layer, "intersect_layer". Using spatial ...
MesanGeo's user avatar
1 vote
1 answer
34 views

Returning an attribute of the intersecting polygon-feature of a point in a QGIS print layout expression

I am working on a print composer layout, and want to dynamically define a text field with an expression. In my QGIS project, I have a vector layer with polygons ("Polygons") with no overlaps,...
Niklas Leykauff's user avatar
3 votes
1 answer
134 views

QGIS - find overlapping areas between polygons and retrieve id per polygon

I'm having trouble understanding how to find overlapping areas between two polygons (using QGIS, but I'm open to coding if it's any easier), and obtain not only the output polygon, but also which ...
mto23's user avatar
  • 665
4 votes
1 answer
129 views

Reasons of slow intersection of two GeoDataFrames using Python [closed]

I am trying to find the largest intersecting area for each Polygon in a layer1 compared to the geometries in a layer2 in python. I use geopandas.overlay for it. However, the geometries in layer2 don't ...
tetje's user avatar
  • 99
5 votes
1 answer
229 views

Making buffer around crossing point on lines intersection in QGIS

I have two line layers A and B. I need to create a point at the intersection of these layers (which is not a science using "Line intersection"). Is there a possibility to draw a new one on ...
sttipa's user avatar
  • 197
1 vote
1 answer
32 views

turf intersect doesn't capture all intersections

I'm trying to calculate the intersection of these polygons, however it isn't capturing all intersections. I'm using this site to visualise it: https://turf-sandbox.netlify.app/ const coordinates = [ ...
Jordan H's user avatar
0 votes
0 answers
36 views

QGIS - calculate area of intersecting features or features within Atlas_geometry

I have a layout controlled by atlas by parcel numbers. Within the parcel numbers are geometries from another layer "IAN". I would like to sum the areas of the geometries within the ...
Marek's user avatar
  • 537
2 votes
1 answer
32 views

How to deal with concurrency when inserting polygons in a SQL table in a way that they don't intersect with each other

Problem: I have a table X, in which I am inserting polygons (ex: geometry data for a city). Before inserting them, I check if the input polygon intersects with any existing polygon in the table and ...
xorrax's user avatar
  • 21
0 votes
0 answers
61 views

Selecting polygon features that intersect another polygon feature using PyQGIS

I'm new to PyQGIS, I'm trying to select all polygons in my map layer (Crops) that are intersected by my radius polygon layer (buff), However every time I run the below code, polygons that are not ...
Bee's user avatar
  • 1
3 votes
3 answers
348 views

Getting only the intersection part of self-intersecting polygons in QGIS

I am trying to find places where different features in one layer intersect. An example picture of the layer: The result I would want from it: However, at best, using Intersection, Clip or SAGA Self-...
guul66's user avatar
  • 31
3 votes
3 answers
75 views

Intersection without cutting off whole polygon using QGIS

I am trying to intersect a larger map of MSOAs with a 50km ring to create a set of MSOAs within the ring. However, I would like to keep the MSOAs whole, even if not all of it lies within the 50km ring....
user240401's user avatar
3 votes
3 answers
119 views

Identifying which points belong to which part of the Multipolygon after extracting vertices in QGIS

I currently have a layer which is composed of different areas. I want to extract the coordinates of the vertices of the shape to CSV in QGIS, which I successfully am able to do by using extract ...
Buce1's user avatar
  • 33
0 votes
0 answers
58 views

Area of intersection between two polygons: TopologyException: Input geom 0 is invalid

I am trying to compute the area of the intersection of two polygons as follows: inter = geomap_ilot.sjoin(df_final_quartiers_arrond) def f(frame): """A function to calculate ...
bravopapa's user avatar
  • 485
0 votes
0 answers
34 views

Intersection of polygons [duplicate]

I have a brown polygon which intersects two purple polygons: I d like to make sure that the brown polygon (64981Cas) is allocated to the purple polygon with the highest intersection area (the polygon ...
bravopapa's user avatar
  • 485
2 votes
1 answer
170 views

Generating centerline of a polygon feature, extending line feature - ArcGIS Pro

I am attempting to generate centerlines of polygon features using Polygon to Centerline in ArcGIS Pro. My goal in this effort is to create a straight line directly through the center of the feature. I ...
anthro_01's user avatar
2 votes
1 answer
78 views

Incorrect output when smoothing line that intersects multiline with PyQGIS

I wrote a such script to smooth my line. It checks whether a line of two points intersects the border of a polygon and, if not, then draws a line. This script works well for a simple example, but bad ...
redhat's user avatar
  • 347
1 vote
2 answers
90 views

Find points x meters from a center in a specific direction (or line)

I just started to work with POSTGIS and I am currently working with signalised intersections. I have the center of the intersection as a point and the connecting roads as linestrings. I need to find ...
Rodrigo Sasse's user avatar
1 vote
2 answers
86 views

Intersecting a circle and a geodataframe

I have created a circle which I am trying to intersect with a geodataframe as follows: circle_gdf=gpd.GeoDataFrame(geometry= [circle]) joinCircle = gpd.sjoin(left_df=circle_gdf, right_df=transactions,...
bravopapa's user avatar
  • 485
0 votes
2 answers
174 views

Shapely intersection cuts LineString into MultiLineString instead of LineString

I ran into a problem where shapely.intersection cuts a LineString into a MultiLinestring with lots of short lines instead of a simple LineString. The intersection is made between a circle (Polygon) ...
Andreas's user avatar
  • 83
0 votes
0 answers
64 views

Combining data using QGIS

I have a background in GIS but haven't worked with it in years, and QGIS isn't my strong suit. I have two shapefile layers: Layer 1 is polygon, for provincial basemap. I also joined a lot of other ...
BeaverFever's user avatar
0 votes
0 answers
99 views

Python Geopandas: Dissolve function does not dissolve overlapping polygons

I have developed a Python program using GeoPandas to handle overlapping polygons. The program first dissolves these overlapping polygons and then applies an overlay operation (specifically, ...
user2293224's user avatar
3 votes
2 answers
89 views

QGIS Single sided buffer value of specific area and line length on 90 degrees lines

I need to Single Sided Buffer a specific surface based on a line length, on QGIS. Example: line length: 60.367 meters. area needed from single sided buffer: 452.4 square meters. theoretic Single ...
Marin Marian's user avatar
0 votes
1 answer
39 views

How would I go about efficiently digitizing intersecting polygons from a georeferenced map by snapping vertices in QGIS?

I have a map I've georeferenced in QGIS that has a lot of intersecting and adjacent polygons. I want to efficiently snap the vertices together as I draw the polygons because I don't want overlaps and ...
MapDeath's user avatar
  • 341
0 votes
1 answer
98 views

Finding all boundaries with x meters clearance

My goal is to find all possible "walls" (the parts of the initial polygon boundary) where I have at least x meters clearance. Here is the full area I'm working with, but heres a short ...
Tim4497's user avatar
  • 111
0 votes
0 answers
57 views

How to make a list of pixels which intersect with my points?

I have: a series of rasters which are cut to the same dimensions with the same resolution (1km by 1 km). I also have a series of points of bird observations. I want to create a data frame which ...
PowellHall's user avatar
0 votes
0 answers
33 views

Calculating intersection of a line segment with a circle on Earth's surface from latitude and longitude coordinates

I'm working on a problem where I need to determine if a line segment between two geographical points on the Earth's surface, intersects with a circle on the Earth's surface, defined by a central point ...
AM-A's user avatar
  • 1
0 votes
0 answers
71 views

Calculating from GPS time duration of a linestringM within a polygon

I am analyzing trajectories from GPS points, including timestamp (Linestring M). I need to clip trajectories that cross polygons, and calculate time spent within those polygons. However, I have 2 ...
Remi79's user avatar
  • 163
3 votes
2 answers
704 views

Intersection in geopandas takes long time to execute

I got two dataframes in GeoPandas Python. One table contains around 2.2 million rows of data (geometry type is Multipolygon) and other table contains around 3800 rows (geometry type is Multiplygon). I ...
user2293224's user avatar
1 vote
0 answers
92 views

Removing lines that intersect with other within the same layer

This may be very simple, but I have a line feature class in ArcGIS and I want to remove all the lines that intersect other lines in the feature class. So in the example below, I would like to remove ...
anner.paldor's user avatar
6 votes
1 answer
309 views

Finding number of lines touching intersection point in polyline layer using QGIS

I am trying to calculate the number of lines touching an intersection point to calculate the number of 3-way, 4-way (etc) intersections within my polyline layer. E. g. when 4 lines are connected to an ...
marla's user avatar
  • 71
2 votes
0 answers
81 views

Why is my custom aggregate function not returning data in the order I've specified?

I have a polygon layer where many features intersect each other. I want to flatten these overlaps and pick out attribute values according to a custom order. To do this, I've been using QGIS's Union ...
dericke's user avatar
  • 992
1 vote
0 answers
40 views

Calculate the intersection area of three types of polygons in QGIS

I have three layers -- US Census tract boundaries (vector) Radius of superfund sites (vector) US Land Use (raster) So I only want the land cover types starting with 'Developed', and let's call it '...
lianal's user avatar
  • 21
0 votes
0 answers
18 views

Map location of unknown point coordinates with two known coordinates and distances between them [duplicate]

I have a problem where I need to find the coordinates of a point which is the intersecting point of two circles. I found a similar question on stackoverflow. I understood to some extent, but not able ...
Sid's user avatar
  • 1
1 vote
2 answers
127 views

Adding vertices (in QGIS) on segments where other nodes (from same layer) snap to it

I've started drawing a routing network but realised after finishing it that it doesn't work without nodes at all intersections. "shortcut" lines were used to join the main routes together, ...
JdP's user avatar
  • 39
1 vote
1 answer
43 views

How to intersect lists or specify AND condition using Overpass QL

I am trying to find residential buildings that are within 1km of a subway station, a gym, and a supermarket. No matter what I do, I get a union of those lists instead of an intersection. [out:json][...
AvImd's user avatar
  • 13
2 votes
1 answer
144 views

Calculate the ratio of intersection to union in using the field calculator in QGIS

I have two separate polygon layers, A and B, of which I want to calculate the intersection to union ratio and store it as an attribute to polygon A. To do this, one needs to divide the area of the ...
saQuist's user avatar
  • 826
1 vote
1 answer
59 views

Set Operation `intersection` and return only one gdf

I would like to find all polygons that intersect and return the original polygons; not the intersection. Lets go with the set operation example from shapely.geometry import Polygon polys1 = geopandas....
arkriger's user avatar
  • 337
0 votes
0 answers
46 views

How to cede overlapping area in polygons in QGIS to one of the polygons based on a condition

I have a shapefile with 2745 individual sites/polygons in the Philippines, each site represents a tree planting project, with relevant information (30 attributes to be precise), including the year the ...
badiskhiari's user avatar
0 votes
1 answer
756 views

Using st_intersects to classify points in a multi polygon

I have a list of lat/lons and want to determine which county they belong to, by intersecting them with multi polygon dataset using sf::st_intersect. I can successfully perform the intersection and get ...
Jaken's user avatar
  • 93
0 votes
0 answers
33 views

Trouble with a line intersection algorithm

So to put this in perspective, I have a DXF file, I parsed the lines from the DXF file and I have to create polygons from those lines. I decided to save the created polygons from those lines to SVGs ...
badotnetdev's user avatar
2 votes
1 answer
179 views

Numbering polygons according to starting point in QGIS

I need to number the polygons in a certain order in QGIS 3.26. A good solution is the command according to @Babel's solution https://gis.stackexchange.com/a/417062/218260, but if the line crosses the ...
dysano's user avatar
  • 41
2 votes
1 answer
156 views

Intersection of two GeoDataFrames using Python [closed]

I have two GeoDataFrames: The first one is a large grid (many small bounding boxes), each row is a bounding box saved as a polygon. The second one contains just a few polygons (one polygon per row). ...
Daniel AG's user avatar
0 votes
0 answers
187 views

Utilizing spatial index in SQL Server

I have a table Points with shape column for points of geography type, and a spatial index on the column to improve performance.. CREATE TABLE Points(id VARCHAR(10) PRIMARY KEY, shape geography); ...
Sam's user avatar
  • 11
0 votes
1 answer
37 views

Importing line attribute table to polygon attribute table

I made some isolines (shapefile: line) and i intersected it with a polygon(purple): i want to attribute to each of the created surface (one selected is in yellow) the value of the corresponding ...
Pinaudeau Albin's user avatar
2 votes
1 answer
208 views

Fast quasi-recursive polygon intersection algorithm?

I'm trying to make a map which is colored based on the distance to a target point. I've done this by creating a series of concentric rings. These rings are created by buffering out from the target ...
Arijit Sen's user avatar
0 votes
1 answer
39 views

Lengthy PostGIS processing time of buffered polygon and line string intersection/difference

I have created a ring buffer of lines (streams). I then use ST_Intersect and ST_Difference/ST_Intersects to intersect a linestring (linestring_feature) with the ring buffer (MultiPolygon) and also ...
MJM's user avatar
  • 995
0 votes
0 answers
36 views

Calculate length lines within point buffer

I have more than 184000 clients. I made a point buffer layer for all of them. Also, I have a line layer of roads. I want to calculate the length of lines (roads) within each buffer with a notebook and ...
hossein naderi's user avatar
4 votes
1 answer
472 views

Clipping lines from intersecting polygons with sf in R

I am attempting to clip sf lines where they overlap with polygons in R - the opposite of the clip in the image below: I've created a reprex below, where the blue lines outside of the circle should be ...
geoscience123's user avatar

1
2 3 4 5
24