Hi YongHeng<br>the result doesn&#39;t matter : your input polygons are not valid<br>Pascal<br><br><div class="gmail_quote">2009/4/10 LiN YongHeng <span dir="ltr">&lt;<a href="mailto:bicealyh@gmail.com">bicealyh@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>Hello everyone,</div>
<div>I have a question about GEOSUnion().</div>
<div>I give value to g1 and g2 like below:</div>
<div>GEOSGeom g1 = &quot;POLYGON ((1  3, 1  3, 1  6, 1  6, 1 3))&quot;  and GEOSGeom g2 = &quot;POLYGON ((1  3, 1  3, 1  6, 1  6, 1 3))&quot;  , but if I make union operation like GEOSGeom g3 = </div>
<div>GEOSUnion(g1, g2), it give me result like &quot;GEOMETRYCOLLECTION EMPTY&quot;. </div>
<div>Does anyone can tell me why?<br><br><br><br></div>
<div class="gmail_quote">2009/4/10 <span dir="ltr">&lt;<a href="mailto:geos-devel-request@lists.osgeo.org" target="_blank">geos-devel-request@lists.osgeo.org</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">Send geos-devel mailing list submissions to<br>       <a href="mailto:geos-devel@lists.osgeo.org" target="_blank">geos-devel@lists.osgeo.org</a><br>

<br>To subscribe or unsubscribe via the World Wide Web, visit<br>       <a href="http://lists.osgeo.org/mailman/listinfo/geos-devel" target="_blank">http://lists.osgeo.org/mailman/listinfo/geos-devel</a><br>or, via email, send a message with subject or body &#39;help&#39; to<br>

       <a href="mailto:geos-devel-request@lists.osgeo.org" target="_blank">geos-devel-request@lists.osgeo.org</a><br><br>You can reach the person managing the list at<br>       <a href="mailto:geos-devel-owner@lists.osgeo.org" target="_blank">geos-devel-owner@lists.osgeo.org</a><br>

<br>When replying, please edit your Subject line so it is more specific<br>than &quot;Re: Contents of geos-devel digest...&quot;<br><br><br>Today&#39;s Topics:<br><br>  1. Re: Boost License compatibility (Mateusz Loskot)<br>

  2. Re: Boost License compatibility (Paul Ramsey)<br>  3. Re: Boost License compatibility (Mateusz Loskot)<br>  4. Re: Boost License compatibility (Greg Troxel)<br>  5. Re: Boost License compatibility (Mateusz Loskot)<br>

<br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Wed, 08 Apr 2009 22:20:56 +0100<br>From: Mateusz Loskot &lt;<a href="mailto:mateusz@loskot.net" target="_blank">mateusz@loskot.net</a>&gt;<br>

Subject: Re: [geos-devel] Boost License compatibility<br>To: GEOS Development List &lt;<a href="mailto:geos-devel@lists.osgeo.org" target="_blank">geos-devel@lists.osgeo.org</a>&gt;<br>Message-ID: &lt;<a href="mailto:49DD1538.6050707@loskot.net" target="_blank">49DD1538.6050707@loskot.net</a>&gt;<br>

Content-Type: text/plain; charset=ISO-8859-1<br><br>Paul Ramsey wrote:<br>&gt; Since you&#39;re talking about taking a small snippet of LGPL and putting<br>&gt;  it into a larger chunk of Boost, probably you will get no definitive<br>

