OpendTect  6.6
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
LatLong Class Reference

Geographical coordinates in Decimal Degrees but with conv to deg, min, sec. More...

Public Member Functions

 LatLong (const Coord &c)
 
 LatLong (const LatLong &ll)
 
 LatLong (double la=0, double lo=0)
 
bool fromString (const char *)
 
void getDMS (bool lat, int &, int &, float &) const
 
bool isDefined () const
 
 operator Coord () const
 
bool operator== (const LatLong &) const
 
void setDMS (bool lat, int, int, float)
 
bool setFromString (const char *, bool lat)
 
const char * toString () const
 

Static Public Member Functions

static bool isDMSString (const BufferString &)
 
static LatLong transform (const Coord &, bool towgs84=false, const Coords::CoordSystem *si=0)
 
static Coord transform (const LatLong &, bool towgs84=false, const Coords::CoordSystem *si=0)
 
static LatLong udf ()
 

Public Attributes

double lat_
 
double lng_
 

Protected Member Functions

bool parseDMSString (const BufferString &, bool lat)
 

Detailed Description

Geographical coordinates in Decimal Degrees but with conv to deg, min, sec.

<>

Constructor & Destructor Documentation

◆ LatLong() [1/3]

LatLong::LatLong ( double  la = 0,
double  lo = 0 
)
inline

◆ LatLong() [2/3]

LatLong::LatLong ( const LatLong ll)
inline

◆ LatLong() [3/3]

LatLong::LatLong ( const Coord c)
inline

Member Function Documentation

◆ fromString()

bool LatLong::fromString ( const char *  )

◆ getDMS()

void LatLong::getDMS ( bool  lat,
int &  ,
int &  ,
float &   
) const

◆ isDefined()

bool LatLong::isDefined ( ) const
inline

◆ isDMSString()

static bool LatLong::isDMSString ( const BufferString )
static

◆ operator Coord()

LatLong::operator Coord ( ) const
inline

◆ operator==()

bool LatLong::operator== ( const LatLong ) const

◆ parseDMSString()

bool LatLong::parseDMSString ( const BufferString ,
bool  lat 
)
protected

◆ setDMS()

void LatLong::setDMS ( bool  lat,
int  ,
int  ,
float   
)

◆ setFromString()

bool LatLong::setFromString ( const char *  ,
bool  lat 
)

◆ toString()

const char* LatLong::toString ( ) const

◆ transform() [1/2]

static LatLong LatLong::transform ( const Coord ,
bool  towgs84 = false,
const Coords::CoordSystem si = 0 
)
static

◆ transform() [2/2]

static Coord LatLong::transform ( const LatLong ,
bool  towgs84 = false,
const Coords::CoordSystem si = 0 
)
static

◆ udf()

static LatLong LatLong::udf ( )
inlinestatic

Member Data Documentation

◆ lat_

double LatLong::lat_

◆ lng_

double LatLong::lng_

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022