[postgis-users] Question about CEOMETRYCOLLECTION

ksa ksa-nil5 at yandex.ru
Thu Nov 4 03:33:56 PST 2004


Hi, all!

OpenGIS Simple Features Specification say that GeometryCollection can
contains all other geometries, including MULTI* and GeometryCollections. But
what about PostGIS?

next query work not correct (on my opinion):
select  force_collection(GeometryFromText('MULTIPOINT((0 0), (1 1))'));
result:
SRID=0;GEOMETRYCOLLECTION(POINT(0 0), POINT(1 1))

next query complete with error:
select GeometryFromText('GEOMETRYCOLLECTION(MULTIPOINT((0 0), (1 1)))');
result:
ERROR: couldnt parse objects in GEOMETRY

Any suggestions?

Thanks!

Sergey Karin




More information about the postgis-users mailing list