2003-12-22 03:28:55 +00:00
|
|
|
/***************************************************************************
|
|
|
|
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. *
|
|
|
|
* *
|
|
|
|
***************************************************************************/
|
|
|
|
|
2003-12-23 05:44:06 +00:00
|
|
|
#ifndef QGSSHAPEFILE_H
|
|
|
|
#define QGSSHAPEFILE_H
|
|
|
|
|
2003-12-26 03:57:37 +00:00
|
|
|
#include <vector>
|
|
|
|
#include <qstring.h>
|
2003-12-23 05:44:06 +00:00
|
|
|
#include <ogrsf_frmts.h>
|
|
|
|
|
|
|
|
class OGRLayer;
|
|
|
|
class OGRDataSource;
|
2003-12-22 03:28:55 +00:00
|
|
|
|
|
|
|
class QgsShapeFile
|
|
|
|
{
|
2003-12-26 03:57:37 +00:00
|
|
|
public:
|
|
|
|
|
2003-12-22 03:28:55 +00:00
|
|
|
QgsShapeFile(QString filename);
|
|
|
|
~QgsShapeFile();
|
2003-12-23 05:44:06 +00:00
|
|
|
const char * getFeatureCount();
|
2003-12-24 02:05:43 +00:00
|
|
|
const char * getFeatureClass();
|
2003-12-26 03:57:37 +00:00
|
|
|
|
2003-12-24 02:05:43 +00:00
|
|
|
bool is_valid();
|
|
|
|
const char * getName();
|
2003-12-26 03:57:37 +00:00
|
|
|
std::vector <const char *> column_names;
|
|
|
|
std::vector <const char *> column_types;
|
2003-12-23 05:44:06 +00:00
|
|
|
|
2003-12-22 03:28:55 +00:00
|
|
|
|
|
|
|
private:
|
2003-12-23 05:44:06 +00:00
|
|
|
OGRDataSource *ogrDataSource;
|
|
|
|
OGRLayer * ogrLayer;
|
|
|
|
bool valid;
|
2003-12-24 02:05:43 +00:00
|
|
|
const char * filename;
|
2003-12-26 03:57:37 +00:00
|
|
|
const char * geom_type;
|
2003-12-26 07:11:34 +00:00
|
|
|
QString geometry;
|
2003-12-26 03:57:37 +00:00
|
|
|
|
2003-12-22 03:28:55 +00:00
|
|
|
};
|
2003-12-23 05:44:06 +00:00
|
|
|
|
|
|
|
#endif
|