tilezen / mapbox-vector-tile

Python package for encoding & decoding Mapbox Vector Tiles
MIT License
240 stars 47 forks source link

Why mapbox-vector-tile doesn't support list value in property? #135

Closed timewalker08 closed 2 months ago

timewalker08 commented 2 months ago

I read the code, and following function determine the type of value supported. def _can_handle_val(v): return isinstance(v, (str, bool, int, float)) I have a list in my property, I find it is lost in the resulf of encode. Why list value is not supported?

rmarianski commented 2 months ago

not supported directly by the spec. A typical work around is to encode it as a string, eg comma separated, or as json.

timewalker08 commented 2 months ago

Thank you for clarification