21 #include "qgis_core.h" 
   26 #include <gdalwarper.h> 
   28 #include "cpl_string.h" 
   46     void CORE_EXPORT 
operator()( OGRDataSourceH source );
 
   59     void CORE_EXPORT 
operator()( OGRGeometryH geometry );
 
   72     void CORE_EXPORT 
operator()( OGRFieldDefnH definition );
 
   85     void CORE_EXPORT 
operator()( OGRFeatureH feature );
 
  111     void CORE_EXPORT 
operator()( GDALWarpOptions *options );
 
  173     static QVariant OGRFieldtoVariant( 
const OGRField *value, OGRFieldType type );
 
  182     static QgsFeature readOgrFeature( OGRFeatureH ogrFet, 
const QgsFields &fields, QTextCodec *encoding );
 
  190     static QgsFields readOgrFields( OGRFeatureH ogrFet, QTextCodec *encoding );
 
  202     static QVariant getOgrFeatureAttribute( OGRFeatureH ogrFet, 
const QgsFields &fields, 
int attIndex, QTextCodec *encoding, 
bool *ok = 
nullptr );
 
  216     static QVariant getOgrFeatureAttribute( OGRFeatureH ogrFet, 
const QgsField &
field, 
int attIndex, QTextCodec *encoding, 
bool *ok = 
nullptr );
 
  227     static bool readOgrFeatureAttributes( OGRFeatureH ogrFet, 
const QgsFields &fields, 
QgsFeature &feature, QTextCodec *encoding );
 
  237     static bool readOgrFeatureGeometry( OGRFeatureH ogrFet, 
QgsFeature &feature );
 
  246     static QgsGeometry ogrGeometryToQgsGeometry( OGRGeometryH geom );
 
  257     static QgsFeatureList stringToFeatureList( 
const QString &
string, 
const QgsFields &fields, QTextCodec *encoding );
 
  266     static QgsFields stringToFields( 
const QString &
string, QTextCodec *encoding );
 
  273     static QStringList cStringListToQStringList( 
char **stringList );
 
  280     static QgsWkbTypes::Type ogrGeometryTypeToQgsWkbType( OGRwkbGeometryType ogrGeomType );
 
  319     static QString readShapefileEncoding( 
const QString &path );
 
  330     static QString readShapefileEncodingFromCpg( 
const QString &path );
 
  341     static QString readShapefileEncodingFromLdid( 
const QString &path );
 
  348     static QVariantMap parseStyleString( 
const QString &
string );
 
This class represents a coordinate reference system (CRS).
 
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
 
Encapsulate a field in an attribute table or data source.
 
Container of fields for a vector layer.
 
A geometry is the spatial representation of a feature.
 
Utilities for working with OGR features and layers.
 
Type
The WKB type describes the number of dimensions a geometry has.
 
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< std::remove_pointer< OGRFeatureH >::type, OGRFeatureDeleter > ogr_feature_unique_ptr
Scoped OGR feature.
 
std::unique_ptr< std::remove_pointer< GDALDatasetH >::type, GDALDatasetCloser > dataset_unique_ptr
Scoped GDAL dataset.
 
std::unique_ptr< std::remove_pointer< OGRDataSourceH >::type, OGRDataSourceDeleter > ogr_datasource_unique_ptr
Scoped OGR data source.
 
std::unique_ptr< std::remove_pointer< OGRFieldDefnH >::type, OGRFldDeleter > ogr_field_def_unique_ptr
Scoped OGR field definition.
 
std::unique_ptr< std::remove_pointer< OGRGeometryH >::type, OGRGeometryDeleter > ogr_geometry_unique_ptr
Scoped OGR geometry.
 
std::unique_ptr< GDALWarpOptions, GDALWarpOptionsDeleter > warp_options_unique_ptr
Scoped GDAL warp options.
 
void * OGRSpatialReferenceH
 
QList< QgsFeature > QgsFeatureList
 
const QgsCoordinateReferenceSystem & crs
 
Closes and cleanups GDAL dataset.
 
void CORE_EXPORT operator()(GDALDatasetH datasource)
Destroys an gdal dataset, using the correct gdal calls.
 
Closes and cleanups GDAL warp options.
 
void CORE_EXPORT operator()(GDALWarpOptions *options)
Destroys GDAL warp options, using the correct gdal calls.
 
Destroys OGR data sources.
 
void CORE_EXPORT operator()(OGRDataSourceH source)
Destroys an OGR data source, using the correct gdal calls.
 
void CORE_EXPORT operator()(OGRFeatureH feature)
Destroys an OGR feature, using the correct gdal calls.
 
Destroys OGR field definition.
 
void CORE_EXPORT operator()(OGRFieldDefnH definition)
Destroys an OGR field definition, using the correct gdal calls.
 
void CORE_EXPORT operator()(OGRGeometryH geometry)
Destroys an OGR geometry, using the correct gdal calls.