mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -04:00
Expose QgsCoordinateReferenceSystem to QML
This commit is contained in:
parent
15dd29564c
commit
d6a4ab1c0b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user