Opened 7 years ago
Closed 7 years ago
#3858 closed defect (fixed)
ST_AsMVT doesn't support geometry collections should be noted
Reported by: | robe | Owned by: | robe |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.4.0 |
Component: | documentation | Version: | master |
Keywords: | Cc: |
Description
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
Note:
See TracTickets
for help on using tickets.
I'm a bit confused here. Why does ST_AsMVT not work with geometry collections, but ST_AsGeoBuf and ST_AsMVTGeom do?
outputs