mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1959 c8812cc2-4d05-0410-92ff-de0c093fc19c
56 lines
1.2 KiB
C++
56 lines
1.2 KiB
C++
//
|
|
// C++ Interface: qgsogrfactory
|
|
//
|
|
// Description:
|
|
//
|
|
//
|
|
// Author: Christoph Spoerri <spoerri@sourceforge.net>, (C) 2004
|
|
//
|
|
// Copyright: See COPYING file that comes with this distribution
|
|
//
|
|
//
|
|
#ifndef QGSOGRFACTORY_H
|
|
#define QGSOGRFACTORY_H
|
|
|
|
#include <qstring.h>
|
|
#include <qstringlist.h>
|
|
|
|
#include <ogrsf_frmts.h>
|
|
|
|
#include "qgsshapefileprovider.h"
|
|
#include "../../src/qgsdataproviderfactory.h"
|
|
#include "../../src/qgsdataprovider.h"
|
|
|
|
|
|
|
|
/**
|
|
@author Christoph Spoerri
|
|
*/
|
|
class QgsOGRFactory : public QgsDataProviderFactory
|
|
{
|
|
public:
|
|
QgsOGRFactory();
|
|
virtual ~QgsOGRFactory();
|
|
|
|
QString getFactoryType() { return "OGR Dataprovider Factory"; }
|
|
bool testCapability(int);
|
|
void setURI(QString uri);
|
|
QStringList getLayers();
|
|
bool create(QString newLocation, QString newName, QString type);
|
|
QgsDataProvider* open(QString name);
|
|
|
|
bool copy(QString oldName, QString newName);
|
|
bool copy(QString oldName, QString newLocation, QString newName) {};
|
|
bool move(QString newLocation) {};
|
|
bool rename(QString newName) {};
|
|
|
|
private:
|
|
bool valid;
|
|
QString dataSourceURI;
|
|
OGRDataSource * ogrDS;
|
|
OGRSFDriver * ogrDriver;
|
|
|
|
};
|
|
|
|
#endif
|