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

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
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

Only top scored, non community-wiki answers of a minimum length are eligible