00001 using System;
00002 using System.Collections.Generic;
00003 using System.Linq;
00004 using System.Text;
00005
00006 namespace UtmConvert {
00007 public class Datum {
00008 string _name = "";
00009
00010 public string Name {
00011 get { return _name; }
00012 set { _name = value; }
00013 }
00014
00015
00016 double _equatorialRadius = 0;
00017
00018 public double EquatorialRadius {
00019 get { return _equatorialRadius; }
00020 set { _equatorialRadius = value; }
00021 }
00022
00023 public double a {
00024 get { return _equatorialRadius; }
00025 }
00026
00027
00028 double _polarRadius = 0;
00029
00030 public double PolarRadius {
00031 get { return _polarRadius; }
00032 set { _polarRadius = value; }
00033 }
00034
00035 public double b {
00036 get { return _polarRadius; }
00037 }
00038
00039
00040 double _flattening = 0;
00041
00042 public double Flattening {
00043 get { return _flattening; }
00044 set { _flattening = value; }
00045 }
00046
00047 string _use = "";
00048
00049 public string Use {
00050 get { return _use; }
00051 set { _use = value; }
00052 }
00053
00054 public Datum() {
00055 _name = "NAD83/WGS84";
00056 _equatorialRadius = 6378137.0;
00057 _polarRadius = 6356752.3142;
00058 _flattening = (_equatorialRadius - _polarRadius) / _equatorialRadius;
00059 _use = "Global";
00060 }
00061
00062 public Datum(string name, double equatorialRadius
00063 , double polarRadius, double flattening, string use) {
00064 _name = name;
00065 _equatorialRadius = equatorialRadius;
00066 _polarRadius = polarRadius;
00067 _flattening = flattening;
00068 _use = use;
00069 }
00070 }
00071 }