<div dir="ltr"><div>Hi,</div><div><br></div><div>I"m totally new to GDAL, sorry if this is a obvious thing for you.</div><div><br></div><div>Trying to filter features in the area with following code snippet.</div><div>
However </div><div>poLayer->GetNextFeature() <br></div><div>always returns null on my windows 8.</div><div><br></div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
OGRPolygon* polygon = new OGRPolygon();<br> OGRLinearRing* ring = new OGRLinearRing();<br> ring->addPoint(51.089028, 13.617821);<br> ring->addPoint(51.089675, 13.807336);<br> ring->addPoint(51.025585, 13.807679);<br>
ring->addPoint(51.024937, 13.616105);<br> polygon->addRing(ring);<br> poLayer->SetSpatialFilter(polygon);</blockquote></div><div><br></div><div>The full code is </div><a href="http://pastebin.com/eWUeVsTG">http://pastebin.com/eWUeVsTG</a><div>
<br></div><div><div>I suspected geos dll is not loaded, but it's loaded according to following output.</div><div><a href="http://pastebin.com/7r1gUdQq">http://pastebin.com/7r1gUdQq</a><br></div><div><br></div><div>Best Regards</div>
<div><br></div><div>Tunca Tunc</div>
</div></div>