QGIS API Documentation
4.3.0-Master (52380286b7c)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
proj
qgscoordinatereferencesystemutils.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgscoordinatereferencesystemutils.h
3
-------------------
4
begin : April 2022
5
copyright : (C) 2022 by Nyall Dawson
6
email : nyall dot dawson at gmail dot com
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
#ifndef QGSCOORDINATEREFERENCESYSTEMUTILS_H
18
#define QGSCOORDINATEREFERENCESYSTEMUTILS_H
19
20
#include "
qgis.h
"
21
#include "qgis_core.h"
22
#include "
qgis_sip.h
"
23
24
class
QgsCoordinateReferenceSystem
;
25
class
QgsCoordinateTransformContext
;
26
class
QgsGeometry
;
27
34
class
CORE_EXPORT
QgsCoordinateReferenceSystemUtils
35
{
36
public
:
43
static
Qgis::CoordinateOrder
defaultCoordinateOrderForCrs
(
const
QgsCoordinateReferenceSystem
&crs );
44
48
static
QString
axisDirectionToAbbreviatedString
(
Qgis::CrsAxisDirection
axis );
49
54
static
QString
crsTypeToString
(
Qgis::CrsType
type );
55
63
static
QString
translateProjection
(
const
QString &projection );
64
74
static
QgsGeometry
topocentricHorizonGeometry
(
75
const
QgsCoordinateReferenceSystem
&topocentricCrs,
const
QgsCoordinateReferenceSystem
&outputCrs,
const
QgsCoordinateTransformContext
&transformContext,
double
degreeStep = 1.0
76
);
77
};
78
79
#endif
// QGSCOORDINATEREFERENCESYSTEMUTILS_H
Qgis::CrsType
CrsType
Coordinate reference system types.
Definition
qgis.h:2513
Qgis::CoordinateOrder
CoordinateOrder
Order of coordinates.
Definition
qgis.h:2588
Qgis::CrsAxisDirection
CrsAxisDirection
Coordinate reference system axis directions.
Definition
qgis.h:2538
QgsCoordinateReferenceSystemUtils
Utility functions for working with QgsCoordinateReferenceSystem objects.
Definition
qgscoordinatereferencesystemutils.h:35
QgsCoordinateReferenceSystemUtils::topocentricHorizonGeometry
static QgsGeometry topocentricHorizonGeometry(const QgsCoordinateReferenceSystem &topocentricCrs, const QgsCoordinateReferenceSystem &outputCrs, const QgsCoordinateTransformContext &transformContext, double degreeStep=1.0)
Builds the geometry of the visible horizon (in outputCrs) when topocentricCrs is a topocentric CRS.
Definition
qgscoordinatereferencesystemutils.cpp:508
QgsCoordinateReferenceSystemUtils::crsTypeToString
static QString crsTypeToString(Qgis::CrsType type)
Returns a translated string representing a CRS type.
Definition
qgscoordinatereferencesystemutils.cpp:187
QgsCoordinateReferenceSystemUtils::translateProjection
static QString translateProjection(const QString &projection)
Returns a translated string for a projection method.
Definition
qgscoordinatereferencesystemutils.cpp:221
QgsCoordinateReferenceSystemUtils::defaultCoordinateOrderForCrs
static Qgis::CoordinateOrder defaultCoordinateOrderForCrs(const QgsCoordinateReferenceSystem &crs)
Returns the default coordinate order to use for the specified crs.
Definition
qgscoordinatereferencesystemutils.cpp:31
QgsCoordinateReferenceSystemUtils::axisDirectionToAbbreviatedString
static QString axisDirectionToAbbreviatedString(Qgis::CrsAxisDirection axis)
Returns a translated abbreviation representing an axis direction.
Definition
qgscoordinatereferencesystemutils.cpp:98
QgsCoordinateReferenceSystem
Represents a coordinate reference system (CRS).
Definition
qgscoordinatereferencesystem.h:216
QgsCoordinateTransformContext
Contains information about the context in which a coordinate transform is executed.
Definition
qgscoordinatetransformcontext.h:61
QgsGeometry
A geometry is the spatial representation of a feature.
Definition
qgsgeometry.h:267
qgis.h
qgis_sip.h
Generated on
for QGIS API Documentation by
1.17.0