Go to the documentation of this file.
21 const char BADALLOC[] =
"Failed to allocate memory for a GeographicLib::PolygonArea";
26 if ( m_pPolygonArea !=
NULL )
28 delete m_pPolygonArea;
29 m_pPolygonArea =
NULL;
41 m_pPolygonArea =
new GeographicLib::PolygonArea( *pGeodesic, polyline );
43 catch (std::bad_alloc)
57 catch (std::bad_alloc)
80 [System::Runtime::InteropServices::Out]
double% perimeter,
81 [System::Runtime::InteropServices::Out]
double% area)
83 double lperimeter, larea;
85 perimeter = lperimeter;
92 [System::Runtime::InteropServices::Out]
double% perimeter,
93 [System::Runtime::InteropServices::Out]
double% area)
95 double lperimeter, larea;
97 perimeter = lperimeter;
104 [System::Runtime::InteropServices::Out]
double% perimeter,
105 [System::Runtime::InteropServices::Out]
double% area)
107 double lperimeter, larea;
109 perimeter = lperimeter;
116 [System::Runtime::InteropServices::Out]
double%
lat,
117 [System::Runtime::InteropServices::Out]
double%
lon)
127 {
return m_pPolygonArea->MajorRadius(); }
137 if ( m_pPolygonArea !=
NULL )
139 delete m_pPolygonArea;
140 m_pPolygonArea =
NULL;
152 m_pPolygonArea =
new GeographicLib::PolygonAreaExact( *pGeodesic, polyline );
154 catch (std::bad_alloc)
168 catch (std::bad_alloc)
191 [System::Runtime::InteropServices::Out]
double% perimeter,
192 [System::Runtime::InteropServices::Out]
double% area)
194 double lperimeter, larea;
196 perimeter = lperimeter;
203 [System::Runtime::InteropServices::Out]
double% perimeter,
204 [System::Runtime::InteropServices::Out]
double% area)
206 double lperimeter, larea;
208 perimeter = lperimeter;
215 [System::Runtime::InteropServices::Out]
double% perimeter,
216 [System::Runtime::InteropServices::Out]
double% area)
218 double lperimeter, larea;
220 perimeter = lperimeter;
227 [System::Runtime::InteropServices::Out]
double%
lat,
228 [System::Runtime::InteropServices::Out]
double%
lon)
238 {
return m_pPolygonArea->MajorRadius(); }
242 {
return m_pPolygonArea->Flattening(); }
249 if ( m_pPolygonArea !=
NULL )
251 delete m_pPolygonArea;
252 m_pPolygonArea =
NULL;
264 m_pPolygonArea =
new GeographicLib::PolygonAreaRhumb( *pGeodesic, polyline );
266 catch (std::bad_alloc)
280 catch (std::bad_alloc)
303 [System::Runtime::InteropServices::Out]
double% perimeter,
304 [System::Runtime::InteropServices::Out]
double% area)
306 double lperimeter, larea;
308 perimeter = lperimeter;
315 [System::Runtime::InteropServices::Out]
double% perimeter,
316 [System::Runtime::InteropServices::Out]
double% area)
318 double lperimeter, larea;
320 perimeter = lperimeter;
327 [System::Runtime::InteropServices::Out]
double% perimeter,
328 [System::Runtime::InteropServices::Out]
double% area)
330 double lperimeter, larea;
332 perimeter = lperimeter;
339 [System::Runtime::InteropServices::Out]
double%
lat,
340 [System::Runtime::InteropServices::Out]
double%
lon)
350 {
return m_pPolygonArea->MajorRadius(); }
354 {
return m_pPolygonArea->Flattening(); }
unsigned Compute(bool reverse, bool sign, [System::Runtime::InteropServices::Out] double% perimeter, [System::Runtime::InteropServices::Out] double% area)
void AddEdge(double azi, double s)
void CurrentPoint([System::Runtime::InteropServices::Out] double% lat, [System::Runtime::InteropServices::Out] double% lon)
System::IntPtr GetUnmanaged()
Exact geodesic calculations.
Header for NETGeographicLib::Geodesic class.
System::IntPtr GetUnmanaged()
static const Geodesic & WGS84()
Solve of the direct and inverse rhumb problems.
const EIGEN_DEVICE_FUNC SignReturnType sign() const
void CurrentPoint([System::Runtime::InteropServices::Out] double% lat, [System::Runtime::InteropServices::Out] double% lon)
unsigned TestPoint(double lat, double lon, bool reverse, bool sign, [System::Runtime::InteropServices::Out] double% perimeter, [System::Runtime::InteropServices::Out] double% area)
void CurrentPoint([System::Runtime::InteropServices::Out] double% lat, [System::Runtime::InteropServices::Out] double% lon)
unsigned TestEdge(double azi, double s, bool reverse, bool sign, [System::Runtime::InteropServices::Out] double% perimeter, [System::Runtime::InteropServices::Out] double% area)
Exception class for NETGeographicLib.
PolygonAreaRhumb(Rhumb^ earth, bool polyline)
PolygonAreaExact(GeodesicExact^ earth, bool polyline)
unsigned TestPoint(double lat, double lon, bool reverse, bool sign, [System::Runtime::InteropServices::Out] double% perimeter, [System::Runtime::InteropServices::Out] double% area)
GeographicLib::PolygonArea * m_pPolygonArea
Header for NETGeographicLib::PolygonArea class.
void AddPoint(double lat, double lon)
.NET wrapper for GeographicLib::PolygonArea and PolygonAreaExact.
GeographicLib::PolygonAreaRhumb * m_pPolygonArea
.NET wrapper for GeographicLib::Geodesic.
.NET wrapper for GeographicLib::GeodesicExact.
unsigned Compute(bool reverse, bool sign, [System::Runtime::InteropServices::Out] double% perimeter, [System::Runtime::InteropServices::Out] double% area)
Header for GeographicLib::PolygonAreaT class.
static const GeodesicExact & WGS84()
void AddPoint(double lat, double lon)
PolygonArea(Geodesic^ earth, bool polyline)
GeographicLib::PolygonAreaExact * m_pPolygonArea
unsigned TestEdge(double azi, double s, bool reverse, bool sign, [System::Runtime::InteropServices::Out] double% perimeter, [System::Runtime::InteropServices::Out] double% area)
Header for NETGeographicLib::NETGeographicLib objects.
std::ofstream out("Result.txt")
void AddEdge(double azi, double s)
.NET wrapper for GeographicLib::Rhumb.
Header for NETGeographicLib::Rhumb and NETGeographicLib::RhumbLine classes.
void AddEdge(double azi, double s)
static const Rhumb & WGS84()
unsigned TestPoint(double lat, double lon, bool reverse, bool sign, [System::Runtime::InteropServices::Out] double% perimeter, [System::Runtime::InteropServices::Out] double% area)
void reverse(const MatrixType &m)
void AddPoint(double lat, double lon)
Container::iterator get(Container &c, Position position)
unsigned TestEdge(double azi, double s, bool reverse, bool sign, [System::Runtime::InteropServices::Out] double% perimeter, [System::Runtime::InteropServices::Out] double% area)
Header for NETGeographicLib::GeodesicExact class.
unsigned Compute(bool reverse, bool sign, [System::Runtime::InteropServices::Out] double% perimeter, [System::Runtime::InteropServices::Out] double% area)
System::IntPtr GetUnmanaged()
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:03:36