21 #include "qgis_core.h" 26 #include <gdalwarper.h> 28 #include "cpl_string.h" 68 void CORE_EXPORT
operator()(
void *definition );
107 void CORE_EXPORT
operator()( GDALWarpOptions *options );
172 static QgsFeature readOgrFeature( OGRFeatureH ogrFet,
const QgsFields &fields, QTextCodec *encoding );
180 static QgsFields readOgrFields( OGRFeatureH ogrFet, QTextCodec *encoding );
192 static QVariant getOgrFeatureAttribute( OGRFeatureH ogrFet,
const QgsFields &fields,
int attIndex, QTextCodec *encoding,
bool *ok =
nullptr );
203 static bool readOgrFeatureAttributes( OGRFeatureH ogrFet,
const QgsFields &fields,
QgsFeature &feature, QTextCodec *encoding );
213 static bool readOgrFeatureGeometry( OGRFeatureH ogrFet,
QgsFeature &feature );
222 static QgsGeometry ogrGeometryToQgsGeometry( OGRGeometryH geom );
233 static QgsFeatureList stringToFeatureList(
const QString &
string,
const QgsFields &fields, QTextCodec *encoding );
242 static QgsFields stringToFields(
const QString &
string, QTextCodec *encoding );
245 #endif // QGSOGRUTILS_H Closes and cleanups GDAL dataset.
Destroys OGR data sources.
QList< QgsFeature > QgsFeatureList
Container of fields for a vector layer.
A geometry is the spatial representation of a feature.
Closes and cleanups GDAL warp options.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
std::unique_ptr< GDALWarpOptions, GDALWarpOptionsDeleter > warp_options_unique_ptr
Scoped GDAL warp options.
Utilities for working with OGR features and layers.
std::unique_ptr< void, OGRGeometryDeleter > ogr_geometry_unique_ptr
Scoped OGR geometry.
void CORE_EXPORT operator()(void *source)
Destroys an OGR data source, using the correct gdal calls.
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...
std::unique_ptr< void, GDALDatasetCloser > dataset_unique_ptr
Scoped GDAL dataset.
std::unique_ptr< void, OGRFldDeleter > ogr_field_def_unique_ptr
Scoped OGR field definition.
std::unique_ptr< void, OGRDataSourceDeleter > ogr_datasource_unique_ptr
Scoped OGR data source.
Destroys OGR field definition.
std::unique_ptr< void, OGRFeatureDeleter > ogr_feature_unique_ptr
Scoped OGR feature.