Re: [gdal-dev] OGR2OGR: DBF and where-clause

2013-01-11 Thread Even Rouault
Selon Uffe Kousgaard : > I run a select on a SHP file with this command: > ogr2ogr -where "ONEWAY<>'N'" -f "ESRI Shapefile" nw2.shp nw.shp Try -where "ONEWAY <> 'N' OR ONEWAY IS NULL" ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.o

[gdal-dev] OGR2OGR: DBF and where-clause

2013-01-11 Thread Uffe Kousgaard
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: , FT, TF and N. Fieldtype is char(2). The problem is only records with FT and TF are selected. All the records are skipped. This is with the