[postgis-tickets] [PostGIS] #3857: MVT returns for NULL "no data" which can be a problem for end use

PostGIS trac at osgeo.org
Thu Sep 21 12:07:33 PDT 2017


#3857: MVT returns for NULL "no data" which can be a problem for end use
--------------------------+----------------------------
  Reporter:  pramsey      |      Owner:  Björn Harrtell
      Type:  enhancement  |     Status:  assigned
  Priority:  high         |  Milestone:  PostGIS 2.4.0
 Component:  postgis      |    Version:  trunk
Resolution:               |   Keywords:
--------------------------+----------------------------

Comment (by Björn Harrtell):

 Discussed on IRC and we reached the following conclusions:

 1. ST_AsMVTGeom should return NULL when appropriate and not throw up on
 NULL input.
 2. ST_AsMVT should ignore rows where geometry is NULL.
 3. ST_AsMVT should return zero length bytea instead of NULL when
 appropriate.

 On an unrelated note @pramsey was also able to make my code crash the
 backend with `select st_astext(ST_AsMVTGeom('POINT EMPTY'::geometry,
 'BOX(0 0,2 2)'::box2d));`.

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