[gdal-dev] Accuracy of OGRLayer:SetSpatialFilter() API

Kedar Deshpande kedardeshpande87 at gmail.com
Fri Jun 8 12:59:41 PDT 2012


>
> Hi,
>
> I am creating an application that reads a shapefile having Zipcode
> Tabulation Area information (provided by US Census Bureau).
> 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.
> After I apply this filter, I am iterating over the Features that the layer
> returns.
> But for a given geometry point, it is returning more than one features. I
> am extracting the zipcode from the feature.
> So, it is returning me more than one zip codes for one lat/long point.
> Could someone please let me know why is this behavior observed ?
> If it returns multiple features for a filter, what is the order in which
> it returns the features (when we call layer->GetNextFeature()).
> 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.
>
> Thanks,
> Kedar
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20120608/bbed77bc/attachment.html>


More information about the gdal-dev mailing list