Questions tagged [intersection]

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

Filter by
Sorted by
Tagged with
3 votes
1 answer
69 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
43 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
58 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
  • 893
3 votes
0 answers
47 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
0 votes
0 answers
28 views

Determine whether two circles drawn around two lat/long points with two radii intersect

I am trying to find a way to check whether two circles drawn around two lat/long points intersect. For example, x1 = (lat1 in degree, long1 in degree) x2 = (lat2 in degree, long2 in degree) c1 = ...
Harsh Gondaliya's user avatar
3 votes
1 answer
67 views

Symmetric difference using geopandas.sjoin in GeoPandas

My aim is to find the 'non-overlap' between two GeoPandas DataFrame. In other words the result should exclude the intersection between gdf1 and gdf2. I am aware that I can iterate through the ...
bravopapa's user avatar
  • 337
0 votes
1 answer
22 views

Filter points from a feature collection that do NOT overlap with polygon in Google Earth Engine

I have a feature collection of points, some of which overlap with a polygon. I want to filter out the points that do not overlap with the polygon, and create a new feature collection. I am able to ...
Hutch T's user avatar
3 votes
4 answers
124 views

Selection by location with distance parameter using QGIS

I want to perform a selection by locatin in QGIS using "intersection." However, I want to add a distance parameter so that it disregards polygons that are exactly adjacent and retrieves only ...
caslumali's user avatar
0 votes
1 answer
48 views

Intersect a set polygons/multi-polygons at once and get the intersected polygon

I have a Geopandas data frame with five multi-polygons geometries. Now, I want to intersect all the geometries at once and get the intersected polygon out of it. I tried using unary union and ...
data en's user avatar
  • 145
0 votes
0 answers
26 views

Intersection of two layers, attribute-table stays empty QGIS

I am trying to intersect two layers to calculate proportional distances of the two layers.. However, the attribute table remains empty after the intersection. To tool runs fine and no error is shown.
vuayalo's user avatar
  • 11
0 votes
1 answer
33 views

Value Relation returning geometries (points) contained in newly created feature (polygon) in QGIS as SELECTED

I have a layer 'trees' containing 3 points. The feature in creation (polygon) is in layer called 'zones'. Two of the points are contained inside the future feature. I'm using this expression in the ...
assayag.org's user avatar
0 votes
0 answers
13 views

How to join points for businesses with administrative shapefile and keep both points and administrative divisions on map

I have an administrative shapefile of Jamaica, and I have a layer with the coordinate locations of a few hundred businesses. I have spatially joined the business layer with the shapefile layer to ...
mcket747's user avatar
1 vote
1 answer
48 views

Selecting and removing polygons that overlap within a single GeoDataFrame in Python

I have a GeoDataFrame made of polygons- some overlapping, some not (see picture above). I'd like to create a shapefile or GeoPackage of only the polygon centroids that are not overlapping. There is a ...
user2031's user avatar
  • 211
1 vote
0 answers
42 views

Mapping self-intersections of a transformed LineString

I’m using shapely to solve a problem in physic. My problem can be represented in 2D with a LineString. In order to solve my problem I need to : Apply a transformation to the original LineString Find ...
lamilam's user avatar
  • 11
4 votes
1 answer
84 views

Filtering contents of attribute table in report using QGIS

I am running a report in QGIS 3.28.3 to map features within square-mile sections. The report is running off the sectcode field of that layer. There are attribute tables in the report layout that ...
John's user avatar
  • 43
0 votes
0 answers
28 views

Calculating Percentage

I am trying to calculate the area of floodplain within property. So when I do intersect it merges the two layers together where they intersect. But from there I don't know how to calculate the areas ...
Seth's user avatar
  • 1
3 votes
1 answer
26 views

rule based labeling of point layer using intersections method on another polygon layer

I try to make a rule based labeling for my locations point layer which should be displayed, if a point intersects with the value residential in a (osm) layer called landuse. So I tried to do: ...
chribre's user avatar
  • 33
2 votes
1 answer
58 views

Use of PostGIS ST_Intersection & ST_CoveredBy for line x polygon intersection

I am trying to improve the performance of a line/polygon intersection query where all intersected lines and 'CoveredBy' lines are produced in a table. Question: The improved version produces many ...
MJM's user avatar
  • 671
1 vote
1 answer
39 views

Intersect between assets that were Uploaded from Shapefile to Google Earth Engine

I'm new to Google Engine, I have two shapefiles, one is named Deforestation with almost 600,000 polygons inside of the shapefile, and the second one is named Aliso which is a geometry that only is one ...
luis maldonado's user avatar
0 votes
0 answers
77 views

Intersect two polygons with geopandas.sjoin not working

