New answers tagged

0 votes
Accepted

How to intersect lists or specify AND condition using Overpass QL

Filters could be chained: https://overpass-turbo.eu/s/1B3S [out:json][timeout:250]; node["railway"="station"]["station"="subway"]({{bbox}})->.metros; node[&...
user.dz's user avatar
  • 116
0 votes

Calculate area of intersecting polygons in QGIS

There is a tool called Overlap analysis. It should do the trick. A very nice description of the workflow is here: https://www.youtube.com/watch?v=3qB1NBGG_Nc&lc=UgwVyFSnR7P4ZIia1BF4AaABAg....
Šimon Štrba's user avatar
1 vote
Accepted

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

Try something like this: with_variable( 'B', overlay_intersects( 'PolyB layer name / id', -- set inside quotes PolyB layer name or id $geometry )[0], area(intersection($...
Mayo's user avatar
  • 3,682
1 vote

turfjs intersect line and polygon

Turf used to use the JSTS package to find the intersection, but switched over at some point. An example with JSTS: import { GeometryObject } from 'geojson'; import * as jsts from 'jsts'; export ...
b9s's user avatar
  • 121
1 vote

Set Operation `intersection` and return only one gdf

You can spatial join df2 to df1 and then select: from shapely.geometry import Polygon import geopandas as gpd polys1 = gpd.GeoSeries([Polygon([(0,0), (2,0), (2,2), (0,2)]), ...
BERA's user avatar
  • 67.1k

Top 50 recent answers are included