From 367fc71af860656bfcdc989f328d89c1df137957 Mon Sep 17 00:00:00 2001 From: larsl Date: Thu, 30 Dec 2004 21:18:01 +0000 Subject: [PATCH] ** Implemented getProjectionWKT() in QgsGPXProvider git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2546 c8812cc2-4d05-0410-92ff-de0c093fc19c --- ChangeLog | 3 +++ configure.in | 2 +- providers/gpx/qgsgpxprovider.cpp | 16 ++++++++++++++++ providers/gpx/qgsgpxprovider.h | 14 ++++++++------ 4 files changed, 28 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 153dc386791..afe0321e5cc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,9 @@ QGIS Change Log ------------------------------------------------------------------------------ Version 0.6 'Simon' .... development version +2004-12-30 [larsl] 0.6.0devel1 +** Implemented getProjectionWKT() in QgsGPXProvider + 2004-12-19 [gsherman] 0.6.0rc2 ** Updated README ** Added main.cpp so spit builds as standalone and plugin. Makefile.am modified diff --git a/configure.in b/configure.in index 92f824acf5d..b21786b67b5 100644 --- a/configure.in +++ b/configure.in @@ -26,7 +26,7 @@ dnl --------------------------------------------------------------------------- MAJOR_VERSION=0 MINOR_VERSION=6 MICRO_VERSION=0 -EXTRA_VERSION=0 +EXTRA_VERSION=1 if test $EXTRA_VERSION -eq 0; then VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION} else diff --git a/providers/gpx/qgsgpxprovider.cpp b/providers/gpx/qgsgpxprovider.cpp index a21e23f28c2..f085bf36f33 100644 --- a/providers/gpx/qgsgpxprovider.cpp +++ b/providers/gpx/qgsgpxprovider.cpp @@ -120,6 +120,22 @@ QgsGPXProvider::~QgsGPXProvider() { } +QString QgsGPXProvider::getProjectionWKT() { + return + "GEOGCS[\"WGS 84\", " + " DATUM[\"WGS_1984\", " + " SPHEROID[\"WGS 84\",6378137,298.257223563, " + " AUTHORITY[\"EPSG\",7030]], " + " TOWGS84[0,0,0,0,0,0,0], " + " AUTHORITY[\"EPSG\",6326]], " + " PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",8901]], " + " UNIT[\"DMSH\",0.0174532925199433,AUTHORITY[\"EPSG\",9108]], " + " AXIS[\"Lat\",NORTH], " + " AXIS[\"Long\",EAST], " + " AUTHORITY[\"EPSG\",4326]]"; +} + + /** * Get the first feature resulting from a select operation * @return QgsFeature diff --git a/providers/gpx/qgsgpxprovider.h b/providers/gpx/qgsgpxprovider.h index c777d3f5b86..7a3c8056e64 100644 --- a/providers/gpx/qgsgpxprovider.h +++ b/providers/gpx/qgsgpxprovider.h @@ -40,12 +40,14 @@ class QgsGPXProvider : public QgsVectorDataProvider { public: QgsGPXProvider(QString uri=0); virtual ~QgsGPXProvider(); - /** Used to ask the layer for its projection as a WKT string. Implements virtual method of same name in QgsDataProvider. */ - QString getProjectionWKT() {return QString("Not implemented yet");} ; -/** - * Get the first feature resulting from a select operation - * @return QgsFeature - */ + + /** Used to ask the layer for its projection as a WKT string. Implements + virtual method of same name in QgsDataProvider. */ + QString getProjectionWKT(); + /** + * Get the first feature resulting from a select operation + * @return QgsFeature + */ QgsFeature * getFirstFeature(bool fetchAttributes=false); /** * Get the next feature resutling from a select operation