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

Fix: if contour had several separated areas of the same level contour… #26

Closed
wants to merge 1 commit into from

Conversation

toddscottik
Copy link

…_to_geojson extract it as single feature, so all your contours of one level was connected to each other. Use contour.allsegs instead of collection.get_paths() allows to extract every distinct region to independent feature.

I faced with such problem and this is my fix for it. Probably, it can be improved by combining each segment of one level to one feature of type MultiLineString instead of independent LineString features.

…_to_geojson extract it as single feature, so all your contours of one level was connected to each other. Use contour.allsegs instead of collection.get_paths() allows to extract every distinct region to independent feature.
@lewisblake
Copy link
Collaborator

Fixed in #27

@lewisblake lewisblake closed this Jan 6, 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