<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>RE: [geos-devel] question about GEOSUnion?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>LiN YongHeng,<BR>
<BR>
your geometry is invalid since first you don't have enough points to form a polygon after you remove the dupes and second you have self intersections.&nbsp; Therefore the union is undefined at best.<BR>
<BR>
Hope that helps,<BR>
Regina<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: geos-devel-bounces@lists.osgeo.org on behalf of LiN YongHeng<BR>
Sent: Sun 4/12/2009 9:17 PM<BR>
To: geos-devel@lists.osgeo.org<BR>
Subject: [geos-devel] question about GEOSUnion?<BR>
<BR>
Hello everyone,<BR>
I have a question about GEOSUnion().<BR>
I give value to g1 and g2 like below:<BR>
GEOSGeom g1 = &quot;POLYGON ((1&nbsp; 3, 1&nbsp; 3, 1&nbsp; 6, 1&nbsp; 6, 1 3))&quot;&nbsp; and GEOSGeom g2 =<BR>
&quot;POLYGON ((1&nbsp; 3, 1&nbsp; 3, 1&nbsp; 6, 1&nbsp; 6, 1 3))&quot;&nbsp; , but if I make union operation<BR>
like GEOSGeom g3 =<BR>
GEOSUnion(g1, g2), it give me result like &quot;GEOMETRYCOLLECTION EMPTY&quot;.<BR>
Does anyone can tell me why?<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>
<HTML><BODY><P><hr size=1></P>
<P><STRONG>
The substance of this message, including any attachments, may be confidential, legally privileged and/or exempt from disclosure pursuant to Massachusetts law. It is intended solely for the addressee. If you received this in error, please contact the sender and delete the material from any computer.
</STRONG></P></BODY></HTML>

<P><hr size=1></P>
<P><STRONG><font size="2" color="339900"> Help make the earth a greener place. If at all possible resist printing this email and join us in saving paper. </p> <p> </font></STRONG></P>