00001
00006
00007
00008 struct DATUM
00009 {
00010 char *name;
00011 short ellipsoid;
00012 short dx;
00013 short dy;
00014 short dz;
00015 };
00016
00017 struct ELLIPSOID
00018 {
00019 char *name;
00020 double a;
00021 double invf;
00022 };
00023
00024
00025 #define nDatums 107
00026 #define WGS84Index 105
00027
00028 extern struct DATUM const gDatum[];
00029 extern struct ELLIPSOID const gEllipsoid[];
00030
00031 #define FromWGS84 1
00032 #define ToWGS84 0
00033
00034 #include "sections.h"
00035 void translate (short fromWGS84, double *latitude, double *longitude, short datumID) LL_SECTION;