Geometry simplification script (GPKG, Snakemake, geopandas, pygeos)
✓ Published0🌍 Public
Aalpha-beta-soup
Last edited Oct 10, 2022
Created on Oct 10, 2022
This example shows a geometry simplification workflow for geospatial vector data, reducing coordinate precision while preserving topology and repairing invalid geometries. It processes an input GeoPackage file, simplifies geometries using a quantisation tolerance, and writes the result back as a GPKG. The script uses geopandas for reading and writing, pygeos for `make_valid` and `simplify` operations, and Snakemake to manage input/output parameters and logging. It also filters out empty or missing geometries before saving the final dataset.
AI-generated description