[postgis-users] GeomUnion Bug?

Carl Anderson carl.anderson at vadose.org
Fri Sep 7 04:42:33 PDT 2007


Charlie ,

neither of those polygons are valid

repeating points, self intersecting and the second one is not a closed 
linestring

C.



Charlie Savage wrote:
> 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
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20070907/14b560c7/attachment.html>


More information about the postgis-users mailing list