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

Jo doublebyte at gmail.com
Sun Aug 2 17:56:43 EDT 2009


Hi,
The attach was only the wkt definition of the polygon...
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).
I think is outside the scope of this mailing list to tell how Im
importing it into OGR, but I ll do it anyway :-)


		while( (poFeature = poLayer->GetNextFeature()) != NULL )
		{
			OGRGeometry *poGeometry;
			poGeometry = poFeature->GetGeometryRef();
	
			if( poGeometry != NULL && wkbFlatten(poGeometry->getGeometryType())
== wkbPolygon )
			{
				OGRPolygon *poPolygon = (OGRPolygon*) poGeometry;
                                 DoStuffWithGEOS()
			}
                   }
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 "special"
:-)
I would have to look at it with a bit more detail!!
It looks fine in QGis thought...

http://ladybug.no-ip.org/files/emptyPolygon.png

                                                           cheers,
                                                                   Jo



Jo wrote:
>* I just realized the mailing list truncated my last message; here it is
*>* (without the attach!)
*
Sorry, I didn't see any source code in your message.
See how it is archived:

http://lists.osgeo.org/pipermail/geos-devel/2009-August/004293.html

Or you mean polygon.obj attachment?

http://lists.osgeo.org/pipermail/geos-devel/attachments/20090802/9e51e147/polygon.obj

Best regards,



2009/8/2 <geos-devel-request at lists.osgeo.org>

> Send geos-devel mailing list submissions to
>        geos-devel at lists.osgeo.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.osgeo.org/mailman/listinfo/geos-devel
> or, via email, send a message with subject or body 'help' to
>        geos-devel-request at lists.osgeo.org
>
> You can reach the person managing the list at
>        geos-devel-owner at lists.osgeo.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of geos-devel digest..."
>
>
> Today's Topics:
>
>   1. (not) Empty geometry (Jo)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 2 Aug 2009 21:51:41 +0100
> From: Jo <doublebyte at gmail.com>
> Subject: [geos-devel] (not) Empty geometry
> To: geos-devel at lists.osgeo.org
> Message-ID:
>        <23ab5f0a0908021351w53233efehdb82784d0c7248aa at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Skipped content of type multipart/alternative-------------- next part
> --------------
> A non-text attachment was scrubbed...
> Name: polygon.wkt
> Type: application/octet-stream
> Size: 51117 bytes
> Desc: not available
> Url :
> http://lists.osgeo.org/pipermail/geos-devel/attachments/20090802/9e51e147/polygon.obj
>
> ------------------------------
>
> _______________________________________________
> 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 3
> *****************************************
>



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


More information about the geos-devel mailing list