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

PostGIS trac at osgeo.org
Fri Jan 11 03:05:09 PST 2019


#4292: Attribute properties are rounded to whole numbers in ST_AsMVT
----------------------+---------------------------
  Reporter:  joedjc   |      Owner:  Algunenano
      Type:  defect   |     Status:  new
  Priority:  medium   |  Milestone:  PostGIS 2.4.7
 Component:  postgis  |    Version:  2.4.x
Resolution:           |   Keywords:
----------------------+---------------------------
Changes (by Algunenano):

 * owner:  pramsey => Algunenano
 * milestone:  PostGIS 2.5.2 => PostGIS 2.4.7


Comment:

 Can confirm this is present in trunk too:

 {{{
 SELECT 'J4', encode(ST_AsMVT(q, 'test', 4096, 'geom'), 'base64') FROM (
         SELECT 1.25 AS c1,
         ST_AsMVTGeom(ST_GeomFromText('POINT (0 0)'),
         ST_MakeBox2D(ST_Point(0, 0), ST_Point(4096, 4096)), 4096, 0,
 false) AS geom,
         '{"test":1.75}'::jsonb as properties
 ) AS q;
 }}}

 {{{
 J4       |
 GjEKBHRlc3QSDhIEAAABARgBIgQJAIBAGgJjMRoEdGVzdCIGCgQxLjI1IgIoASiAIHgC
 }}}

 {{{
 echo -n
 "GjEKBHRlc3QSDhIEAAABARgBIgQJAIBAGgJjMRoEdGVzdCIGCgQxLjI1IgIoASiAIHgC" |
 base64 -d > /tmp/a.mvt
 }}}

 {{{
 [
   {
     "name": "test",
     "extent": 4096,
     "version": 2,
     "features": [
       {
         "type": 1,
         "properties": {
           "c1": "1.25",
           "test": 1
         },
         "geometry": [
           9,
           0,
           8192
         ]
       }
     ]
   }
 ]
 }}}

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