** Implemented getProjectionWKT() in QgsGPXProvider

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2546 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
larsl 2004-12-30 21:18:01 +00:00
parent 578d455a45
commit 367fc71af8
4 changed files with 28 additions and 7 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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