PROJ C++ API
Public Member Functions | List of all members
osgeo::proj::common::Scale Class Reference

Numeric value, without a physical unit of measure. More...

#include <common.hpp>

Inheritance diagram for osgeo::proj::common::Scale:
Inheritance graph
[legend]
Collaboration diagram for osgeo::proj::common::Scale:
Collaboration graph
[legend]

Public Member Functions

 Scale (double valueIn=0.0)
 Instanciate a Scale. More...
 
 Scale (double valueIn, const UnitOfMeasure &unitIn)
 Instanciate a Scale. More...
 
- Public Member Functions inherited from osgeo::proj::common::Measure
 Measure (double valueIn=0.0, const UnitOfMeasure &unitIn=UnitOfMeasure())
 Instanciate a Measure.
 
const UnitOfMeasureunit () PROJ_CONST_DECL
 Return the unit of the Measure.
 
double getSIValue () PROJ_CONST_DECL
 Return the value of the Measure, after conversion to the corresponding unit of the International System.
 
double value () PROJ_CONST_DECL
 Return the value of the measure, expressed in the unit()
 
double convertToUnit (const UnitOfMeasure &otherUnit) PROJ_CONST_DECL
 Return the value of this measure expressed into the provided unit.
 
bool operator== (const Measure &other) PROJ_CONST_DECL
 Return whether two measures are equal. More...
 
bool isEquivalentTo (const Measure &other, util::IComparable::Criterion criterion=util::IComparable::Criterion::STRICT) const
 Returns whether an object is equivalent to another one. More...
 

Detailed Description

Numeric value, without a physical unit of measure.

Constructor & Destructor Documentation

osgeo::proj::common::Scale::Scale ( double  valueIn = 0.0)
explicit

Instanciate a Scale.

Parameters
valueInvalue
osgeo::proj::common::Scale::Scale ( double  valueIn,
const UnitOfMeasure unitIn 
)
explicit

Instanciate a Scale.

Parameters
valueInvalue
unitInunit. Constraint: unit.type() == UnitOfMeasure::Type::SCALE

The documentation for this class was generated from the following files: