[gdal-dev] SQLite/SpatiaLite driver capabilities

Even Rouault even.rouault at mines-paris.org
Wed Oct 6 14:23:30 EDT 2010


Le mercredi 06 octobre 2010 20:17:29, Alexander Bruy a écrit :
> Hi,
> 
> Seems, that OGR reports wrong capabilities for SQLite/SpatiaLite layers.
> At least for DeleteFeature capability. I always get FALSE when test this
> capability, but I can delete features from layer passing to the ExecuteSQL
> method DELETE statement.

There are sometimes inconsistencies between actual capabilities and reported 
capabilities, which is a bug then.

But in that case, it is not a bug. the DeleteFeature capability must be 
reported if the layer has an implementation of OGRLayer::DeleteFeature(), 
which the SQlite driver has not. The fact that it the SQLite SQL engine can 
process DELETE statements doesn't influence that fact.

> 
> Is this bug or feature?

So this is a "feature"

> 
> Thanks


More information about the gdal-dev mailing list