Changes between Version 14 and Version 15 of FAQVector
- Timestamp:
- May 13, 2017, 8:01:30 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FAQVector
v14 v15 8 8 9 9 It is not possible to delete features from Shapefile using [http://gdal.org/ogr2ogr.html ogr2ogr] utility. 10 11 However it is possible to delete features from Shapefile by using [http://gdal.org/ogrinfo.html ogrinfo] and OGR SQLite dialect. Usage: 12 13 14 {{{ 15 ogrinfo -dialect SQLite -sql "delete from test where my_string_attribute='value_to_delete" test.shp 16 }}} 17 10 18 11 19 In order to remove entries from Shapefile, you need to call [http://gdal.org/ogr/classOGRLayer.html OGRLayer::DeleteFeature()] method, either directly from C++ program or using one of alternative interface like [http://gdal.org/ogr/ogr__api_8h.html OGR C API] or [http://trac.osgeo.org/gdal/#GDALOGRInOtherLanguages bindings to other programming languages].