[postgis-devel] [PostGIS] #375: Add lwcollection_homogenize and ST_Homogenize
PostGIS
trac at osgeo.org
Sun Jan 10 08:21:12 PST 2010
#375: Add lwcollection_homogenize and ST_Homogenize
---------------------------------------------------+------------------------
Reporter: colivier | Owner: colivier
Type: enhancement | Status: new
Priority: medium | Milestone: PostGIS 2.0.0
Component: postgis | Version:
Keywords: homogenize collection ST_GeomFromKML |
---------------------------------------------------+------------------------
{{{
/*
** 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.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/375>
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-devel
mailing list