-
Notifications
You must be signed in to change notification settings - Fork 5
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
Flatten simple geometry collections #42
Flatten simple geometry collections #42
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The README should also get updated to describe the API change. Also, if the intent is to release a new version with this change, the version number should get bumped too. I would suggest "1.2.0" since I don't think it's exactly a breaking change if people are just using it as GeoJSON output, but it's more than a bugfix.
I'll push a change with an update to the README. +1 to 1.2.0 (I agree with your reasoning). |
b76a212
to
d3aaa74
Compare
d3aaa74
to
db5c817
Compare
GeoJSONLint complains about these types of features: > GeometryCollection with a single geometry should be avoided in favor > of single part or a single object of multi-part type This simultaneously expands (`GeometryCollection | Polygon`) and narrows (`GeometryCollection<Polygon | LineString>`) the type of GeoJSON features created from isolines.
db5c817
to
a855bb0
Compare
Description of changes:
GeoJSONLint complains about these types of features:
This PR simplifies features containing GeometryCollections with single geometries by removing the intermediate GeometryCollection.
This simultaneously expands (
GeometryCollection | Polygon
) and narrows (GeometryCollection<Polygon | LineString>
) the type of GeoJSON features created from isolines. We should consider the versioning implications of this.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.