mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Update QgsMapLayer to current naming convention for CRS; srs() function left for API compatability (note was added to warn of future changes in 2.0)
git-svn-id: http://svn.osgeo.org/qgis/trunk@11943 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
05a5712ef8
commit
b4a6b417db
@ -188,7 +188,17 @@ public:
|
|||||||
*/
|
*/
|
||||||
virtual QString lastError();
|
virtual QString lastError();
|
||||||
|
|
||||||
/** Returns layer's spatial reference system */
|
/** Returns layer's spatial reference system
|
||||||
|
@note This was introduced in QGIS 1.4
|
||||||
|
*/
|
||||||
|
|
||||||
|
const QgsCoordinateReferenceSystem& crs();
|
||||||
|
|
||||||
|
/** Returns layer's spatial reference system
|
||||||
|
@note This method is here for API compatibility
|
||||||
|
and will be deprecited in 2.0
|
||||||
|
@see crs()
|
||||||
|
*/
|
||||||
const QgsCoordinateReferenceSystem& srs();
|
const QgsCoordinateReferenceSystem& srs();
|
||||||
|
|
||||||
/** Sets layer's spatial reference system */
|
/** Sets layer's spatial reference system */
|
||||||
|
@ -427,8 +427,15 @@ void QgsMapLayer::setSubLayerVisibility( QString name, bool vis )
|
|||||||
// NOOP
|
// NOOP
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const QgsCoordinateReferenceSystem& QgsMapLayer::crs()
|
||||||
|
{
|
||||||
|
return *mCRS;
|
||||||
|
}
|
||||||
|
|
||||||
const QgsCoordinateReferenceSystem& QgsMapLayer::srs()
|
const QgsCoordinateReferenceSystem& QgsMapLayer::srs()
|
||||||
{
|
{
|
||||||
|
// This will be dropped in QGIS 2.0 due to conflicting name
|
||||||
|
// Please use crs() in the future
|
||||||
return *mCRS;
|
return *mCRS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -190,7 +190,16 @@ class CORE_EXPORT QgsMapLayer : public QObject
|
|||||||
*/
|
*/
|
||||||
virtual QString lastError();
|
virtual QString lastError();
|
||||||
|
|
||||||
/** Returns layer's spatial reference system */
|
/** Returns layer's spatial reference system
|
||||||
|
@note This was introduced in QGIS 1.4
|
||||||
|
*/
|
||||||
|
const QgsCoordinateReferenceSystem& crs();
|
||||||
|
|
||||||
|
/** Returns layer's spatial reference system
|
||||||
|
@note This method is here for API compatibility
|
||||||
|
and will be deprecited in 2.0
|
||||||
|
@see crs()
|
||||||
|
*/
|
||||||
const QgsCoordinateReferenceSystem& srs();
|
const QgsCoordinateReferenceSystem& srs();
|
||||||
|
|
||||||
/** Sets layer's spatial reference system */
|
/** Sets layer's spatial reference system */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user