[gdal-dev] SetSpatialFilter

tunca tunc atuncatunc at gmail.com
Fri Aug 1 09:36:28 PDT 2014


Hi,

I"m totally new to GDAL, sorry if this is a obvious thing for you.

Trying to filter features in the area with following code snippet.
However
poLayer->GetNextFeature()
always returns null on my windows 8.


   OGRPolygon* polygon = new OGRPolygon();
>    OGRLinearRing* ring = new OGRLinearRing();
>    ring->addPoint(51.089028, 13.617821);
>    ring->addPoint(51.089675, 13.807336);
>    ring->addPoint(51.025585, 13.807679);
>    ring->addPoint(51.024937, 13.616105);
>    polygon->addRing(ring);
>    poLayer->SetSpatialFilter(polygon);


The full code is
http://pastebin.com/eWUeVsTG

I suspected geos dll is not loaded, but it's loaded according to following
output.
http://pastebin.com/7r1gUdQq

Best Regards

Tunca Tunc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20140801/401b755a/attachment.html>


More information about the gdal-dev mailing list