&gt;  answer, since it hinges on whether your new combined result is a<br>&gt; &quot;derived work&quot; (in which case it&#39;s LGPL) or not (in which case it can<br>&gt;  be Boost).  The &quot;safe&quot; black-and-white answer is that combining<br>

&gt; anything from a *GPL project with another compatibly-licensed project<br>&gt;  creates a *GPL resultant.<br><br>All this makes sense and seems to be best approach. Thanks!<br><br>Slightly changing my original question.<br>

Let&#39;s assume no code is copied.<br>Is it safe to &quot;translate&quot; or let&#39;s say rewrite some parts of<br>implementation of algorithms available in GEOS, using different<br>types, different idioms, different C++ constructions, etc.<br>

and license such work under the terms of Boost License?<br><br>Best regards,<br><br>p.s. I understand that the best answer is<br>probably &quot;Ask your lawyer!&quot;, so sorry for bothering<br>if it&#39;s OT here.<br><br>

--<br>Mateusz Loskot, <a href="http://mateusz.loskot.net/" target="_blank">http://mateusz.loskot.net</a><br>Charter Member of OSGeo, <a href="http://osgeo.org/" target="_blank">http://osgeo.org</a><br><br><br>------------------------------<br>

<br>Message: 2<br>Date: Wed, 8 Apr 2009 14:31:55 -0700<br>From: Paul Ramsey &lt;<a href="mailto:pramsey@opengeo.org" target="_blank">pramsey@opengeo.org</a>&gt;<br>Subject: Re: [geos-devel] Boost License compatibility<br>
To: GEOS Development List &lt;<a href="mailto:geos-devel@lists.osgeo.org" target="_blank">geos-devel@lists.osgeo.org</a>&gt;<br>
Message-ID:<br>       &lt;<a href="mailto:30fe546d0904081431h5cc15325kd478fb7abc81e6b@mail.gmail.com" target="_blank">30fe546d0904081431h5cc15325kd478fb7abc81e6b@mail.gmail.com</a>&gt;<br>Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
Definitely an &quot;ask your lawyer&quot;. Our feeling when porting JTS to C++<br>was that the port was still a &quot;derived work&quot; and should retain the<br>LGPL license of the original work. However, that was merely a feeling,<br>

I have no idea where the grey areas lie in things like algorithm<br>porting.<br><br>P.<br><br>On Wed, Apr 8, 2009 at 2:20 PM, Mateusz Loskot &lt;<a href="mailto:mateusz@loskot.net" target="_blank">mateusz@loskot.net</a>&gt; wrote:<br>
&gt; Paul Ramsey wrote:<br>
&gt;&gt; Since you&#39;re talking about taking a small snippet of LGPL and putting<br>&gt;&gt;  it into a larger chunk of Boost, probably you will get no definitive<br>&gt;&gt;  answer, since it hinges on whether your new combined result is a<br>

&gt;&gt; &quot;derived work&quot; (in which case it&#39;s LGPL) or not (in which case it can<br>&gt;&gt;  be Boost).  The &quot;safe&quot; black-and-white answer is that combining<br>&gt;&gt; anything from a *GPL project with another compatibly-licensed project<br>

&gt;&gt;  creates a *GPL resultant.<br>&gt;<br>&gt; All this makes sense and seems to be best approach. Thanks!<br>&gt;<br>&gt; Slightly changing my original question.<br>&gt; Let&#39;s assume no code is copied.<br>&gt; Is it safe to &quot;translate&quot; or let&#39;s say rewrite some parts of<br>

&gt; implementation of algorithms available in GEOS, using different<br>&gt; types, different idioms, different C++ constructions, etc.<br>&gt; and license such work under the terms of Boost License?<br>&gt;<br>&gt; Best regards,<br>

&gt;<br>&gt; p.s. I understand that the best answer is<br>&gt; probably &quot;Ask your lawyer!&quot;, so sorry for bothering<br>&gt; if it&#39;s OT here.<br>&gt;<br>&gt; --<br>&gt; Mateusz Loskot, <a href="http://mateusz.loskot.net/" target="_blank">http://mateusz.loskot.net</a><br>

&gt; Charter Member of OSGeo, <a href="http://osgeo.org/" target="_blank">http://osgeo.org</a><br>&gt; _______________________________________________<br>&gt; geos-devel mailing list<br>&gt; <a href="mailto:geos-devel@lists.osgeo.org" target="_blank">geos-devel@lists.osgeo.org</a><br>

&gt; <a href="http://lists.osgeo.org/mailman/listinfo/geos-devel" target="_blank">http://lists.osgeo.org/mailman/listinfo/geos-devel</a><br>&gt;<br><br><br>------------------------------<br><br>Message: 3<br>Date: Wed, 08 Apr 2009 22:41:16 +0100<br>

From: Mateusz Loskot &lt;<a href="mailto:mateusz@loskot.net" target="_blank">mateusz@loskot.net</a>&gt;<br>Subject: Re: [geos-devel] Boost License compatibility<br>To: GEOS Development List &lt;<a href="mailto:geos-devel@lists.osgeo.org" target="_blank">geos-devel@lists.osgeo.org</a>&gt;<br>

Message-ID: &lt;<a href="mailto:49DD19FC.7010107@loskot.net" target="_blank">49DD19FC.7010107@loskot.net</a>&gt;<br>Content-Type: text/plain; charset=ISO-8859-1<br><br>Paul Ramsey wrote:<br>&gt; Definitely an &quot;ask your lawyer&quot;. Our feeling when porting JTS to C++<br>

&gt; was that the port was still a &quot;derived work&quot; and should retain the<br>&gt; LGPL license of the original work. However, that was merely a feeling,<br>&gt; I have no idea where the grey areas lie in things like algorithm<br>

&gt; porting.<br><br>Right, I have similar feeling.<br><br>Thanks for help!<br><br>Best regards,<br>--<br>Mateusz Loskot, <a href="http://mateusz.loskot.net/" target="_blank">http://mateusz.loskot.net</a><br>Charter Member of OSGeo, <a href="http://osgeo.org/" target="_blank">http://osgeo.org</a><br>

<br><br>------------------------------<br><br>Message: 4<br>Date: Wed, 08 Apr 2009 18:02:48 -0400<br>From: Greg Troxel &lt;<a href="mailto:gdt@ir.bbn.com" target="_blank">gdt@ir.bbn.com</a>&gt;<br>Subject: Re: [geos-devel] Boost License compatibility<br>

To: GEOS Development List &lt;<a href="mailto:geos-devel@lists.osgeo.org" target="_blank">geos-devel@lists.osgeo.org</a>&gt;<br>Message-ID: &lt;<a href="mailto:rmiocv6ajnb.fsf@fnord.ir.bbn.com" target="_blank">rmiocv6ajnb.fsf@fnord.ir.bbn.com</a>&gt;<br>

Content-Type: text/plain; charset=&quot;us-ascii&quot;<br><br><br>Mateusz Loskot &lt;<a href="mailto:mateusz@loskot.net" target="_blank">mateusz@loskot.net</a>&gt; writes:<br><br>&gt; The question is like this:<br>&gt;<br>
&gt; Can I copy lines 10-30 from GEOS source file a.cpp to project X which<br>
&gt; is licensed under the terms of Boost License?<br><br>If those lines are deemed to be non-trivial - and the rule of them is<br>that 10 or more lines are definitely non-trivial - then no, because you<br>have a derived work and can&#39;t distribute the LGPL code under the Boost<br>

License.  If you read one line and write something to do a similar<br>algorithm but differently, almost certainly it&#39;s not a derived work and<br>the licnense of the inspirational work doesn&#39;t matter.  The middle<br>

ground is hard and standard advice is not to skate near the edge of thin<br>ice.<br><br>&gt; There is an existing code, project X licensed under Boost License.<br>&gt; If I copy some work based on LGPL and include it in the X,<br>

&gt; can I still distribute X under the terms of Boost License?<br><br>Definitely not.<br><br>&gt;&gt; It&#39;s pretty clear the boost people would reject including LPGL code<br>&gt;&gt; in boost, if that&#39;s what you are asking.<br>

&gt;<br>&gt; And this is something that is not clear or better, not obvious to me.<br><br>&gt;From reading their analysis of licenses, it seems clear to me that Boost<br>wants to allow proprietary use of boost.  This is the same licensing<br>

goal as the BSDs, and it&#39;s different from the FSF goal.<br>-------------- next part --------------<br>A non-text attachment was scrubbed...<br>Name: not available<br>Type: application/pgp-signature<br>Size: 193 bytes<br>

Desc: not available<br>Url : <a href="http://lists.osgeo.org/pipermail/geos-devel/attachments/20090408/da027928/attachment-0001.bin" target="_blank">http://lists.osgeo.org/pipermail/geos-devel/attachments/20090408/da027928/attachment-0001.bin</a><br>

<br>------------------------------<br><br>Message: 5<br>Date: Wed, 08 Apr 2009 23:43:41 +0100<br>From: Mateusz Loskot &lt;<a href="mailto:mateusz@loskot.net" target="_blank">mateusz@loskot.net</a>&gt;<br>Subject: Re: [geos-devel] Boost License compatibility<br>

To: GEOS Development List &lt;<a href="mailto:geos-devel@lists.osgeo.org" target="_blank">geos-devel@lists.osgeo.org</a>&gt;<br>Message-ID: &lt;<a href="mailto:49DD289D.7070901@loskot.net" target="_blank">49DD289D.7070901@loskot.net</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>Greg Troxel wrote:<br>&gt; Mateusz Loskot &lt;<a href="mailto:mateusz@loskot.net" target="_blank">mateusz@loskot.net</a>&gt; writes:<br>&gt;<br>&gt;&gt; The question is like this:<br>&gt;&gt;<br>&gt;&gt; Can I copy lines 10-30 from GEOS source file a.cpp to project X which<br>

&gt;&gt; is licensed under the terms of Boost License?<br>&gt;<br>&gt; If those lines are deemed to be non-trivial - and the rule of them is<br>&gt; that 10 or more lines are definitely non-trivial - then no, because you<br>

&gt; have a derived work and can&#39;t distribute the LGPL code under the Boost<br>&gt; License.  If you read one line and write something to do a similar<br>&gt; algorithm but differently, almost certainly it&#39;s not a derived work and<br>

&gt; the licnense of the inspirational work doesn&#39;t matter.  The middle<br>&gt; ground is hard and standard advice is not to skate near the edge of thin<br>&gt; ice.<br><br>Yes, this is best recommendation.<br><br>&gt;&gt;&gt; It&#39;s pretty clear the boost people would reject including LPGL code<br>

&gt;&gt;&gt; in boost, if that&#39;s what you are asking.<br>&gt;&gt; And this is something that is not clear or better, not obvious to me.<br>&gt;<br>&gt; From reading their analysis of licenses, it seems clear to me that Boost<br>

&gt; wants to allow proprietary use of boost.  This is the same licensing<br>&gt; goal as the BSDs, and it&#39;s different from the FSF goal.<br><br>Right, good point.<br><br>Thanks to all for help in understanding the issue!<br>

<br>Best regards,<br>--<br>Mateusz Loskot, <a href="http://mateusz.loskot.net/" target="_blank">http://mateusz.loskot.net</a><br>Charter Member of OSGeo, <a href="http://osgeo.org/" target="_blank">http://osgeo.org</a><br>

<br><br>------------------------------<br><br>_______________________________________________<br>geos-devel mailing list<br><a href="mailto:geos-devel@lists.osgeo.org" target="_blank">geos-devel@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/geos-devel" target="_blank">http://lists.osgeo.org/mailman/listinfo/geos-devel</a><br>

<br>End of geos-devel Digest, Vol 78, Issue 7<br>*****************************************<br></blockquote></div><br>
<br>_______________________________________________<br>
geos-devel mailing list<br>
<a href="mailto:geos-devel@lists.osgeo.org">geos-devel@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geos-devel" target="_blank">http://lists.osgeo.org/mailman/listinfo/geos-devel</a><br></blockquote></div><br>