QgsShapeFile Class Reference

#include <qgsshapefile.h>

List of all members.


Detailed Description

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


Constructor & Destructor Documentation

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 (  ) 

Definition at line 75 of file qgsshapefile.cpp.

References ogrDataSource.


Member Function Documentation

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 (  ) 

Definition at line 253 of file qgsshapefile.cpp.

References fileName.

QString QgsShapeFile::getTable (  ) 

Definition at line 258 of file qgsshapefile.cpp.

References table_name.

Referenced by QgsSpit::addFile().

void QgsShapeFile::setTable ( QString  new_table  ) 

Definition at line 263 of file qgsshapefile.cpp.

References table_name.

void QgsShapeFile::setDefaultTable (  ) 

Definition at line 270 of file qgsshapefile.cpp.

References fileName, and table_name.

Referenced by QgsShapeFile().

void QgsShapeFile::setColumnNames ( QStringList   ) 

Definition at line 276 of file qgsshapefile.cpp.

References column_names.

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().


Member Data Documentation

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

Definition at line 58 of file qgsshapefile.h.

Referenced by getFeatureClass(), and insertLayer().

QString QgsShapeFile::table_name [private]

Definition at line 64 of file qgsshapefile.h.

Referenced by getTable(), insertLayer(), setDefaultTable(), and setTable().

OGRDataSourceH QgsShapeFile::ogrDataSource [private]

Definition at line 65 of file qgsshapefile.h.

Referenced by QgsShapeFile(), and ~QgsShapeFile().

OGRLayerH QgsShapeFile::ogrLayer [private]

Definition at line 66 of file qgsshapefile.h.

Referenced by getFeatureClass(), insertLayer(), QgsShapeFile(), and scanGeometries().

bool QgsShapeFile::import_canceled [private]

Definition at line 67 of file qgsshapefile.h.

Referenced by cancelImport(), and insertLayer().

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]

Definition at line 71 of file qgsshapefile.h.

Referenced by insertLayer(), and scanGeometries().

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]

Definition at line 75 of file qgsshapefile.h.

Referenced by QgsShapeFile(), and scanGeometries().

QTextCodec* QgsShapeFile::codec [private]

Definition at line 76 of file qgsshapefile.h.

Referenced by getFeatureClass(), insertLayer(), and QgsShapeFile().


The documentation for this class was generated from the following files:
Generated on Tue Oct 28 16:52:04 2008 for Quantum GIS API Documentation by  doxygen 1.5.1