Repository navigation
ES: convert province by province, then merge - #338
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Does it handle collectio metadata correctly? Especially creating columns for e.g. different data colimng from there? License, variant/state/kanton, etc? Ideally it mimics what vec merge does and can be used as a generic replacement as vec merge in geopandas will be an issue anyway in the long run. |
|
Good point. There's a bug in |
|
Fix: vecorel/cli#55. Checked on two real provinces: |
|
I'll wait with making this a Non-Draft PR, it needs a vecorel dependency update due to vecorel/cli#55 |
|
@ivorbosloper vecorel-cli v0.4.0 has been released. I must say I forgot what the next steps were after finishing vecorel-cli... |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@m-mohr The next step was this PR: it only waited for vecorel/cli#55, which is in 0.4.0, and main already pins that. I merged main in and checked it:
On a generic replacement for |
|
Sorry, I don't understand what this PR is meant to do and the AI response doesn't help with understanding it. Could a human take over, please? |
…one source' Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@m-mohr Yes. The es-converter memory consumption was too high, all features from 50 source files were put in one gdf. I added a simple "PerFileConverterMixin" class that only overrides the |
|
Is this still needed given all the upstream improvements? |
We now need between 30/40 Gb, with this PR merged it peeks during sort at around 10 Gb. |
* Moves the per-file conversion from fiboa/cli#338 into vecorel-cli, as it isn't fiboa-specific and builds on `merge_parquet`. - Added `PerFileConverterMixin`: converts each source on its own into a temporary part and merges the parts with `merge_parquet`. - Added `get_input_urls()` to `BaseConverter`, used by both converters, so the mixin resolves the sources once and logs the input/variant warnings once instead of per part. - Tests for the merge of two sources (incl. constants that differ per part becoming a column) and for a single source. * Fix 7z handling * Fix no compression handling in duckdb
|
I've migrated the mixin to vecorel-cli and updated this PR accordingly. |
The new
esconverters converts 50 provincial GeoPackages individually and merges the parts. The whole of Spain does not fit in memory in one run. Closes #336.