[postgis-tickets] [PostGIS] #3858: ST_AsMVT doesn't support geometry collections should be noted

PostGIS trac at osgeo.org
Thu Sep 21 23:54:05 PDT 2017


#3858: ST_AsMVT doesn't support geometry collections should be noted
---------------------------+---------------------------
 Reporter:  robe           |      Owner:  robe
     Type:  defect         |     Status:  new
 Priority:  medium         |  Milestone:  PostGIS 2.4.0
Component:  documentation  |    Version:  trunk
 Keywords:                 |
---------------------------+---------------------------
 {{{
 SELECT ST_AsMVT(foo1, 'monkey')  As result
                                                         FROM ((SELECT
 ST_Collect(geom)  As the_geom
                 FROM (VALUES (
 ST_GeomFromEWKT('SRID=4326;MULTIPOLYGON(((-71.0821 42.3036 2,-71.0822
 42.3036 2,-71.082 42.3038 2,-71.0819 42.3037 2,-71.0821 42.3036 2)))') ),
         ( ST_GeomFromEWKT('SRID=4326;POLYGON((-71.1261 42.2703 1,-71.1257
 42.2703 1,-71.1257 42.2701 1,-71.126 42.2701 1,-71.1261 42.2702 1,-71.1261
 42.2703 1))') ) ) As g(geom) CROSS JOIN generate_series(1,3) As i GROUP BY
 i )) As foo1 LIMIT 10;
 }}}

 Yields error:


 {{{
 ERROR:  encode_geometry: 'GeometryCollection' geometry type not supported

 }}}

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3858>
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