QGIS API Documentation 3.41.0-Master (45a0abf3bec)
|
Classes | |
struct | GDALDatasetCloser |
Closes and cleanups GDAL dataset. More... | |
struct | GDALRelationshipDeleter |
Closes and cleanups GDAL relationship. More... | |
struct | GDALWarpOptionsDeleter |
Closes and cleanups GDAL warp options. More... | |
struct | OGRDataSourceDeleter |
Destroys OGR data sources. More... | |
struct | OGRFeatureDeleter |
Destroys OGR feature. More... | |
struct | OGRFldDeleter |
Destroys OGR field definition. More... | |
struct | OGRGeometryDeleter |
Destroys OGR geometries. More... | |
Typedefs | |
using | dataset_unique_ptr = std::unique_ptr< std::remove_pointer< GDALDatasetH >::type, GDALDatasetCloser > |
Scoped GDAL dataset. | |
using | ogr_datasource_unique_ptr = std::unique_ptr< std::remove_pointer< OGRDataSourceH >::type, OGRDataSourceDeleter > |
Scoped OGR data source. | |
using | ogr_feature_unique_ptr = std::unique_ptr< std::remove_pointer< OGRFeatureH >::type, OGRFeatureDeleter > |
Scoped OGR feature. | |
using | ogr_field_def_unique_ptr = std::unique_ptr< std::remove_pointer< OGRFieldDefnH >::type, OGRFldDeleter > |
Scoped OGR field definition. | |
using | ogr_geometry_unique_ptr = std::unique_ptr< std::remove_pointer< OGRGeometryH >::type, OGRGeometryDeleter > |
Scoped OGR geometry. | |
using | relationship_unique_ptr = std::unique_ptr< std::remove_pointer< GDALRelationshipH >::type, GDALRelationshipDeleter > |
Scoped GDAL relationship. | |
using | warp_options_unique_ptr = std::unique_ptr< GDALWarpOptions, GDALWarpOptionsDeleter > |
Scoped GDAL warp options. | |
Functions | |
void CORE_EXPORT | fast_delete_and_close (dataset_unique_ptr &dataset, GDALDriverH driver, const QString &path) |
Performs a fast close of an unwanted GDAL dataset handle by deleting the underlying data store. | |
using gdal::dataset_unique_ptr = typedef std::unique_ptr< std::remove_pointer<GDALDatasetH>::type, GDALDatasetCloser > |
Scoped GDAL dataset.
Definition at line 157 of file qgsogrutils.h.
using gdal::ogr_datasource_unique_ptr = typedef std::unique_ptr< std::remove_pointer<OGRDataSourceH>::type, OGRDataSourceDeleter > |
Scoped OGR data source.
Definition at line 137 of file qgsogrutils.h.
using gdal::ogr_feature_unique_ptr = typedef std::unique_ptr< std::remove_pointer<OGRFeatureH>::type, OGRFeatureDeleter > |
Scoped OGR feature.
Definition at line 152 of file qgsogrutils.h.
using gdal::ogr_field_def_unique_ptr = typedef std::unique_ptr< std::remove_pointer<OGRFieldDefnH>::type, OGRFldDeleter > |
Scoped OGR field definition.
Definition at line 147 of file qgsogrutils.h.
using gdal::ogr_geometry_unique_ptr = typedef std::unique_ptr< std::remove_pointer<OGRGeometryH>::type, OGRGeometryDeleter > |
Scoped OGR geometry.
Definition at line 142 of file qgsogrutils.h.
using gdal::relationship_unique_ptr = typedef std::unique_ptr< std::remove_pointer<GDALRelationshipH>::type, GDALRelationshipDeleter > |
Scoped GDAL relationship.
Definition at line 179 of file qgsogrutils.h.
using gdal::warp_options_unique_ptr = typedef std::unique_ptr< GDALWarpOptions, GDALWarpOptionsDeleter > |
Scoped GDAL warp options.
Definition at line 172 of file qgsogrutils.h.
void gdal::fast_delete_and_close | ( | gdal::dataset_unique_ptr & | dataset, |
GDALDriverH | driver, | ||
const QString & | path | ||
) |
Performs a fast close of an unwanted GDAL dataset handle by deleting the underlying data store.
Use when the resultant dataset is no longer required, e.g. as a result of user cancellation of an operation.
Requires a gdal dataset pointer, the corresponding gdal driver and underlying dataset file path.
Definition at line 89 of file qgsogrutils.cpp.