[postgis-tickets] [PostGIS] #4292: Attribute properties are rounded to whole numbers in ST_AsMVT

PostGIS trac at osgeo.org
Fri Jan 11 02:05:28 PST 2019


#4292: Attribute properties are rounded to whole numbers in ST_AsMVT
---------------------+---------------------------
 Reporter:  joedjc   |      Owner:  pramsey
     Type:  defect   |     Status:  new
 Priority:  medium   |  Milestone:  PostGIS 2.5.2
Component:  postgis  |    Version:  2.4.x
 Keywords:           |
---------------------+---------------------------
 If I add a decimal number as a feature-attribute value it seems to be
 rounded to a whole number in the tile output.

 For example:

 {{{
 SELECT ST_AsMVT(q, 'test', 4096, 'geom') FROM
 (
         SELECT 1 AS c1,
         ST_AsMVTGeom(ST_GeomFromText('POLYGON ((35 10, 45 45, 15 40, 10
 20, 35 10), (20 30, 35 35, 30 20, 20 30))'),
         ST_MakeBox2D(ST_Point(0, 0), ST_Point(4096, 4096)), 4096, 0,
 false) AS geom,
         '{"test": 0.75}'::jsonb as properties
 ) AS q;

 }}}

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4292>
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