mapbox / vector-tile-spec

Mapbox Vector Tile specification
https://www.mapbox.com/vector-tiles/specification/
Other
906 stars 210 forks source link

Added spline types #118

Closed flippmoke closed 6 years ago

flippmoke commented 6 years ago

Added the ability to encode features as splines of two types, the first being a curve and the other being and area. This is a possible solution for #114. Updates to the README.md of the spec have not done yet.

flippmoke commented 6 years ago

I am not quite sure here for the curved area type how we would enforce that it forms an actual closed segment. We could check that the control points resolved to the same final location + some rules around knots perhaps but this could be complex. Do we even define rules here? Do we mark curves and curved areas as experimental?

e-n-f commented 6 years ago

The big question I have about this currently is: do we really need a MultiCurve type instead of (or in addition to) just plain Curve?