Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#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.

Change History (4)

comment:1 by Raul Marin, 5 years ago

In 17160:

ST_AsMVTGeom: Always return the simplest geometry

References #4300

comment:2 by Raul Marin, 5 years ago

Resolution: fixed
Status: assignedclosed

In 17161:

ST_AsMVTGeom: Always return the simplest geometry

Closes #4300

comment:3 by Raul Marin, 5 years ago

In 17169:

ST_AsMVTGeom: Transform coordinates space before clipping

References #4300

comment:4 by Raul Marin, 5 years ago

In 17170:

ST_AsMVTGeom: Transform coordinates space before clipping

References #4300

Note: See TracTickets for help on using tickets.