21 #include "qgis_core.h"
26 #include <gdalwarper.h>
28 #include "cpl_string.h"
42 void CORE_EXPORT
operator()( OGRDataSourceH source );
55 void CORE_EXPORT
operator()( OGRGeometryH geometry );
68 void CORE_EXPORT
operator()( OGRFieldDefnH definition );
81 void CORE_EXPORT
operator()( OGRFeatureH feature );
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 );
206 static QVariant getOgrFeatureAttribute( OGRFeatureH ogrFet,
const QgsField &
field,
int attIndex, QTextCodec *encoding,
bool *ok =
nullptr );
217 static bool readOgrFeatureAttributes( OGRFeatureH ogrFet,
const QgsFields &fields,
QgsFeature &feature, QTextCodec *encoding );
227 static bool readOgrFeatureGeometry( OGRFeatureH ogrFet,
QgsFeature &feature );
236 static QgsGeometry ogrGeometryToQgsGeometry( OGRGeometryH geom );
247 static QgsFeatureList stringToFeatureList(
const QString &
string,
const QgsFields &fields, QTextCodec *encoding );
256 static QgsFields stringToFields(
const QString &
string, QTextCodec *encoding );
263 static QStringList cStringListToQStringList(
char **stringList );
270 static QgsWkbTypes::Type ogrGeometryTypeToQgsWkbType( OGRwkbGeometryType ogrGeomType );
300 static QString readShapefileEncoding(
const QString &path );
311 static QString readShapefileEncodingFromCpg(
const QString &path );
322 static QString readShapefileEncodingFromLdid(
const QString &path );
325 #endif // QGSOGRUTILS_H