|
GDAL
|
LEGACY class. More...
#include <ogrsf_frmts.h>
LEGACY class.
Use GDALDataset in your new code ! This class may be removed in a later release.
This class represents a data source. A data source potentially consists of many layers (OGRLayer). A data source normally consists of one, or a related set of files, though the name doesn't have to be a real item in the file system.
When an OGRDataSource is destroyed, all it's associated OGRLayers objects are also destroyed.
NOTE: Starting with GDAL 2.0, it is *NOT* safe to cast the handle of a C function that returns a OGRDataSourceH to a OGRDataSource*. If a C++ object is needed, the handle should be cast to GDALDataset*.
1.7.6.1.