[gdal-dev] OGR2OGR: DBF and where-clause
Uffe Kousgaard
uffe at routeware.dk
Fri Jan 11 00:41:18 PST 2013
I run a select on a SHP file with this command:
ogr2ogr -where "ONEWAY<>'N'" -f "ESRI Shapefile" nw2.shp nw.shp
The ONEWAY field has 4 possible values: <blank>, FT, TF and N.
Fieldtype is char(2).
The problem is only records with FT and TF are selected. All the <blank>
records are skipped.
This is with the 4-1-2013 version in release-1600-gdal-mapserver.zip
In the older version in fwtools it works correctly, but that one has
other issues.
Regards
Uffe Kousgaard
More information about the gdal-dev
mailing list