[gdal-dev] Re: Use of "LIKE" in OGR layer attribute filters

Chris Bailey chris.bailey at gtri.gatech.edu
Mon Jun 21 17:12:41 EDT 2010


This is the documentation I was referring to:

http://www.gdal.org/ogr/classOGRLayer.html#cb2c6cc5fa3577df5be538284c1b0dde

Set a new attribute query.

This method sets the attribute query string to be used when fetching
features via the GetNextFeature() method. Only features for which the query
evaluates as true will be returned.

The query string should be in the format of an SQL WHERE clause. For
instance "population > 1000000 and population < 5000000" where population is
an attribute in the layer. The query format is a restricted form of SQL
WHERE clause as defined "eq_format=restricted_where" about half way through
this document:

http://ogdi.sourceforge.net/prop/6.2.CapabilitiesMetadata.html



-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Use-of-LIKE-in-OGR-layer-attribute-filters-tp5206188p5206264.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.


More information about the gdal-dev mailing list