Ticket #375 (closed enhancement: fixed)
Add lwcollection_homogenize and ST_Homogenize
| Reported by: | colivier | Owned by: | pramsey |
|---|---|---|---|
| Priority: | medium | Milestone: | PostGIS 2.0.0 |
| Component: | postgis | Version: | |
| Keywords: | homogenize collection ST_GeomFromKML | Cc: |
Description
/* ** Given a generic collection, return the "simplest" form. ** ** eg: GEOMETRYCOLLECTION(MULTILINESTRING()) => MULTELINESTRING() ** GEOMETRYCOLLECTION(MULTILINESTRING(), MULTILINESTRING(), POINT()) ** => GEOMETRYCOLLECTION(MULTILINESTRING(), MULTIPOINT()) ** ** In general, if the subcomponents are homogeneous, return a properly ** typed collection. ** Otherwise, return a generic collection, with the subtypes in minimal ** typed collections.
I need this stuff for ST_GeomFromKML, to be able to return simplest geometry forms if KML input is mixed.
Change History
Note: See
TracTickets for help on using
tickets.
