[postgis-users] GeomUnion Bug?

Charlie Savage cfis at savagexi.com
Thu Sep 6 22:28:57 PDT 2007


This makes sense to me:

SELECT astext(GeomUnion(GeomFromText('POINT(-104 40)'),
  	                GeomFromText('POINT(-105 40)')))

"MULTIPOINT(-105 40,-104 40)"



But this not so much:

SELECT astext(GeomUnion(GeomFromText('POLYGON((-104 40,-104 40,-104 

                                                  40,-104 40,-104 40))'),
                         GeomFromText('POLYGON((-105 40,-105 40,-105
                                                  40,-105 40,-105 0))')))

"GEOMETRYCOLLECTION EMPTY"

Is this a bug?  Or is it supposed work this way?  It used to be 
different with Geos 2.2.1 (I assume this is a geos issue so I included 
that mailing list).

Charlie



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20070906/66d8700e/attachment.bin>


More information about the postgis-users mailing list