Re: [gdal-dev] SetSpatialFilter and Spatial Index

2016-06-17 Thread Ari Jolma
The Shapefile driver supports spatial index from .qix file (http://gdal.org/drv_shapefile.html), so assumably the spatial filter set by SetSpatialFilter takes advantage of it. Best regards, Ari 16.06.2016, 23:04, Tomer kirjoitti: Or maybe the question need to be if I set geometry as spatial

Re: [gdal-dev] SetSpatialFilter and Spatial Index

2016-06-16 Thread Tomer
Or maybe the question need to be if I set geometry as spatial filter using the "SetSpatialFilter" function and then I use the function "GetNextFeature" on a layer with spatial index, for instance shp file with qix. It will consider the spatial index when fetch the next available feature from this

[gdal-dev] SetSpatialFilter and Spatial Index

2016-06-14 Thread Tomer
Hi, If I use the function SetSpatialFilter on a layer of a shp file with spatial index(.qix), will the function use the index to decide which features are suitable? Thanks, Tomer -- View this message in context:

Re: [gdal-dev] SetSpatialFilter

2014-08-03 Thread tunca tunc
Thanks Even, It works now. Are Latitude and Longitude values are inverted in gdal. Best Regards Tunca ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] SetSpatialFilter

2014-08-03 Thread Even Rouault
Le dimanche 03 août 2014 09:03:57, tunca tunc a écrit : Thanks Even, It works now. Are Latitude and Longitude values are inverted in gdal. Most GIS and GIS formats work with longitude, latitude coordinate order since it allows to draw a map that makes sense when using longitude as the

Re: [gdal-dev] SetSpatialFilter

2014-08-02 Thread Even Rouault
Le vendredi 01 août 2014 18:36:28, tunca tunc a écrit : Hi, Im 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*

[gdal-dev] SetSpatialFilter

2012-02-22 Thread Ethan Alpert
Is it still true that the geometry used for SetSpatialFilter must have the same CRS as the layer? This electronic communication and any attachments may contain confidential and proprietary information of DigitalGlobe, Inc. If you are not the intended recipient, or an agent or employee

Re: [gdal-dev] SetSpatialFilter not working?

2010-03-05 Thread Spencer Gardner
Department of Urban and Regional Planning - Original Message - From: Frank Warmerdam warmer...@pobox.com Date: Thursday, March 4, 2010 6:11 pm Subject: Re: [gdal-dev] SetSpatialFilter not working? To: Spencer Gardner sjgard...@wisc.edu Cc: gdal-dev@lists.osgeo.org Spencer Gardner wrote: I'm

[gdal-dev] SetSpatialFilter not working?

2010-03-04 Thread Spencer Gardner
I'm writing a script with 2 primary layers, a road layer and an intersection layer. I have designed the script to cycle through the intersections and remove any that have less than 3 road segments connected to it. I have set a buffer of 1 foot to account for any misalignment. The script runs

Re: [gdal-dev] SetSpatialFilter not working?

2010-03-04 Thread Frank Warmerdam
Spencer Gardner wrote: I'm writing a script with 2 primary layers, a road layer and an intersection layer. I have designed the script to cycle through the intersections and remove any that have less than 3 road segments connected to it. I have set a buffer of 1 foot to account for any