Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
** Implemented getProjectionWKT() in QgsGPXProvider
git-svn-id: http://svn.osgeo.org/qgis/trunk@2546 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
larsl committed Dec 30, 2004
1 parent 873c962 commit c168391
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 7 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion configure.in
Expand Up @@ -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
Expand Down
16 changes: 16 additions & 0 deletions providers/gpx/qgsgpxprovider.cpp
Expand Up @@ -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
Expand Down
14 changes: 8 additions & 6 deletions providers/gpx/qgsgpxprovider.h
Expand Up @@ -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
Expand Down

0 comments on commit c168391

Please sign in to comment.