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

Handling of geometry collections #98

Closed
springmeyer opened this issue Apr 1, 2015 · 1 comment
Closed

Handling of geometry collections #98

springmeyer opened this issue Apr 1, 2015 · 1 comment
Milestone

Comments

@springmeyer
Copy link
Contributor

Geometry collections are not supported directly in the vector tile spec: The spec only describes point, linestring, polygon, and unknown: https://github.com/mapbox/vector-tile-spec/blob/master/1.0.1/vector_tile.proto#L9-L12.

So, the correct way to encode geometry collections is to "explode" them into multiple features (yes, the feature attributes should be duplicated). This will be fixed as part of the merge of #94

For example: collection(multipoint,line) -> feature 1(multipoint), feature 2(line). But collection(mulitpoint,point) could likely be encoded as feature (multipoint)

@springmeyer
Copy link
Contributor Author

Full support for exploding geometry collections now in place after #106. So, we properly support geometry collections being passed to the encoder, as well as geometry collections inside other geometry collections. They will simply get exploding into features with a single geometry type.

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

No branches or pull requests

1 participant