OpendTect 8.0
Loading...
Searching...
No Matches
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...

#include <latlong.h>

Public Member Functions

 LatLong ()
 
 LatLong (const Coord &c)
 
 LatLong (const LatLong &)
 
 LatLong (double la, double lo)
 
 ~LatLong ()
 
Coord asCoord () const
 
bool fromString (const char *)
 
void getDMS (bool lat, int &, int &, float &) const
 
bool isDefined () const
 
bool isNull () const
 
bool isUdf () const
 
double latitude () const
 
double longitude () const
 
bool operator!= (const LatLong &) const
 
LatLongoperator= (const LatLong &)
 
bool operator== (const LatLong &) const
 
void set (double lat, double lng)
 
void setDMS (bool lat, int, int, float)
 
void setFromCoord (const Coord &)
 
bool setFromString (const char *, bool lat)
 
void setLatitude (double lat)
 
void setLongitude (double lng)
 
void setUdf ()
 
const char * toString () const
 

Static Public Member Functions

static LatLong fromCoord (const Coord &)
 
static bool isDMSString (const BufferString &)
 
static Coord toCoord (const LatLong &)
 
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/4]

LatLong::LatLong ( )

◆ LatLong() [2/4]

LatLong::LatLong ( double la,
double lo )

◆ LatLong() [3/4]

LatLong::LatLong ( const LatLong & )

◆ ~LatLong()

LatLong::~LatLong ( )

◆ LatLong() [4/4]

LatLong::LatLong ( const Coord & c)
inlineexplicit

Member Function Documentation

◆ asCoord()

Coord LatLong::asCoord ( ) const

Returned Coord has x=Latitude, y=Longitude as stipulated by the ISO 6709 standard.

◆ 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

◆ latitude()

double LatLong::latitude ( ) const
inline

◆ longitude()

double LatLong::longitude ( ) const
inline

◆ operator!=()

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

◆ operator=()

LatLong & LatLong::operator= ( const LatLong & )

◆ operator==()

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

◆ parseDMSString()

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

◆ set()

void LatLong::set ( double lat,
double lng )
inline

◆ setDMS()

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

◆ setFromCoord()

void LatLong::setFromCoord ( const Coord & )

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

◆ setFromString()

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

◆ setLatitude()

void LatLong::setLatitude ( double lat)
inline

◆ setLongitude()

void LatLong::setLongitude ( double lng)
inline

◆ setUdf()

void LatLong::setUdf ( )
inline

◆ toCoord()

static Coord LatLong::toCoord ( const LatLong & )
static

Returned Coord has x=Latitude, y=Longitude as stipulated by the ISO 6709 standard.

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