[Qgis-user] Selecting polygons on attribute - Trying OGR

Andre Joost andre+joost at nurfuerspam.de
Tue Jul 24 08:17:11 PDT 2012


Am 24.07.2012 17:11, schrieb Zoltan Szecsei:

> Still no:
> zls at gs0:~$ ogr2ogr -f "ESRI Shapefile" -where " 21DigitKey LIKE 'C016%'"
> zerf.shp /mnt/geo_lvm0/SGO_cadastral/200909/WC/Erf.shp
> ERROR 1: SQL Expression Parsing Error: syntax error
> FAILURE: SetAttributeFilter( 21DigitKey LIKE 'C016%') failed.
> zls at gs0:~$

Do you habve gdal 1.8.0 or later running on the Linux machine?
SQL seems to be expanded since 1.7.x:
http://www.gdal.org/ogr/ogr_sql.html

Greetings,
André Joost





More information about the Qgis-user mailing list