\hypertarget{classosgeo_1_1proj_1_1common_1_1Measure}{}\doxysection{osgeo\+::proj\+::common\+::Measure Class Reference}
\label{classosgeo_1_1proj_1_1common_1_1Measure}\index{osgeo::proj::common::Measure@{osgeo::proj::common::Measure}}


Numeric value associated with a \mbox{\hyperlink{classosgeo_1_1proj_1_1common_1_1UnitOfMeasure}{Unit\+Of\+Measure}}.  




{\ttfamily \#include $<$common.\+hpp$>$}



Inheritance diagram for osgeo\+::proj\+::common\+::Measure\+:
% FIG 0


Collaboration diagram for osgeo\+::proj\+::common\+::Measure\+:
% FIG 1
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classosgeo_1_1proj_1_1common_1_1Measure_a6b3aa05d159c717da871d9fcb88a7c59}\label{classosgeo_1_1proj_1_1common_1_1Measure_a6b3aa05d159c717da871d9fcb88a7c59}} 
{\bfseries Measure} (double value\+In=0.\+0, const \mbox{\hyperlink{classosgeo_1_1proj_1_1common_1_1UnitOfMeasure}{Unit\+Of\+Measure}} \&unit\+In=\mbox{\hyperlink{classosgeo_1_1proj_1_1common_1_1UnitOfMeasure}{Unit\+Of\+Measure}}())
\begin{DoxyCompactList}\small\item\em Instantiate a \mbox{\hyperlink{classosgeo_1_1proj_1_1common_1_1Measure}{Measure}}. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classosgeo_1_1proj_1_1common_1_1Measure_a84349190613af54346aa622258500a83}\label{classosgeo_1_1proj_1_1common_1_1Measure_a84349190613af54346aa622258500a83}} 
const \mbox{\hyperlink{classosgeo_1_1proj_1_1common_1_1UnitOfMeasure}{Unit\+Of\+Measure}} \& {\bfseries unit} ()
\begin{DoxyCompactList}\small\item\em Return the unit of the \mbox{\hyperlink{classosgeo_1_1proj_1_1common_1_1Measure}{Measure}}. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classosgeo_1_1proj_1_1common_1_1Measure_adf426e515bafda8acf4d16d8f82196e7}\label{classosgeo_1_1proj_1_1common_1_1Measure_adf426e515bafda8acf4d16d8f82196e7}} 
double {\bfseries get\+SIValue} ()
\begin{DoxyCompactList}\small\item\em Return the value of the \mbox{\hyperlink{classosgeo_1_1proj_1_1common_1_1Measure}{Measure}}, after conversion to the corresponding unit of the International System. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classosgeo_1_1proj_1_1common_1_1Measure_a1b2926e6a57a707558e6e5da7adcbc7b}\label{classosgeo_1_1proj_1_1common_1_1Measure_a1b2926e6a57a707558e6e5da7adcbc7b}} 
double {\bfseries value} ()
\begin{DoxyCompactList}\small\item\em Return the value of the measure, expressed in the \mbox{\hyperlink{classosgeo_1_1proj_1_1common_1_1Measure_a84349190613af54346aa622258500a83}{unit()}} \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classosgeo_1_1proj_1_1common_1_1Measure_ae7498a12901244a69574f81472445a7e}\label{classosgeo_1_1proj_1_1common_1_1Measure_ae7498a12901244a69574f81472445a7e}} 
double {\bfseries convert\+To\+Unit} (const \mbox{\hyperlink{classosgeo_1_1proj_1_1common_1_1UnitOfMeasure}{Unit\+Of\+Measure}} \&other\+Unit)
\begin{DoxyCompactList}\small\item\em Return the value of this measure expressed into the provided unit. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{classosgeo_1_1proj_1_1common_1_1Measure_a0a295dc3bb1d0e3ffc10d546c5f6c3f8}{operator==}} (const \mbox{\hyperlink{classosgeo_1_1proj_1_1common_1_1Measure}{Measure}} \&other)
\begin{DoxyCompactList}\small\item\em Return whether two measures are equal. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{classosgeo_1_1proj_1_1common_1_1Measure_a18410783442e78fa0e813a4cf95e88f3}{\+\_\+is\+Equivalent\+To}} (const \mbox{\hyperlink{classosgeo_1_1proj_1_1common_1_1Measure}{Measure}} \&other, \mbox{\hyperlink{classosgeo_1_1proj_1_1util_1_1IComparable_af198b4ab092a20e3a5495308d68d7140}{util\+::\+IComparable\+::\+Criterion}} criterion=\mbox{\hyperlink{classosgeo_1_1proj_1_1util_1_1IComparable_af198b4ab092a20e3a5495308d68d7140a4c50b1af679a751969aaad2881a34bef}{util\+::\+IComparable\+::\+Criterion\+::\+STRICT}}, double max\+Relative\+Error=\mbox{\hyperlink{classosgeo_1_1proj_1_1common_1_1Measure_af3f68a05dfac81d6461afb14a173433f}{DEFAULT\+\_\+\+MAX\+\_\+\+REL\+\_\+\+ERROR}}) const
\begin{DoxyCompactList}\small\item\em Returns whether an object is equivalent to another one. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Static Public Attributes}
\begin{DoxyCompactItemize}
\item 
static constexpr double \mbox{\hyperlink{classosgeo_1_1proj_1_1common_1_1Measure_af3f68a05dfac81d6461afb14a173433f}{DEFAULT\+\_\+\+MAX\+\_\+\+REL\+\_\+\+ERROR}} = 1e-\/10
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Numeric value associated with a \mbox{\hyperlink{classosgeo_1_1proj_1_1common_1_1UnitOfMeasure}{Unit\+Of\+Measure}}. 

\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classosgeo_1_1proj_1_1common_1_1Measure_a18410783442e78fa0e813a4cf95e88f3}\label{classosgeo_1_1proj_1_1common_1_1Measure_a18410783442e78fa0e813a4cf95e88f3}} 
\index{osgeo::proj::common::Measure@{osgeo::proj::common::Measure}!\_isEquivalentTo@{\_isEquivalentTo}}
\index{\_isEquivalentTo@{\_isEquivalentTo}!osgeo::proj::common::Measure@{osgeo::proj::common::Measure}}
\doxysubsubsection{\texorpdfstring{\_isEquivalentTo()}{\_isEquivalentTo()}}
{\footnotesize\ttfamily bool osgeo\+::proj\+::common\+::\+Measure\+::\+\_\+is\+Equivalent\+To (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{classosgeo_1_1proj_1_1common_1_1Measure}{Measure}} \&}]{other,  }\item[{\mbox{\hyperlink{classosgeo_1_1proj_1_1util_1_1IComparable_af198b4ab092a20e3a5495308d68d7140}{util\+::\+IComparable\+::\+Criterion}}}]{criterion = {\ttfamily \mbox{\hyperlink{classosgeo_1_1proj_1_1util_1_1IComparable_af198b4ab092a20e3a5495308d68d7140a4c50b1af679a751969aaad2881a34bef}{util\+::\+IComparable\+::\+Criterion\+::\+STRICT}}},  }\item[{double}]{max\+Relative\+Error = {\ttfamily \mbox{\hyperlink{classosgeo_1_1proj_1_1common_1_1Measure_af3f68a05dfac81d6461afb14a173433f}{DEFAULT\+\_\+\+MAX\+\_\+\+REL\+\_\+\+ERROR}}} }\end{DoxyParamCaption}) const}



Returns whether an object is equivalent to another one. 


\begin{DoxyParams}{Parameters}
{\em other} & other object to compare to \\
\hline
{\em criterion} & comparison criterion. \\
\hline
{\em max\+Relative\+Error} & Maximum relative error allowed. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if objects are equivalent. 
\end{DoxyReturn}
\mbox{\Hypertarget{classosgeo_1_1proj_1_1common_1_1Measure_a0a295dc3bb1d0e3ffc10d546c5f6c3f8}\label{classosgeo_1_1proj_1_1common_1_1Measure_a0a295dc3bb1d0e3ffc10d546c5f6c3f8}} 
\index{osgeo::proj::common::Measure@{osgeo::proj::common::Measure}!operator==@{operator==}}
\index{operator==@{operator==}!osgeo::proj::common::Measure@{osgeo::proj::common::Measure}}
\doxysubsubsection{\texorpdfstring{operator==()}{operator==()}}
{\footnotesize\ttfamily bool osgeo\+::proj\+::common\+::\+Measure\+::operator== (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{classosgeo_1_1proj_1_1common_1_1Measure}{Measure}} \&}]{other }\end{DoxyParamCaption})}



Return whether two measures are equal. 

The comparison is done both on the value and the unit. 

\doxysubsection{Member Data Documentation}
\mbox{\Hypertarget{classosgeo_1_1proj_1_1common_1_1Measure_af3f68a05dfac81d6461afb14a173433f}\label{classosgeo_1_1proj_1_1common_1_1Measure_af3f68a05dfac81d6461afb14a173433f}} 
\index{osgeo::proj::common::Measure@{osgeo::proj::common::Measure}!DEFAULT\_MAX\_REL\_ERROR@{DEFAULT\_MAX\_REL\_ERROR}}
\index{DEFAULT\_MAX\_REL\_ERROR@{DEFAULT\_MAX\_REL\_ERROR}!osgeo::proj::common::Measure@{osgeo::proj::common::Measure}}
\doxysubsubsection{\texorpdfstring{DEFAULT\_MAX\_REL\_ERROR}{DEFAULT\_MAX\_REL\_ERROR}}
{\footnotesize\ttfamily constexpr double osgeo\+::proj\+::common\+::\+Measure\+::\+DEFAULT\+\_\+\+MAX\+\_\+\+REL\+\_\+\+ERROR = 1e-\/10\hspace{0.3cm}{\ttfamily [static]}, {\ttfamily [constexpr]}}

Default maximum resulative error. 

The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
include/proj/common.\+hpp\item 
src/iso19111/common.\+cpp\end{DoxyCompactItemize}
