39 DegreesMinutesSeconds,
50 QString
id()
const override;
65 AngleFormat angleFormat() const;
73 void setAngleFormat( AngleFormat format );
80 bool showLeadingZeros() const;
87 void setShowLeadingZeros(
bool show );
94 bool showDegreeLeadingZeros() const;
101 void setShowDegreeLeadingZeros(
bool show );
108 bool showDirectionalSuffix() const;
115 void setShowDirectionalSuffix(
bool show );
117 void setConfiguration( const QVariantMap &configuration, const
QgsReadWriteContext &context ) override;
121 AngleFormat mAngleFormat = AngleFormat::DecimalDegrees;
122 bool mShowLeadingZeros = false;
123 bool mShowLeadingDegreeZeros = false;
124 bool mUseSuffix = true;
126 QString formatLongitude(
double value, std::basic_stringstream<
wchar_t> &ss, const
QgsNumericFormatContext &context ) const;
127 QString formatLatitude(
double value, std::basic_stringstream<
wchar_t> &ss, const
QgsNumericFormatContext &context ) const;
129 QString formatLatitudeAsDegreesMinutesSeconds(
double val, std::basic_stringstream<
wchar_t> &ss, const
QgsNumericFormatContext &context ) const;
130 QString formatLongitudeAsDegreesMinutesSeconds(
double val, std::basic_stringstream<
wchar_t> &ss, const
QgsNumericFormatContext &context ) const;
132 QString formatLatitudeAsDegreesMinutes(
double val, std::basic_stringstream<
wchar_t> &ss, const
QgsNumericFormatContext &context ) const;
133 QString formatLongitudeAsDegreesMinutes(
double val, std::basic_stringstream<
wchar_t> &ss, const
QgsNumericFormatContext &context ) const;
135 QString formatLatitudeAsDegrees(
double val, std::basic_stringstream<
wchar_t> &ss, const
QgsNumericFormatContext &context ) const;
136 QString formatLongitudeAsDegrees(
double val, std::basic_stringstream<
wchar_t> &ss, const
QgsNumericFormatContext &context ) const;
The class is used as a container of context for various read/write operations on other objects.