Opened 6 years ago
Closed 6 years ago
#4292 closed defect (fixed)
Attribute properties are rounded to whole numbers in ST_AsMVT
Reported by: | joedjc | Owned by: | Algunenano |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.4.7 |
Component: | postgis | Version: | 2.4.x |
Keywords: | Cc: |
Description
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;
Change History (5)
comment:1 by , 6 years ago
Milestone: | PostGIS 2.5.2 → PostGIS 2.4.7 |
---|---|
Owner: | changed from | to
Note:
See TracTickets
for help on using tickets.
Can confirm this is present in trunk too: