OpendTect  7.0
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
 
bool isNull () const
 
bool isUdf () const
 
bool operator!= (const LatLong &) const
 
bool operator== (const LatLong &) const
 
void setDMS (bool lat, int, int, float)
 
void setFromCoord (const Coord &)
 
bool setFromString (const char *, bool lat)
 
const char * toString () const
 

Static Public Member Functions

static LatLong fromCoord (const Coord &)
 
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)
inlineexplicit

Member Function Documentation

◆ fromCoord()

static LatLong LatLong::fromCoord ( const Coord )
static

Coord should have x=Latitude, y=Longitude as stipulated by the ISO 6709 standard.

◆ 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

◆ isNull()

bool LatLong::isNull ( ) const
inline

◆ isUdf()

bool LatLong::isUdf ( ) const
inline

◆ operator!=()

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

◆ 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   
)

◆ setFromCoord()

void LatLong::setFromCoord ( const Coord )

◆ 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-2024