18 #ifndef QGSCOORDINATEFORMATTER_H 19 #define QGSCOORDINATEFORMATTER_H 60 FlagDegreesUseStringSuffix = 1 << 1,
61 FlagDegreesPadMinutesSeconds = 1 << 2,
76 static QString formatX(
double x,
Format format,
int precision = 12, FormatFlags flags = FlagDegreesUseStringSuffix );
89 static QString formatY(
double y,
Format format,
int precision = 12, FormatFlags flags = FlagDegreesUseStringSuffix );
100 static QString format(
const QgsPointXY &point,
Format format,
int precision = 12, FormatFlags flags = FlagDegreesUseStringSuffix );
106 static QString asPair(
double x,
double y,
int precision = 12 );
110 static QString formatAsPair(
double val,
int precision );
112 static QString formatXAsDegreesMinutesSeconds(
double val,
int precision, FormatFlags flags );
113 static QString formatYAsDegreesMinutesSeconds(
double val,
int precision, FormatFlags flags );
115 static QString formatXAsDegreesMinutes(
double val,
int precision, FormatFlags flags );
116 static QString formatYAsDegreesMinutes(
double val,
int precision, FormatFlags flags );
118 static QString formatXAsDegrees(
double val,
int precision, FormatFlags flags );
119 static QString formatYAsDegrees(
double val,
int precision, FormatFlags flags );
122 Q_DECLARE_OPERATORS_FOR_FLAGS( QgsCoordinateFormatter::FormatFlags )
124 #endif // QGSCOORDINATEFORMATTER_H
A class to represent a 2D point.