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

PostGIS trac at osgeo.org
Fri Sep 22 06:43:41 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
Resolution:                 |   Keywords:
----------------------------+---------------------------

Comment (by robe):

 I'm a bit confused here.  Why does ST_AsMVT not work with geometry
 collections, but ST_AsGeoBuf and ST_AsMVTGeom do?


 {{{

 SELECT encode(ST_AsGeobuf(foo1, 'the_geom'), 'base64')
                                                         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;
 }}}


 outputs


 {{{
 EAMi5wEKSwpJCAYiIwgFEgMBAQQaGueB5UPggawogJL0AccBAACQA5ADAMgBxwEAIiAIBBocp7Hq
 Q7j5pyiAiXqgBgAAAI8DANcEAADHAcgBAApLCkkIBiIjCAUSAwEBBBoa54HlQ+CBrCiAkvQBxwEA
 AJADkAMAyAHHAQAiIAgEGhynsepDuPmnKICJeqAGAAAAjwMA1wQAAMcByAEACksKSQgGIiMIBRID
 AQEEGhrngeVD4IGsKICS9AHHAQAAkAOQAwDIAccBACIgCAQaHKex6kO4+acogIl6oAYAAACPAwDX
 BAAAxwHIAQA=
 }}}

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