[gdal-dev] Possible to test for a layer capability before creating a layer?

Nyall Dawson nyall.dawson at gmail.com
Thu Feb 18 15:55:21 PST 2016


Hi all,

I'm aware that for drivers I can use OGR_Dr_TestCapability to
determine whether a particular driver as a specific capability. But is
there anyway to test whether a specific driver also has support for a
layer capability?

The situation is that I'd like to populate a list with all available
OGR drivers for which a created layer would then be able to support
SequentialWrite, DeleteFeature, RandomWrite and CreateField.

What would be the best way to go about this?

Nyall


More information about the gdal-dev mailing list