<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
> You don't need to go through text export/import.<br>
> Just dump OGR geometry as GEOS geometry using<br>
> OGRGeometry::exportToGEOS() method:<br>
><br>
> <a href="http://trac.osgeo.org/gdal/browser/trunk/gdal/ogr/ogr_geometry.h#L118" target="_blank">http://trac.osgeo.org/gdal/browser/trunk/gdal/ogr/ogr_geometry.h#L118</a><br>
><br>
> And check if GEOS geomtetry is OK now.<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>
</blockquote><div><br>I think that function might have been removed from the API (unfortunately) : at least is not on my SVN version and neither it is in the API doc online:<br><br><a href="http://gdal.org/ogr/classOGRGeometry.html">http://gdal.org/ogr/classOGRGeometry.html</a><br>
<br> cheers,<br> Jo<br><br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
><br>
><br>
> ------------------------------<br>
><br>
> Message: 6<br>
> Date: Mon, 03 Aug 2009 00:22:25 +0200<br>
> From: Frederik Ramm <<a href="mailto:frederik@remote.org">frederik@remote.org</a>><br>
> Subject: [geos-devel] Polygonizer returns inner rings on their own?<br>
> To: <a href="mailto:geos-devel@lists.osgeo.org">geos-devel@lists.osgeo.org</a><br>
> Message-ID: <<a href="mailto:4A7611A1.5080202@remote.org">4A7611A1.5080202@remote.org</a>><br>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
><br>
> Hi,<br>
><br>
> why is it that the (C++) Polygonizer, when given the following four<br>
> geometries,<br>
><br>
> "LINESTRING(1 1, 1 10, 10 10)"<br>
> "LINESTRING(10 10, 10 1, 1 1)"<br>
> "LINESTRING(20 20, 20 30, 30 30, 30 20, 20 20)"<br>
> "LINESTRING(3 3, 3 4, 4 4, 4 3, 3 3)"<br>
><br>
> (1 and 2 together form a shell, 3 forms a disjunct shell, 4 forms an<br>
> inner ring of 1+2)<br>
><br>
> returns a collection of three polygons:<br>
><br>
> POLYGON ((1.00 1.00, 1.00 10.00, 10.00 10.00, 10.00 1.00, 1.00 1.00),<br>
> (3.00 3.00, 4.00 3.00, 4.00 4.00, 3.00 4.00, 3.00 3.00))<br>
> POLYGON ((20.00 20.00, 20.00 30.00, 30.00 30.00, 30.00 20.00, 20.00 20.00))<br>
> POLYGON ((3.00 3.00, 3.00 4.00, 4.00 4.00, 4.00 3.00, 3.00 3.00))<br>
><br>
> I'm ok with the first and second, but the third one has already been<br>
> used as a "hole" inside the first and should not be returned again - or<br>
> is there a misunderstanding on my part?<br>
><br>
> Bye<br>
> Frederik<br>
><br>
> --<br>
> Frederik Ramm ## eMail <a href="mailto:frederik@remote.org">frederik@remote.org</a> ## N49°00'09" E008°23'33"<br>
><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 4<br>
> *****************************************<br>
><br>
<br>
<br>
<br>
--<br>
"#define QUESTION ((bb) || !(bb))" (Shakespeare)<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://lists.osgeo.org/pipermail/geos-devel/attachments/20090802/2b43a1b2/attachment.html" target="_blank">http://lists.osgeo.org/pipermail/geos-devel/attachments/20090802/2b43a1b2/attachment.html</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 5<br>
*****************************************<br>
</blockquote></div><br><br clear="all"><br>-- <br>"#define QUESTION ((bb) || !(bb))" (Shakespeare)<br><br>