<div class="gmail_quote"><div style>Is there a specific order in which the features get retrieved on calling layer->GetNextFeature() ?</div><div style>For example, if the given spatial filter matched 4 features, when we iterate over the feature in a loop by calling layer->GetNextFeature() , is there a predefined order in which these feature are returned (such as best match first etc) ?</div>
<div style><br></div><div style>I am not using GEOS, is there another way to make it retrieve more accurate features ?</div><div style><br></div><div style>Thanks,</div><div style>Kedar</div></div><div class="gmail_quote">
<br></div><div class="gmail_quote">On Fri, Jun 8, 2012 at 12:13 PM, Kedar Deshpande <span dir="ltr"><<a href="mailto:kedardeshpande87@gmail.com" target="_blank">kedardeshpande87@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<div><br></div><div>I am creating an application that reads a shapefile having Zipcode Tabulation Area information (provided by US Census Bureau).</div>
<div>Once I get the layer, I am setting a spatial filter on it. I am passing a OGRPoint object to it having some values for latitude and longitude.</div>
<div>After I apply this filter, I am iterating over the Features that the layer returns.</div><div>But for a given geometry point, it is returning more than one features. I am extracting the zipcode from the feature.</div>
<div>So, it is returning me more than one zip codes for one lat/long point.</div><div>Could someone please let me know why is this behavior observed ?</div><div>If it returns multiple features for a filter, what is the order in which it returns the features (when we call layer->GetNextFeature()).</div>
<div>Is this order according to how exactly the filter matches Or is it not definite ? The documentation in the API does not mention about the order.</div><div><br></div><div>Thanks,</div><div>Kedar</div>
</blockquote></div><br>