<pre>Hi,<br>The attach was only the wkt definition of the polygon...<br>Things are gettin a bit clearer now: the polygon is also valid and empty on OGR (so I guess no prob in importing it to geos).<br>I think is outside the scope of this mailing list to tell how Im importing it into OGR, but I ll do it anyway :-)<br>
<br><br>                while( (poFeature = poLayer-&gt;GetNextFeature()) != NULL )<br>                {<br>                        OGRGeometry *poGeometry;<br>                        poGeometry = poFeature-&gt;GetGeometryRef();<br>        <br>                        if( poGeometry != NULL &amp;&amp; wkbFlatten(poGeometry-&gt;getGeometryType()) == wkbPolygon )                        <br>
                        {<br>                                OGRPolygon *poPolygon = (OGRPolygon*) poGeometry;<br>                                 DoStuffWithGEOS()<br>                        }<br>                   }<br>Inside DoStuffWithGEOS(), I export it to text and import it (from text) to Geos. I guess this is all working fine cause it works for all the hundreds of polygons that I have, so I guess this one is &quot;special&quot; :-)<br>
I would have to look at it with a bit more detail!!<br>It looks fine in QGis thought...<br><br><a href="http://ladybug.no-ip.org/files/emptyPolygon.png">http://ladybug.no-ip.org/files/emptyPolygon.png</a><br><br>                                                           cheers,<br>
                                                                   Jo<br>                                 <br><br><br>Jo wrote:<br>&gt;<i> I just realized the mailing list truncated my last message; here it is<br></i>&gt;<i> (without the attach!)<br>
</i><br>Sorry, I didn&#39;t see any source code in your message.<br>See how it is archived:<br><br><a href="http://lists.osgeo.org/pipermail/geos-devel/2009-August/004293.html">http://lists.osgeo.org/pipermail/geos-devel/2009-August/004293.html</a><br>
<br>Or you mean polygon.obj attachment?<br><br><a href="http://lists.osgeo.org/pipermail/geos-devel/attachments/20090802/9e51e147/polygon.obj">http://lists.osgeo.org/pipermail/geos-devel/attachments/20090802/9e51e147/polygon.obj</a><br>
<br>Best regards,<br></pre><br><br><div class="gmail_quote">2009/8/2  <span dir="ltr">&lt;<a href="mailto:geos-devel-request@lists.osgeo.org">geos-devel-request@lists.osgeo.org</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;">
Send geos-devel mailing list submissions to<br>
        <a href="mailto:geos-devel@lists.osgeo.org">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">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">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. (not) Empty geometry (Jo)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sun, 2 Aug 2009 21:51:41 +0100<br>
From: Jo &lt;<a href="mailto:doublebyte@gmail.com">doublebyte@gmail.com</a>&gt;<br>
Subject: [geos-devel] (not) Empty geometry<br>
To: <a href="mailto:geos-devel@lists.osgeo.org">geos-devel@lists.osgeo.org</a><br>
Message-ID:<br>
        &lt;<a href="mailto:23ab5f0a0908021351w53233efehdb82784d0c7248aa@mail.gmail.com">23ab5f0a0908021351w53233efehdb82784d0c7248aa@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Skipped content of type multipart/alternative-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: polygon.wkt<br>
Type: application/octet-stream<br>
Size: 51117 bytes<br>
Desc: not available<br>
Url : <a href="http://lists.osgeo.org/pipermail/geos-devel/attachments/20090802/9e51e147/polygon.obj" target="_blank">http://lists.osgeo.org/pipermail/geos-devel/attachments/20090802/9e51e147/polygon.obj</a><br>
<br>
------------------------------<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>
<br>
End of geos-devel Digest, Vol 82, Issue 3<br>
*****************************************<br>
</blockquote></div><br><br clear="all"><br>-- <br>&quot;#define QUESTION ((bb) || !(bb))&quot;  (Shakespeare)<br><br>