[postgis-tickets] [PostGIS] #4300: ST_AsMVTGeom: Uniformize multigeometry return types

PostGIS trac at osgeo.org
Wed Jan 16 02:00:03 PST 2019


#4300: ST_AsMVTGeom: Uniformize multigeometry return types
------------------------+---------------------------
 Reporter:  Algunenano  |      Owner:  Algunenano
     Type:  defect      |     Status:  assigned
 Priority:  medium      |  Milestone:  PostGIS 2.5.2
Component:  postgis     |    Version:  2.5.x
 Keywords:              |
------------------------+---------------------------
 Depending on the result of `lwgeom_make_valid`, ST_AsMVTGeom might return
 a single geometry (polygon or line) or a multigeometry (multipolygon or
 multiline) formed by only 1 geometry.

 I plan to modify this behaviour for the sake of consistency. Since it's
 really hard to determine if the input was a multipolygon / polygon once
 you accept geometry collections, I'm going to choose to return
 POLYGON(geometry) in all cases where the final result is a
 MULTIPOLYGON((single geometry)), and the equivalent for MULTILINE.

 This change only affects 2.5 and trunk as 2.4 had a different behaviour.

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