git clone git@github.com:umrlastig/flatten.git
cd flattenInstall dependencies:
uv syncsource .venv/bin/activateYou can now use the flatten_split script to split your data. You can see the different parameters with:
flatten_split --helpFor instance, with the test data in directory hydro and saving the results in split.gpkg, you can use the following:
flatten_split hydro/SURFACE_HYDROGRAPHIQUE.shp hydro/TRONCON_HYDROGRAPHIQUE.shp split.gpkg