World Ocean Simulation System (WOSS) library
woss::UtmWgs84 Class Reference
Collaboration diagram for woss::UtmWgs84:
Collaboration graph

Public Member Functions

 UtmWgs84 (int utmZone=COORD_NOT_SET_VALUE, double east=COORD_NOT_SET_VALUE, double north=COORD_NOT_SET_VALUE)
 
int getZone () const
 
double getEasting () const
 
double getNorthing () const
 
bool isValid () const
 
friend::std::ostream & operator<< (::std::ostream &os, const UtmWgs84 &instance)
 

Static Public Member Functions

static const UtmWgs84 getUtmWgs84FromCoord (const Coord &coords)
 

Protected Attributes

int zone
 
double easting
 
double northing
 

Constructor & Destructor Documentation

◆ UtmWgs84()

UtmWgs84::UtmWgs84 ( int  utmZone = COORD_NOT_SET_VALUE,
double  east = COORD_NOT_SET_VALUE,
double  north = COORD_NOT_SET_VALUE 
)

UtmWgs84 constructor.

Parameters
utmZonezone number
eastEasting value
northNorthing value

Member Function Documentation

◆ getUtmWgs84FromCoord()

const UtmWgs84 UtmWgs84::getUtmWgs84FromCoord ( const Coord coords)
static

Gets destination easting and northing in UTM - WGS84 coordinates from a given Coord

Parameters
coordsreference to a valid Coord object
Returns
UTM - WGS84 coordinates

References woss::Coord::EARTH_SEMIMAJOR_AXIS, woss::Coord::getLatitude(), and woss::Coord::getLongitude().

Referenced by woss::BathyUtmCsvDb::getBathyIndex().

Here is the call graph for this function:

◆ operator<<()

friend::std::ostream & woss::UtmWgs84::operator<< ( ::std::ostream &  os,
const UtmWgs84 instance 
)

<< operator

Parameters
osleft operand ostream reference
instanceright operand const CoordZ reference
Returns
os reference after the operation

Member Data Documentation

◆ easting

double woss::UtmWgs84::easting
protected

Zone number

◆ northing

double woss::UtmWgs84::northing
protected

Easting value


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