18 #ifndef QGSCOORDINATEFORMATTER_H
19 #define QGSCOORDINATEFORMATTER_H
60 FlagDegreesUseStringSuffix = 1 << 1,
61 FlagDegreesPadMinutesSeconds = 1 << 2,
63 Q_DECLARE_FLAGS( FormatFlags, FormatFlag )
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 );
113 static QChar separator( );
117 static QString formatAsPair(
double val,
int precision );
119 static QString formatXAsDegreesMinutesSeconds(
double val,
int precision, FormatFlags flags );
120 static QString formatYAsDegreesMinutesSeconds(
double val,
int precision, FormatFlags flags );
122 static QString formatXAsDegreesMinutes(
double val,
int precision, FormatFlags flags );
123 static QString formatYAsDegreesMinutes(
double val,
int precision, FormatFlags flags );
125 static QString formatXAsDegrees(
double val,
int precision, FormatFlags flags );
126 static QString formatYAsDegrees(
double val,
int precision, FormatFlags flags );
A class to represent a 2D point.
Q_DECLARE_OPERATORS_FOR_FLAGS(QgsField::ConfigurationFlags) CORE_EXPORT QDataStream &operator<<(QDataStream &out
Writes the field to stream out. QGIS version compatibility is not guaranteed.