[geos-devel] Re: (not) Empty geometry

Jo doublebyte at gmail.com
Wed Aug 5 19:07:51 EDT 2009


>
> > You don't need to go through text export/import.
> > Just dump OGR geometry as GEOS geometry using
> > OGRGeometry::exportToGEOS() method:
> >
> > http://trac.osgeo.org/gdal/browser/trunk/gdal/ogr/ogr_geometry.h#L118
> >
> > And check if GEOS geomtetry is OK now.
> >
> > Best regards,
> > --
> > Mateusz Loskot, http://mateusz.loskot.net
> > Charter Member of OSGeo, http://osgeo.org
>

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:

http://gdal.org/ogr/classOGRGeometry.html

                               cheers,
                                             Jo




> >
> >
> > ------------------------------
> >
> > Message: 6
> > Date: Mon, 03 Aug 2009 00:22:25 +0200
> > From: Frederik Ramm <frederik at remote.org>
> > Subject: [geos-devel] Polygonizer returns inner rings on their own?
> > To: geos-devel at lists.osgeo.org
> > Message-ID: <4A7611A1.5080202 at remote.org>
> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> >
> > Hi,
> >
> >    why is it that the (C++) Polygonizer, when given the following four
> > geometries,
> >
> >         "LINESTRING(1 1, 1 10, 10 10)"
> >         "LINESTRING(10 10, 10 1, 1 1)"
> >         "LINESTRING(20 20, 20 30, 30 30, 30 20, 20 20)"
> >         "LINESTRING(3 3, 3 4, 4 4, 4 3, 3 3)"
> >
> > (1 and 2 together form a shell, 3 forms a disjunct shell, 4 forms an
> > inner ring of 1+2)
> >
> > returns a collection of three polygons:
> >
> > POLYGON ((1.00 1.00, 1.00 10.00, 10.00 10.00, 10.00 1.00, 1.00 1.00),
> > (3.00 3.00, 4.00 3.00, 4.00 4.00, 3.00 4.00, 3.00 3.00))
> > POLYGON ((20.00 20.00, 20.00 30.00, 30.00 30.00, 30.00 20.00, 20.00
> 20.00))
> > POLYGON ((3.00 3.00, 3.00 4.00, 4.00 4.00, 4.00 3.00, 3.00 3.00))
> >
> > I'm ok with the first and second, but the third one has already been
> > used as a "hole" inside the first and should not be returned again - or
> > is there a misunderstanding on my part?
> >
> > Bye
> > Frederik
> >
> > --
> > Frederik Ramm  ##  eMail frederik at remote.org  ##  N49°00'09" E008°23'33"
> >
> >
> > ------------------------------
> >
> > _______________________________________________
> > geos-devel mailing list
> > geos-devel at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/geos-devel
> >
> > End of geos-devel Digest, Vol 82, Issue 4
> > *****************************************
> >
>
>
>
> --
> "#define QUESTION ((bb) || !(bb))"  (Shakespeare)
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.osgeo.org/pipermail/geos-devel/attachments/20090802/2b43a1b2/attachment.html
>
> ------------------------------
>
> _______________________________________________
> geos-devel mailing list
> geos-devel at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geos-devel
>
> End of geos-devel Digest, Vol 82, Issue 5
> *****************************************
>



-- 
"#define QUESTION ((bb) || !(bb))"  (Shakespeare)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geos-devel/attachments/20090806/e95ad43f/attachment.html


More information about the geos-devel mailing list