[postgis-tickets] [PostGIS] #4744: St_AsMVT Errors on Some Polygons with Inner Rings

PostGIS trac at osgeo.org
Wed Aug 19 05:26:09 PDT 2020


#4744: St_AsMVT Errors on Some Polygons with Inner Rings
----------------------+---------------------------
  Reporter:  reyemtm  |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  medium   |  Milestone:  PostGIS 3.1.0
 Component:  postgis  |    Version:  3.0.x
Resolution:           |   Keywords:  vector tiles
----------------------+---------------------------

Comment (by reyemtm):

 Ok will do. For a server you can use either the pg_tileserv or the dirt
 server. The latter is in Node so its a bit easier to tweak the sql query
 if need be.

 These are not the exact steps I am using but gives the same result. Just
 tested it.

 Data - already in wgs84 -
 https://311.coz.org/data/geojson/utl_stormwater_impervious_view.geojson


 {{{
 Load into QGIS LTR
 Run Fix Geometries
 Load into Postgres 11/PostGIS 3.0
 Run server, either one
 Load into Mapbox GL JS latest map as fill
 Load the raw GeoJSON as well for reference - no need for account, just use
 blank style.
 }}}


 If you need anything further let me know. I actually ran into similar
 issues using geojson-vt to create static vector tiles in Node on this
 layer. I ended up letting gl js cut the tiles by loading the raw geojson.
 Not sure what magic they are doing but it works, for the most part. There
 are still artifacts, but very few. See https://gis.coz.org/maps
 /impervious-areas/?coz-impervious=true&layers=coz-
 impervious&lng=-82.01075644370012&lat=39.92599948362346#18.08/39.926302/-82.010936
 for reference artifacts.

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