{"version":"1.0","type":"rich","title":"Geometry simplification script (GPKG, Snakemake, geopandas, pygeos)","description":"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.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-9fa834293398b8e58721b913769e240a?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}