Changes between Version 8 and Version 9 of FAQVector


Ignore:
Timestamp:
Jun 20, 2009, 2:18:40 PM (11 years ago)
Author:
Mateusz Łoskot
Comment:

QA: How can I delete Shapefile?

Legend:

Unmodified
Added
Removed
Modified
  • FAQVector

    v8 v9  
    1010
    1111In 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].
     12
     13== How can I delete Shapefile? ==
     14
     15[http://lists.osgeo.org/pipermail/gdal-dev/2009-June/020906.html Here] is related thread on the mailing list.
     16
     17Prior version 1.6 of GDAL/OGR it's only possible to remove Shapefile from filesystem using native API of user's operation system, for instance [http://opengroup.org/onlinepubs/007908775/xsh/unlink.html unlink()] function from [http://en.wikipedia.org/wiki/POSIX POSIX] or [http://msdn.microsoft.com/en-us/library/aa363915(VS.85).aspx DeleteFile()] from Microsoft [http://en.wikipedia.org/wiki/Win32 Windows API].
     18
     19Since GDAL 1.6, it is possible to accomplish this task using [http://gdal.org/ogr/classOGRDataSource.html OGRDataSource::DeleteLayer()] method.
    1220
    1321== How can I merge hundreds of Shapefiles? ==