[postgis-tickets] [PostGIS] #4293: Polygon fill-extrusion issue in mapbox with ST_AsMVT created tiles
PostGIS
trac at osgeo.org
Fri Jan 11 08:28:50 PST 2019
#4293: Polygon fill-extrusion issue in mapbox with ST_AsMVT created tiles
----------------------+---------------------------
Reporter: joedjc | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.5.2
Component: postgis | Version: 2.4.x
Resolution: | Keywords:
----------------------+---------------------------
Comment (by Algunenano):
> The visualisation library is mapbox.
Mapbox, as a company, you appear to be using Mapbox GL JS
(https://github.com/mapbox/mapbox-gl-js/).
If I run your query I get this:
{{{
\x1a250a0333303312191803221509aa3cce1822a2049e0dcb0f5c74d30ba60499030f2880207802
}}}
Just the polygon:
{{{
POLYGON((3861 1575,4134 2422,3136 2468,3194 1722,3469 1517,3861 1575))
}}}
I've used that output to pass it to node-mapnik and decoded it as:
{{{
[
{
"name": "303",
"extent": 4096,
"version": 2,
"features": [
{
"type": 3,
"properties": {},
"geometry": [
9,
7722,
3150,
34,
546,
1694,
1995,
92,
116,
1491,
550,
409,
15
]
}
]
}
]
}}}
node-mapnik also confirms that the MVT is valid.
I've tried downloading https://s3-eu-
west-1.amazonaws.com/www.iventis.co.uk/assets/15/16597/11273.pbf and
checking the tile with node-mapnik and, unless I'm missing something, that
tile respects the MVT spec.
I suggest you to open an issue to Mapbox GL detailing your problem and
providing a copy of the MVT file generated by Postgis (11273.pbf); even
better if you provide both the one generated by Postgis and the one
generated using Mapnik.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4293#comment:7>
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