I have two GeoDataFrames which I am trying to intersect using the following: gpd.sjoin(left_df=geomap_ilot_geomatic, right_df=all_titres_updated, how="left", predicate="intersects"...
bravopapa's user avatar
  • 337
0 votes
1 answer
52 views

QGIS Take the attribute from the intersection

How to make an intersection function condition for a field calculator?I have three layers-buildings, parcels_old, parcels_new.In the layer of buildings i need to move parcel number ("n_parc" ...
Ivan M's user avatar
  • 303
1 vote
0 answers
31 views

Identify largest class in area

I have a layer of polygons with different land uses, and another layer of polygons with administrative areas. I'm trying to find a way to determine which land use is dominant (in terms of area) in ...
Jake's user avatar
  • 6,852
1 vote
1 answer
140 views

ST_Intersects AND ST_Touches combination is much slower with large geometry input

I am trying to geom columns from multiple table and later combining with a table which only has linestrings, I am finding lines which are not intersecting OR just touching the union of geom columns. ...
postgis-user's user avatar
3 votes
1 answer
43 views

PostGIS: relational value for spatial intersection

I have two layers: nomen : point layer nomenclature : polygon layer In PostGIS, when adding a point, you must take the nomenclature value by intersection with the polygons layer and insert it in the ...
Manu's user avatar
  • 31
1 vote
0 answers
17 views

Graphic intersection to decide what kind of soil the crop is on

I have to create a graphic intersection that demonstrates what kind of soil the culture is on, for example: Crop no. 1: soil type 12 gr/kg Crop no. 2: soil type 9 gr/kg Crop polygons are vector data ...
CoderCoder42's user avatar
3 votes
1 answer
51 views

TypeError when creating shapefile from the intersection of shapefiles with PyQGIS

I have two polygons ('anlage' and 'natur'). I want to create a new shapefile from the intersection of these two shapefiles. The created shapefile has an attribute table of the same size as the ...
Sedigh pagh's user avatar
2 votes
1 answer
93 views

ST_Intersection EMPTY return type differs from version 3.0.7 to version 3.3.2

I run into a weird situation when I execute PostGIS query like below SELECT slink_id, ST_Intersection(geom, st_makeenvelope(883712.000000, 1468960.000000, 884736.000000, 1469984.000000, 5179)) geom ...
skanto's user avatar
  • 23
3 votes
1 answer
54 views

Is the geometric result of an intersection between two valid PostGIS polygons guaranteed to be valid?

If I have two overlapping PostGIS Polygon geometry objects, which are valid, is the result of an intersection operation between the two meant to be guaranteed to be a valid geometry? Obviously this ...
bugmenot123's user avatar
  • 10.4k
1 vote
1 answer
54 views

Is the geometric result of an intersection between two valid JTS polygons guaranteed to be valid?

If I have two overlapping JTS Polygon objects, which are valid, is the result of an intersection operation between the two meant to be guaranteed to be a valid geometry? Obviously this guarantee could ...
bugmenot123's user avatar
  • 10.4k
0 votes
1 answer
74 views

Is the geometric result of an intersection between two valid polygons guaranteed to be valid?

If I have two overlapping polygons, which are valid according to the Simple Feature standard https://www.ogc.org/standards/sfs, is the result of an intersection operation between the two guaranteed to ...
bugmenot123's user avatar
  • 10.4k
1 vote
0 answers
58 views

Detect intersection nodes between different highway types

I have a postgres database with OSM data imported in it using osmosis. The import process created a ways table that has the following columns: id | version | user_id | tstamp | changeset_id | tags | ...
Miflo's user avatar
  • 21
4 votes
1 answer
135 views

Why area of intersection differs from total area of polygon?

I calculated intersection between Layer 1 and Layer 2 using expression below: area( intersection ( $geometry, collect_geometries( overlay_intersects ('layer1',$...
Scrchd's user avatar
  • 155
4 votes
3 answers
269 views

Calculating area of polygon intersection with condition

Layer 1 consists of 3 features with different values assigned to them (10 or 20). Feature from Layer 2 overlaps all 3 of them. I'm looking to calculate intersection area with polygons but only with ...
Scrchd's user avatar
  • 155
0 votes
1 answer
21 views

Counting telemetry intersections with a polygon in R

I am currently tracking animals in national parks and have lat/long and date/time data for individuals and a polygon shapefile for the park boundary. I want to know how many times individuals leave ...
Taggerung's user avatar
0 votes
0 answers
68 views

Subset a gridded weather data to a list of coordinates

I am very new to working with GIS, and I am trying to get to get a gridded weather data from MetPy interpolate_to_grid function and then subset it to a specific region so I can aggregate the data. ...
pauloeavf's user avatar
0 votes
1 answer
241 views

Android Kotlin - Test if Point in Polygon from GeoFile

I'm developíng an App in Android Studio using Kotlin with Minimun API of 21 -Lollipop- that works totally offline, and i need to test if a point (decimal degrees for lat and long) that the users write ...
Daniel Florez Cortes's user avatar
2 votes
0 answers
51 views

Calculating common area between shapefiles using GDAL

I'm looking for a way to get the intersection area between my shapefiles. Basically, I got three shapefiles from my .tif files like this: gdaltindex a.shp a.tif gdaltindex b.shp b.tif gdaltindex c.shp ...
Salvo's user avatar
  • 31
1 vote
1 answer
79 views

QGIS 3.28 : Relational value form (spatial intersection)

With QGIS 3.28 I have a point layer (boreholes) . And I have a polygonal layer (departments/districts). My goal would be to via QGIS (right click boreholes point layer -> attributes form) to ...
user35117's user avatar
  • 839
1 vote
0 answers
77 views

Speed up intersection on large polygons with PyQGIS?

Is there a way to speed up my script? I am new to PyQGIS. I am using QGIS 3.16. What I need: I have 50 polygons (up to 1.675.000 hectares, mean 420.000 ha; one shapefile per polygon) and for each of ...
Pompoensoep's user avatar
1 vote
1 answer
93 views

Calculating route kilometer (min and max) for intersection

How would you solve the problem: Points with km values every kilometer A route (f.e. railroad) als polyline An area where you would like to know at what kilometers it intersects with the route (...
Marek's user avatar
  • 543
4 votes
2 answers
218 views

QGIS Expression: Finding DEM value at point where two lines on different layers intersect

I've been working a while on this and I'm sure I'm missing something. I have to sets of lines on a DEM, and I need to call a raster value where they intersect. I can get it to where I am getting the ...
DrewGIS's user avatar
  • 91
5 votes
2 answers
987 views

Intersection of two GeoPandas Dataframes

I have two GeoPandas dataframes titre_polyG and df which I have intersected as follows: titre_polyG is as follows: 0 MULTIPOLYGON (((-7.64026 33.59134, -7.63996 33... 1 MULTIPOLYGON (((-7....
bravopapa's user avatar
  • 337
1 vote
0 answers
49 views

Calculate area percentage of a polygon layer inside a polygon in ArcGIS

There are two polygon layers, State boundaries of a country Soil class of the country with three classes The soil class containing only 2 major classes and the 3rd soil class is unimportant(very ...
Vicky's user avatar
  • 25
1 vote
1 answer
297 views

How to efficiently get the intersection between vector and raster in R?

What is an effective way to clip (intersect) a vector layer by raster values? Assume we have the following two layers: vec - a large vector dataset with polygons ras - a raster dataset which works as ...
jens wiesehahn's user avatar
1 vote
1 answer
114 views

Spatial join in GEE, so that points lying within a polygon get properties from the polygon

I have some ROI polygons with a unique property 'label', and I have sample points lying within the different polygons. I want to add the label property from the polygons to the points. I manage to ...
Erin's user avatar
  • 147
1 vote
1 answer
177 views

Is there anything making PostGIS ST_INTERSECTION faster(or something wrong with my approach)?

Basically I have 2 tables: The first is lucc gometry(about 10'000'000 rows called lucc_indicies) The other is fishnet grid (10'000'000 rows called cells_gba_100m) I want to statis lucc geometry ...
yougao's user avatar
  • 45
1 vote
1 answer
214 views

Display expression of layer if geometries intersect in QGIS [closed]

I'd like to display the value of a layer (polygon with parcels) only in case a line (f.e. a river) intersects, crosses or touches the polygon of the parcel by using the expression dialog... but I ...
Marek's user avatar
  • 543
1 vote
1 answer
43 views

Edge creation for every intersection point in QGIS

I have created a route network for a village. Now I need to create an edge (without dissolving) for every intersection. This is the network I have created. For example, I have marked some ...
Avijit's user avatar
  • 11
3 votes
2 answers
156 views

Union polygons by intersection lines in QGIS

I have two layers: contiguous polygons without properties lines with the name property that overlaps the polygons I want to get a new layer of joined polygons if they are crossed by the same line ...
stefcud's user avatar
  • 386
1 vote
1 answer
126 views

Mapping Census data on non-Census shapefile polygons using R

Using R, I am trying to create a heat map of population in the five county commission districts in Alachua County, Florida, by merging total population data at the block level from the Census with the ...
mmc's user avatar
  • 13

1
2 3 4 5
23