#4300 closed defect (fixed)
ST_AsMVTGeom: Uniformize multigeometry return types
Reported by: | Algunenano | Owned by: | Algunenano |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.5.2 |
Component: | postgis | Version: | 2.5.x -- EOL |
Keywords: | Cc: |
Description
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.
Note:
See TracTickets
for help on using tickets.
In 17160: