Skip to content

Commit

Permalink
Expose QgsCoordinateReferenceSystem to QML
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Aug 30, 2016
1 parent 15dd295 commit d6a4ab1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/CMakeLists.txt
Expand Up @@ -449,6 +449,7 @@ SET(QGIS_CORE_MOC_HDRS
qgsapplication.h
qgsbrowsermodel.h
qgscontexthelp.h
qgscoordinatereferencesystem.h
qgscredentials.h
qgsdataitem.h
qgsdataprovider.h
Expand Down Expand Up @@ -616,7 +617,6 @@ SET(QGIS_CORE_HDRS
qgsconnectionpool.h
qgscontexthelp.h
qgsconditionalstyle.h
qgscoordinatereferencesystem.h
qgscoordinatetransform.h
qgscoordinateutils.h
qgscrscache.h
Expand Down
4 changes: 3 additions & 1 deletion src/core/qgscoordinatereferencesystem.h
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d6a4ab1

Please sign in to comment.