orca-robotics INTRODUCTION Overview Download and Install Documentation REPOSITORY Interfaces Drivers Libraries Utilities Software Map DEVELOPER Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
latlon2mga.h00001 /* 00002 * Orca-Robotics Project: Components for robotics 00003 * http://orca-robotics.sf.net/ 00004 * Copyright (c) 2004-2008 Matthew Ridley 00005 * 00006 * This copy of Orca is licensed to you under the terms described in 00007 * the LICENSE file included in this distribution. 00008 * 00009 */ 00010 00011 #include <hydroportability/sharedlib.h> 00012 00013 #ifndef LATLON2MGA_H 00014 #define LATLON2MGA_H 00015 00016 namespace hydrogpsutil{ 00017 00019 SOEXPORT enum EGeodModel { GM_UNDEFINED=-1, 00020 GM_WGS84 =0, 00021 GM_GDA94, 00022 GM_WGS72, 00023 GM_AGD84, 00024 GM_NSWC_9Z2, 00025 GM_Clarke, 00026 GM_NoOptions, 00027 GM_GRS80=GM_GDA94, 00028 GM_ANS=GM_AGD84 }; 00029 00031 SOEXPORT typedef struct { 00032 double a; // Semi major axis (m) 00033 double b; // Semi minor axis (m) 00034 double f; // flatening 00035 double e; // Eccentricity 00036 double e2; // Eccentricity^2 00037 double A0, A2, A4, A6; // Meridian Distance calculation parameters 00038 } TGeoModelData; 00039 00041 SOEXPORT void LatLon2MGA( double lat, 00042 double lon, 00043 double& Northing, 00044 double& Easting, 00045 int& Zone, 00046 EGeodModel geodmodel = GM_WGS84); 00047 00049 SOEXPORT void MGA2LatLon( double Northing, 00050 double Easting, 00051 int Zone, 00052 double& lat, 00053 double& lon, 00054 EGeodModel geodmodel = GM_WGS84); 00055 00056 } //namespace 00057 00058 #endif |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)