Skip to content
Permalink
Browse files

Expose QgsCoordinateReferenceSystem to QML

  • Loading branch information
m-kuhn committed Aug 30, 2016
1 parent 15dd295 commit d6a4ab1c0b8b9ba5e964a7f9d726ffb9c6b38d11
Showing with 4 additions and 2 deletions.
  1. +1 −1 src/core/CMakeLists.txt
  2. +3 −1 src/core/qgscoordinatereferencesystem.h
@@ -449,6 +449,7 @@ SET(QGIS_CORE_MOC_HDRS
qgsapplication.h
qgsbrowsermodel.h
qgscontexthelp.h
qgscoordinatereferencesystem.h
qgscredentials.h
qgsdataitem.h
qgsdataprovider.h
@@ -616,7 +617,6 @@ SET(QGIS_CORE_HDRS
qgsconnectionpool.h
qgscontexthelp.h
qgsconditionalstyle.h
qgscoordinatereferencesystem.h
qgscoordinatetransform.h
qgscoordinateutils.h
qgscrscache.h
@@ -184,6 +184,8 @@ typedef void ( *CUSTOM_CRS_VALIDATION )( QgsCoordinateReferenceSystem& );
*/
class CORE_EXPORT QgsCoordinateReferenceSystem
{
Q_GADGET

public:

//! Enumeration of types of IDs accepted in createFromId() method
@@ -246,7 +248,7 @@ class CORE_EXPORT QgsCoordinateReferenceSystem
* @returns matching CRS, or an invalid CRS if string could not be matched
* @note added in QGIS 3.0
*/
static QgsCoordinateReferenceSystem fromEpsgId( long epsg );
Q_INVOKABLE static QgsCoordinateReferenceSystem fromEpsgId( long epsg );

/** Creates a CRS from a proj4 style formatted string.
* @param proj4 proj4 format string

0 comments on commit d6a4ab1

Please sign in to comment.
You can’t perform that action at this time.