[gdal-dev] spatial filter problem
Mohammed Rashad
mohammedrashadkm at gmail.com
Fri Feb 10 03:18:39 EST 2012
OGRLinearRing oSpatialFilter;
oSpatialFilter.setNumPoints(5);
oSpatialFilter.setPoint(0, rect.minx, rect.miny);
oSpatialFilter.setPoint(1, rect.maxx, rect.miny);
oSpatialFilter.setPoint(2, rect.maxx, rect.maxy);
oSpatialFilter.setPoint(3, rect.minx, rect.maxy);
oSpatialFilter.setPoint(4, rect.minx, rect.miny);
poLayer->SetSpatialFilter( &oSpatialFilter );
poLayer->ResetReading();
poFeature = poLayer->GetNextFeature() gives me null poFeature
does spatialFilter requires gdal build with geos?
with 1.8.0 ubuntu version I am able to use spatialFilter but not with trunk
--
Regards,
Rashad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20120210/cea1af4b/attachment.html
More information about the gdal-dev
mailing list