21 if ( m_pGeoid !=
NULL )
30 bool cubic,
bool threadsafe)
32 if ( name ==
nullptr )
throw gcnew GeographicErr(
"name cannot be a null pointer.");
33 if ( path ==
nullptr )
throw gcnew GeographicErr(
"path cannot be a null pointer.");
41 catch ( std::bad_alloc )
43 throw gcnew GeographicErr(
"Failed to allocate memory for a GeographicLib::Geoid" );
57 catch (
const std::exception& err )
70 catch (
const std::exception& err )
89 catch (
const std::exception& err )
102 static_cast<GeographicLib::Geoid::convertflag>(d) );
104 catch (
const std::exception& err )
118 catch (
const std::exception& err )
132 catch (
const std::exception& err )
const std::string & GeoidDirectory() const
Header for NETGeographicLib::NETGeographicLib objects.
double ConvertHeight(double lat, double lon, double h, ConvertFlag d)
Math::real MaxError() const
Exception class for NETGeographicLib.
Math::real CacheWest() const
Math::real CacheNorth() const
static System::String DefaultGeoidName()
static std::string ManagedToUnmanaged(System::String^s)
const std::string & DateTime() const
Header for NETGeographicLib::Geoid class.
Math::real MajorRadius() const
static std::string DefaultGeoidPath()
const std::string & GeoidFile() const
void CacheArea(real south, real west, real north, real east) const
Math::real ConvertHeight(real lat, real lon, real h, convertflag d) const
static System::String UnmanagedToManaged(const std::string &s)
const std::string Interpolation() const
Math::real Offset() const
Math::real RMSError() const
double Height(double lat, double lon)
static System::String DefaultGeoidPath()
Math::real Flattening() const
Exception handling for GeographicLib.
Geoid(System::String^name, System::String^path, bool cubic, bool threadsafe)
static std::string DefaultGeoidName()
const GeographicLib::Geoid * m_pGeoid
Math::real CacheSouth() const
Math::real CacheEast() const
const std::string & Description() const
Annotation for function names.
const std::string & GeoidName() const
Container::iterator get(Container &c, Position position)
Header for GeographicLib::Geoid class.
void CacheArea(double south, double west, double north, double east)
Looking up the height of the geoid above the ellipsoid.
.NET wrapper for GeographicLib::Geoid.