Class: QgsCoordinateReferenceSystemUtils¶
- class qgis.core.QgsCoordinateReferenceSystemUtils¶
Bases:
sip.wrapper
Utility functions for working with
QgsCoordinateReferenceSystem
objects.New in version 3.26:
Methods
Returns a translated abbreviation representing an
axis
direction.Returns the default coordinate order to use for the specified
crs
.- axisDirectionToAbbreviatedString(axis: Qgis.CrsAxisDirection) str ¶
Returns a translated abbreviation representing an
axis
direction.- Parameters:
axis (Qgis.CrsAxisDirection) –
- Return type:
str
- defaultCoordinateOrderForCrs(crs: QgsCoordinateReferenceSystem) Qgis.CoordinateOrder ¶
Returns the default coordinate order to use for the specified
crs
.Warning
This is quite a “coarse” method, in that many possible CRS axis don’t map well to a simply X/Y or Y/X order. Accordingly this method will default to returning
Qgis
.CoordinateOrder.XY unless we are reasonably certain of a Y/X order.- Parameters:
crs (QgsCoordinateReferenceSystem) –
- Return type: