⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 provider.cpp

📁 一个非常好的GIS开源新版本
💻 CPP
字号:
/***************************************************************************    qgsgrassprovider.cpp -  Data provider for GRASS format                             -------------------    begin                : March, 2004    copyright            : (C) 2004 by Gary E.Sherman, Radim Blazek    email                : sherman@mrcc.com, blazek@itc.it ***************************************************************************//*************************************************************************** *                                                                         * *   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.                                   * *                                                                         * ***************************************************************************/#include <string.h>#include <iostream>#include <vector>#include <cfloat>#include <QString>#include <QDateTime>#include "qgis.h"#include "qgsdataprovider.h"#include "qgsfeature.h"#include "qgsfield.h"#include "qgsrect.h"extern "C" {#include <grass/gis.h>#include <grass/dbmi.h>#include <grass/Vect.h>}#include "qgsgrass.h"#include "qgsgrassprovider.h"/*** Class factory to return a pointer to a newly created * QgsGrassProvider object*/QGISEXTERN QgsGrassProvider * classFactory(const QString *uri){  return new QgsGrassProvider(*uri);}/** Required key function (used to map the plugin to a data store type)*/QGISEXTERN QString providerKey(){  return QString("grass");}/*** Required description function */QGISEXTERN QString description(){  return QString("GRASS data provider");}/*** Required isProvider function. Used to determine if this shared library* is a data provider plugin*/QGISEXTERN bool isProvider(){  return true;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -