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($...
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)]),
...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
intersection × 1140qgis × 312
postgis × 200
polygon × 165
arcgis-desktop × 133
python × 113
r × 84
line × 84
overlapping-features × 61
shapely × 60
geometry × 54
postgresql × 52
shapefile × 50
buffer × 42
geopandas × 41
point × 38
arcpy × 36
raster × 35
arcmap × 34
vector × 34
pyqgis × 33
linestring × 32
qgis-3 × 28
sql × 27
spatial-join × 27