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

Support for Mapbox vector tiles specification 2.0/2.1 #11

Open
dsahu75 opened this issue Sep 27, 2018 · 1 comment
Open

Support for Mapbox vector tiles specification 2.0/2.1 #11

dsahu75 opened this issue Sep 27, 2018 · 1 comment

Comments

@dsahu75
Copy link

dsahu75 commented Sep 27, 2018

Hi,

Any plans to support the latest version of Mapbox vector tiles specification in Orb

@paulmach
Copy link
Owner

From what I understand there is no data format difference between v1 and v2. The difference is v2 requires geometries be simple/clean. e.g. lines that are not self intersecting and polygons that are encoded in the correct winding order.

This library does not do anything to validate the geometry, it just encodes what you give it, so it defaults to v1. I've seen comments from mapbox about this and they only want you to claim your library is a v2 encoder if it does cleanup/validation.

However, If you know your geometry is simple/clean you can change the layer version manually.

Doing validation/cleanup is a complicated geometry problem that is bigger than MVT. I don't have plans to tackle.

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

2 participants