#include <qgsshapefile.h>
Definition at line 39 of file qgsshapefile.h.
Public Slots | |
| void | cancelImport () |
Public Member Functions | |
| QgsShapeFile (QString fileName, QString encoding=QString()) | |
| ~QgsShapeFile () | |
| int | getFeatureCount () |
| QString | getFeatureClass () |
| bool | insertLayer (QString dbname, QString schema, QString primary_key, QString geom_col, QString srid, PGconn *conn, QProgressDialog &pro, bool &fin, QString &errorText) |
| bool | is_valid () |
| QString | getName () |
| QString | getTable () |
| void | setTable (QString new_table) |
| void | setDefaultTable () |
| void | setColumnNames (QStringList) |
| bool | scanGeometries () |
Public Attributes | |
| std::vector< QString > | column_names |
| std::vector< QString > | column_types |
Private Attributes | |
| QString | table_name |
| OGRDataSourceH | ogrDataSource |
| OGRLayerH | ogrLayer |
| bool | import_canceled |
| bool | valid |
| bool | isMulti |
| Flag to indicate the file contains multiple geometry types. | |
| bool | hasMoreDimensions |
| int | features |
| QString | fileName |
| QString | geom_type |
| QStringList | geometries |
| QTextCodec * | codec |
| QgsShapeFile::QgsShapeFile | ( | QString | fileName, | |
| QString | encoding = QString() | |||
| ) |
Definition at line 51 of file qgsshapefile.cpp.
References codec, features, fileName, geometries, ogrDataSource, ogrLayer, QgsApplication::registerOgrDrivers(), setDefaultTable(), and valid.
| QgsShapeFile::~QgsShapeFile | ( | ) |
| int QgsShapeFile::getFeatureCount | ( | ) |
Definition at line 80 of file qgsshapefile.cpp.
References features.
Referenced by QgsSpit::addFile().
| QString QgsShapeFile::getFeatureClass | ( | ) |
Definition at line 149 of file qgsshapefile.cpp.
References codec, column_names, column_types, fileName, geom_type, isMulti, ogrLayer, QgsDebugMsg, scanGeometries(), and valid.
Referenced by QgsSpit::addFile().
| bool QgsShapeFile::insertLayer | ( | QString | dbname, | |
| QString | schema, | |||
| QString | primary_key, | |||
| QString | geom_col, | |||
| QString | srid, | |||
| PGconn * | conn, | |||
| QProgressDialog & | pro, | |||
| bool & | fin, | |||
| QString & | errorText | |||
| ) |
Definition at line 285 of file qgsshapefile.cpp.
References cancelImport(), codec, column_names, column_types, features, geom_type, hasMoreDimensions, import_canceled, isMulti, ogrLayer, QgsDebugMsg, QgsPgUtil::quotedIdentifier(), QgsPgUtil::quotedValue(), and table_name.
| bool QgsShapeFile::is_valid | ( | ) |
Definition at line 248 of file qgsshapefile.cpp.
References valid.
Referenced by QgsSpit::addFile().
| QString QgsShapeFile::getName | ( | ) |
| QString QgsShapeFile::getTable | ( | ) |
Definition at line 258 of file qgsshapefile.cpp.
References table_name.
Referenced by QgsSpit::addFile().
| void QgsShapeFile::setTable | ( | QString | new_table | ) |
| void QgsShapeFile::setDefaultTable | ( | ) |
Definition at line 270 of file qgsshapefile.cpp.
References fileName, and table_name.
Referenced by QgsShapeFile().
| void QgsShapeFile::setColumnNames | ( | QStringList | ) |
| bool QgsShapeFile::scanGeometries | ( | ) |
Definition at line 84 of file qgsshapefile.cpp.
References fileName, geom_type, geometries, hasMoreDimensions, ogrLayer, and QgsDebugMsg.
Referenced by getFeatureClass().
| void QgsShapeFile::cancelImport | ( | ) | [slot] |
Definition at line 481 of file qgsshapefile.cpp.
References import_canceled.
Referenced by insertLayer().
| std::vector<QString> QgsShapeFile::column_names |
Definition at line 57 of file qgsshapefile.h.
Referenced by getFeatureClass(), insertLayer(), and setColumnNames().
| std::vector<QString> QgsShapeFile::column_types |
QString QgsShapeFile::table_name [private] |
Definition at line 64 of file qgsshapefile.h.
Referenced by getTable(), insertLayer(), setDefaultTable(), and setTable().
OGRDataSourceH QgsShapeFile::ogrDataSource [private] |
OGRLayerH QgsShapeFile::ogrLayer [private] |
Definition at line 66 of file qgsshapefile.h.
Referenced by getFeatureClass(), insertLayer(), QgsShapeFile(), and scanGeometries().
bool QgsShapeFile::import_canceled [private] |
bool QgsShapeFile::valid [private] |
Definition at line 68 of file qgsshapefile.h.
Referenced by getFeatureClass(), is_valid(), and QgsShapeFile().
bool QgsShapeFile::isMulti [private] |
Flag to indicate the file contains multiple geometry types.
Definition at line 70 of file qgsshapefile.h.
Referenced by getFeatureClass(), and insertLayer().
bool QgsShapeFile::hasMoreDimensions [private] |
int QgsShapeFile::features [private] |
Definition at line 72 of file qgsshapefile.h.
Referenced by getFeatureCount(), insertLayer(), and QgsShapeFile().
QString QgsShapeFile::fileName [private] |
Definition at line 73 of file qgsshapefile.h.
Referenced by getFeatureClass(), getName(), QgsShapeFile(), scanGeometries(), and setDefaultTable().
QString QgsShapeFile::geom_type [private] |
Definition at line 74 of file qgsshapefile.h.
Referenced by getFeatureClass(), insertLayer(), and scanGeometries().
QStringList QgsShapeFile::geometries [private] |
QTextCodec* QgsShapeFile::codec [private] |
Definition at line 76 of file qgsshapefile.h.
Referenced by getFeatureClass(), insertLayer(), and QgsShapeFile().
1.5.1