Questions tagged [intersection]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
17 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
  • 11
0 votes
0 answers
60 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
2 votes
3 answers
302 views

QGIS: How to only get the intersection part of self-intersecting polygons?

I am trying to find places where different features in one layer intersect. An example picture of the layer: And the result I would want from it: However, at best, using Intersection, Clip or SAGA ...
guul66's user avatar
  • 21
3 votes
3 answers
66 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
2 votes
3 answers
101 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
  • 23
0 votes
0 answers
42 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
  • 475
0 votes
0 answers
33 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
  • 475
2 votes
1 answer
66 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
71 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
84 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
64 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
  • 475
0 votes
2 answers
115 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
  • 73
0 votes
0 answers
61 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
62 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
81 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
35 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
  • 333
0 votes
1 answer
96 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
54 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
28 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
68 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
387 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
62 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
270 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
72 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
37 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
17 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
97 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
40 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
123 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
  • 736
1 vote
1 answer
48 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
  • 327
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
505 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
32 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
166 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
113 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
154 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
35 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
181 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
34 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
  • 975
0 votes
0 answers
34 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
347 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
0 votes
0 answers
43 views

Detecting intersection of two WGS84 lines

How do you detect intersection of two WGS84 lines given the information below known. RedLine: latStart0, lonStart0, latEnd0, lonEnd0 BlueLine: latStart1, lonStart1, latEnd1, lonEnd1
Kitiara's user avatar
  • 101
2 votes
1 answer
196 views

Generating a coveringGrid clipped by the input geometry

I'm trying to generate a rectangular vector grid from a FeatureCollection using ee.Geometry.Polygon.coveringGrid, and clip it to the borders of the original vector. However, the intersection function ...
eivindhammers's user avatar
1 vote
0 answers
54 views

Intersect between PostGIS layer and ArcGIS/GeoServer service using ST_Intersection spatial SQL in PostGIS

Is it possible to make intersection - ST_Intersection (or other spatial operations) on-the-fly between PostGIS polygon layer stored in local/cloud PostGIS DB and ArcGIS Map Service polygon layer (with ...
juraj murcko's user avatar
1 vote
1 answer
44 views

How to get entity coordinates that are located inside an OSM administrative boundary?

I downloaded the administrative boundary of Germany from a website as *.geojson file. I imported this *.geojson file into PostgreSQL like this. ./apps/ogr2ogr -f "PostgreSQL" PG:"host=&...
dancesWithCycles's user avatar
6 votes
2 answers
245 views

Segment attribute according to percentage of overlapping area

My project have a layer of GRID polygons with the value of Population ("POBTOTAL"). On the other hand, there is a SECC polygon layer with the neighborhoods division. Here is the data: https:/...
Ingrid Ingravida's user avatar
3 votes
1 answer
377 views

QGIS expression for features of two different layers intersecting to a certain percentage

I am looking for a QGIS expression in Field Calculator that delivers the values "good", "medium" and "bad", depending on the percentage that the geometry of features in ...
Mat Thias's user avatar
1 vote
1 answer
130 views

Summing length of lines of a specific category from another layer in QGIS

I have a polygon layer of ski resorts call skiResorts. I have a liner layer of pistes called pistes. The pistes layer has 2 several attributes and include aa_piste_length and aa_piste_difficulty. ...
spreaderman's user avatar
1 vote
1 answer
127 views

Intersection processing in QGIS graphical modeler

With the graphical modeler in QGIS, how can I update a field called "inters" from layer "a" by setting the values to 'yes' or 'no'. Values are determined on the intersection of ...
Mark's user avatar
  • 975
3 votes
0 answers
105 views

Split an array of GeoJSON linestrings (from Overpass Turbo) into an array of road intersections

I've got a query that pulls in a bbox of GeoJSON LineStrings representing roads from the Overpass Turbo API. I'm working in Typescript and have been using the TurfJS library extensively. I want to ...
yellow-saint's user avatar

1
2 3 4 5
24