[postgis-tickets] [PostGIS] #3710: ST_AsMVT doesn't support numeric or arrays

PostGIS trac at osgeo.org
Tue Feb 14 01:18:21 PST 2017


#3710: ST_AsMVT doesn't support numeric or arrays
----------------------+----------------------------
  Reporter:  stvn     |      Owner:  Björn Harrtell
      Type:  defect   |     Status:  new
  Priority:  medium   |  Milestone:  PostGIS 2.4.0
 Component:  postgis  |    Version:  trunk
Resolution:           |   Keywords:
----------------------+----------------------------

Comment (by stvn):

 I think you are right, I wrongly assumed that the mapbox vector tile spec
 allowed for arrays. However it clearly states it doesn't cover those:

 {{{
 Attributes in geometric data, such as the properties object in GeoJSON can
 include more than just strings and numbers. They can be arrays or objects.
 The specification doesn’t cover how to encode these values and is up to
 the
 encoder to decide.
 }}}

 https://www.mapbox.com/vector-tiles/specification/

 And it suggests the same as you do: turn them into strings. I have done so
 for my arrays and that works fine. Might be nice to put a note in the
 documentation that only smallint, integer, bigint, real, double and
 boolean are cast to their javascript counterparts and everything else is
 turned into a string.

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3710#comment:3>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list