Quantum GIS API Documentation
1.8
|
00001 /*************************************************************************** 00002 qgis.cpp 00003 00004 ------------------- 00005 begin : 2007 00006 copyright : (C) 2007 by Gary E. Sherman 00007 email : [email protected] 00008 ***************************************************************************/ 00009 00010 /*************************************************************************** 00011 * * 00012 * This program is free software; you can redistribute it and/or modify * 00013 * it under the terms of the GNU General Public License as published by * 00014 * the Free Software Foundation; either version 2 of the License, or * 00015 * (at your option) any later version. * 00016 * * 00017 ***************************************************************************/ 00018 #include "qgis.h" 00019 #ifndef QGSVERSION 00020 #include "qgsversion.h" 00021 #endif 00022 00023 #include "qgsconfig.h" 00024 00025 #include <ogr_api.h> 00026 00027 // Version constants 00028 // 00029 00030 // Version string 00031 const char* QGis::QGIS_VERSION = VERSION; 00032 00033 // development version 00034 const char* QGis::QGIS_DEV_VERSION = QGSVERSION; 00035 00036 // Version number used for comparing versions using the 00037 // "Check QGIS Version" function 00038 const int QGis::QGIS_VERSION_INT = VERSION_INT; 00039 00040 // Release name 00041 const char* QGis::QGIS_RELEASE_NAME = RELEASE_NAME; 00042 00043 #if GDAL_VERSION_NUM >= 1800 00044 const QString GEOPROJ4 = "+proj=longlat +datum=WGS84 +no_defs"; 00045 #else 00046 const QString GEOPROJ4 = "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"; 00047 #endif 00048 00049 const char* QGis::qgisVectorGeometryType[] = 00050 { 00051 "Point", 00052 "Line", 00053 "Polygon", 00054 "Unknown geometry", 00055 "No geometry", 00056 }; 00057 00058 // description strings for feature types 00059 const char* QGis::qgisFeatureTypes[] = 00060 { 00061 "Null", 00062 "WKBPoint", 00063 "WKBLineString", 00064 "WKBPolygon", 00065 "WKBMultiPoint", 00066 "WKBMultiLineString", 00067 "WKBMultiPolygon" 00068 }; 00069 00070 const double QGis::DEFAULT_IDENTIFY_RADIUS = 0.5; 00071