Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

121 Bugfix properly combine multilinestring multipolygon when zipping #131

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ahalota
Copy link

@ahalota ahalota commented Jan 14, 2025

Addresses #121

Zip currently iterates through point, linestring, multilinestring, polygon, multipolygon and outputs them with one file each named as point, polyline, or polygon. (5 total, 3 unique names)

This causes an issue if you have linestring+multilinestring or polygon+multipolygon. They end up in separate files, but with the same file name, so they overwrite each other in the output and you lose one of them.

This change instead combines them into a single file. For shapefiles, which do not differentiate in file type for linestring/multilinestring or polygon/multipolygon, this makes sense.

The output after this change will produce at most 3 different files in the zip: one for point, one for line+multilinestring, one for polygon+multipolygon.

Note: this does not address multipoints, which are currently not handled properly by the library either.

@ahalota ahalota force-pushed the bugfix-properly-combine-multilinestring-multipolygon branch from e324dd7 to 5bc30be Compare January 14, 2025 18:34
@ahalota ahalota changed the title 121 Bugfix properly combine multilinestring multipolygon 121 Bugfix properly combine multilinestring multipolygon when zipping Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants