18 #ifndef ossimGpt_HEADER 19 #define ossimGpt_HEADER 1 81 void lonr(
double radianValue)
87 double latd()
const{
return lat;}
92 void latd(
double degreeValue){lat = degreeValue;}
97 double lond()
const{
return lon;}
102 void lond(
double degreeValue){lon = degreeValue; }
114 double heightMSL()
const;
128 void heightMSL(
double heightMSL);
173 void toPoint(
const std::string& s);
220 {
if (lon <= -180.0) lon += 360.0;
else if (lon > 180.0) lon -= 360.0; }
230 if(lon < low) lon = low;
231 if(lon > high) lon = high;
236 if(lat < low) lat = low;
237 if(lat > high) lat = high;
242 if(hgt < low) hgt = low;
243 if(hgt > high) hgt = high;
250 double distanceTo(
const ossimGpt& arg_gpt)
const;
258 double azimuthTo(
const ossimGpt& arg_gpt)
const;
312 }
while (
lon > 180.0 );
314 else if (
lon < -180.0 )
319 }
while (
lon < -180.0 );
328 }
while (
lat > 360.0);
339 else if (
lat < -90.0 )
346 }
while (
lat < -360.0);
352 else if (
lat < -90.0 )
void datum(const ossimDatum *aDatum)
Note: this will not do a shift.
const ossimGpt & operator=(const ossimGpt &aPt)
ossimGpt(const ossimDpt3d &aPt)
Argument aPt (x, y, z) is understood to represent (lon, lat, hgt) relative to WGS84 datum...
void lond(double degreeValue)
Assumes the passed in value is in degrees.
bool operator!=(const ossimRefPtr< _Tp1 > &__a, const ossimRefPtr< _Tp2 > &__b) noexcept
double lond() const
Will convert the radian measure to degrees.
const ossimDatum * theDatum
Know reference location plus an implied ellipsoid.
void latd(double degreeValue)
Assumes the passed in value is in degrees.
double nan()
Method to return ieee floating point double precision NAN.
void clampLon(double low, double high)
void clampHgt(double low, double high)
ossim_float64 hgt
Height in meters above the ellipsiod.
std::ostream & print(H5::H5File *file, std::ostream &out)
Print method.
double latd() const
Will convert the radian measure to degrees.
void wrap()
Wrap method to maintain longitude between -180 and +180 and latitude between -90 and +90...
void limitLonTo180()
METHOD: limitLonTo180() Converts the lon data member to a value between -180 and +180: ...
const ossimDatum * datum() const
datum().
ostream & operator<<(ostream &out, const ossimAxes &axes)
double lonr() const
Returns the longitude in radian measure.
unsigned int ossim_uint32
static ossimDatumFactory * instance()
void clampLat(double low, double high)
bool operator==(const ossimRefPtr< _Tp1 > &__a, const ossimRefPtr< _Tp2 > &__b) noexcept
void lonr(double radianValue)
Assumes the value being passed in is in radians.
std::basic_istream< char > istream
Base class for char input streams.
double latr() const
latr().
void latr(double radianValue)
Returns the latitude in radian measure.
ossimGpt(const double alat=0, const double alon=0, const double ahgt=0, const ossimDatum *aDatum=ossimDatumFactory::instance() ->wgs84())
Constructor.
void height(double height)
Sets the "hgt" data member to height.
const ossimDatum * wgs84() const
OSSIM_DLL void operator>>(ossimIStream &in, ossimOStream &out)
std::basic_ostream< char > ostream
Base class for char output streams.
bool isnan(const float &v)
isnan Test for floating point Not A Number (NAN) value.