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 );
117 static QChar separator( );
121 static QString formatAsPair(
double val,
int precision );
123 static QString formatXAsDegreesMinutesSeconds(
double val,
int precision, FormatFlags flags );
124 static QString formatYAsDegreesMinutesSeconds(
double val,
int precision, FormatFlags flags );
126 static QString formatXAsDegreesMinutes(
double val,
int precision, FormatFlags flags );
127 static QString formatYAsDegreesMinutes(
double val,
int precision, FormatFlags flags );
129 static QString formatXAsDegrees(
double val,
int precision, FormatFlags flags );
130 static QString formatYAsDegrees(
double val,
int precision, FormatFlags flags );
132 friend class QgsCoordinateUtils;
CoordinateOrder
Order of coordinates.
@ XY
Easting/Northing (or Longitude/Latitude for geographic CRS)
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.