📄 qgsshapefile.h
字号:
/*************************************************************************** qgsshapefile.h - description ------------------- begin : Fri Dec 19 2003 copyright : (C) 2003 by Denis Antipov email : ***************************************************************************//*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************//* $Id: qgsshapefile.h 8293 2008-03-28 17:36:20Z jef $ */#ifndef QGSSHAPEFILE_H#define QGSSHAPEFILE_H#include <vector>#include <QString>#include <QStringList>#include <QObject>#include <ogr_api.h>class QProgressDialog;class QTextCodec;class OGRLayer;class OGRDataSource;extern "C"{ #include <libpq-fe.h>}class QgsShapeFile : public QObject{ Q_OBJECT public: 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(); std::vector <QString> column_names; std::vector <QString> column_types; void setColumnNames(QStringList); bool scanGeometries(); private: QString table_name; OGRDataSourceH ogrDataSource; OGRLayerH ogrLayer; bool import_canceled; bool valid; //! Flag to indicate the file contains multiple geometry types bool isMulti; bool hasMoreDimensions; int features; QString filename; QString geom_type; QStringList geometries; QTextCodec* codec; public slots: void cancelImport();};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -