[Gdal-dev] ogr2ogr -where "attribute=value" no spaces allowed?
Dylan Beaudette
dylan at iici.no-ip.org
Mon Oct 25 15:03:05 EDT 2004
Hi,
I am using the ogr2ogr command to extract features from a shapefile, based on
a specific value for an attribute in the DBF by specifying a -where argument:
ogr2ogr -f "ESRI Shapefile" -where "DESCRIPT=Blue Oak Woodland"
Blue_Oak_Woodland.shp ../vegetation_polygon.shp
however, it seems like any spaces in the "DESCRIPT=Blue Oak Woodland" argument
causes the following error;
ERROR 1: Syntax error, 2 extra tokens
...which seems to match the number of spaces in the "DESCRIPT=Blue Oak
Woodland" argument..
is there any way to get around this problem?
thanks in advance,
--
Dylan Beaudette
Soil Science Graduate Group
University of California at Davis
More information about the Gdal-dev
mailing list