CoordSys 对象包含关于 X 和 Y 坐标如何与其在 Earth 上的位置相关联的基本信息。 每个 Geometry 或 Map 对象都有一个关联的坐标系。 CoordSys 对象包含对坐标系的详细说明。 CoordSysFactory 类提供了各种用于创建不同 CoordSys 对象的方法。 所有 CoordSys 对象都是只读的,无法修改。
设定坐标系
CoordSysFactory cf = new CoordSysFactory();
//世界坐标系
Datum datum = cf.CreateDatum(DatumID.WGS84);
CoordSys csysWGS84 = cf.CreateCoordSys(CoordSysType.LongLat, datum, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, null);
//日本坐标系
datum = cf.CreateDatum(DatumID.JGD2000);
CoordSys csysJGD2000 = cf.CreateCoordSys(CoordSysType.LongLat, datum, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, null);
以下是MapXtreme包括的所有自定义坐标系
1 namespace MapInfo.Geometry 2 { 3 public enum DatumID 4 { 5 Ignore = 0, 6 Adindan = 1, 7 Afgooye = 2, 8 AinelAbd1970 = 3, 9 Anna1Astro1965 = 4, 10 Arc1950 = 5, 11 Arc1960 = 6, 12 AscensionIsland1958 = 7, 13 AstroBeaconE = 8, 14 AstroB4SorolAtoll = 9, 15 AstroDOS714 = 10, 16 AstronomicStation1952 = 11, 17 AustralianGeodetic1966 = 12, 18 AustralianGeodetic1984 = 13, 19 BellevueIgn = 14, 20 Bermuda1957 = 15, 21 BogotaObservatory = 16, 22 CampoInchauspe = 17, 23 CantonAstro1966 = 18, 24 Cape = 19, 25 CapeCanaveral = 20, 26 Carthage = 21, 27 Chatham1971 = 22, 28 ChuaAstro = 23, 29 CorregoAlegre = 24, 30 DjakartaBatavia = 25, 31 DOS1968 = 26, 32 EasterIsland1967 = 27, 33 European1950 = 28, 34 European1979 = 29, 35 GandajikaBase = 30, 36 NewZealandGeodetic1949 = 31, 37 GRS67 = 32, 38 GRS80 = 33, 39 Guam1963 = 34, 40 GUX1Astro = 35, 41 Hito = 36, 42 Hjorsey1955 = 37, 43 HongKong1963 = 38, 44 HUTzuShan = 39, 45 IndianThailandVietnam = 40, 46 IndianBangladesh = 41, 47 Ireland1965 = 42, 48 Ists073Astro1969 = 43, 49 JohnstonIsland1961 = 44, 50 Kandawala = 45, 51 KerguelenIsland = 46, 52 Kertau1948 = 47, 53 LC5Astro = 48, 54 Liberia1964 = 49, 55 LuzonPhilippines = 50, 56 LuzonMindanaoIsland = 51, 57 Mahe1971 = 52, 58 MarcoAstro = 53, 59 Massawa = 54, 60 Merchich = 55, 61 MidwayAstro1961 = 56, 62 Minna = 57, 63 NahrwanMasirahIsland = 58, 64 NahrwanUnitedArabEmirates = 59, 65 NahrwanSaudiArabia = 60, 66 NaparimaBwi = 61, 67 NAD27ContinentalUS = 62, 68 NAD27Alaska = 63, 69 NAD27Bahamas = 64, 70 NAD27SanSalvador = 65, 71 NAD27Canada = 66, 72 NAD27CanalZone = 67, 73 NAD27Caribbean = 68, 74 NAD27CentralAmerica = 69, 75 NAD27Cuba = 70, 76 NAD27Greenland = 71, 77 NAD27Mexico = 72, 78 NAD27Michigan = 73, 79 NAD83 = 74, 80 Observatorio1966 = 75, 81 OldEgyptian = 76, 82 OldHawaiian = 77, 83 Oman = 78, 84 OrdnanceSurveyGreatBritain = 79, 85 PicodelasNieves = 80, 86 PitcairnAstro1967 = 81, 87 ProvisionalSouthAmerican = 82, 88 PuertoRico = 83, 89 QatarNational = 84, 90 Qornoq = 85, 91 Reunion = 86, 92 Rome1940 = 87, 93 SantoDos = 88, 94 SaoBraz = 89, 95 SapperHill1943 = 90, 96 Schwarzeck = 91, 97 SouthAmerican1969 = 92, 98 SouthAsia = 93, 99 SoutheastBase = 94, 100 SouthwestBase = 95, 101 Timbalai1948 = 96, 102 OldTokyo = 97, 103 TristanAstro1968 = 98, 104 VitiLevu1916 = 99, 105 WakeEniwetok1960 = 100, 106 WGS60 = 101, 107 WGS66 = 102, 108 WGS72 = 103, 109 WGS84 = 104, 110 Yacare = 105, 111 Zanderij = 106, 112 NtfGreenwichMeridian = 107, 113 European1987 = 108, 114 Netherlands = 109, 115 Belgium = 110, 116 Nwgl10 = 111, 117 RT90Sweden = 112, 118 LisboaDlx = 113, 119 Melrica1973D73 = 114, 120 Euref89 = 115, 121 GDA94 = 116, 122 Nzgd2000 = 117, 123 AmericanSamoa = 118, 124 AntiguaIslandAstro1943 = 119, 125 AyabelleLighthouse = 120, 126 BukitRimpah = 121, 127 Estonia1937 = 122, 128 Dabola = 123, 129 DeceptionIsland = 124, 130 FortThomas1955 = 125, 131 GraciosaBaseSW1948 = 126, 132 HeratNorth = 127, 133 Hermannskogel = 128, 134 IndianPakistan = 129, 135 Indian1954 = 130, 136 Indian1960 = 131, 137 Indian1975 = 132, 138 Indonesian1974 = 133, 139 Ists061Astro1968 = 134, 140 KusaieAstro1951 = 135, 141 Leigon = 136, 142 MontserratIslandAstro1958 = 137, 143 MPoraloko = 138, 144 NorthSahara1959 = 139, 145 ObservatorioMeteor1939 = 140, 146 Point58 = 141, 147 PointeNoire1948 = 142, 148 PortoSanto1936 = 143, 149 SelvagemGrande1938 = 144, 150 SierraLeone1960 = 145, 151 SJtsk = 146, 152 TananariveObservatory1925 = 147, 153 Voirol1874 = 148, 154 Voirol1960 = 149, 155 Hartbeesthoek94 = 150, 156 ATS77 = 151, 157 JGD2000 = 152, 158 HGRS87 = 153, 159 Beijing1954 = 154, 160 DeutschesHauptdreiecksnetz = 1000, 161 Pulkovo1942 = 1001, 162 NtfParisMeridian = 1002, 163 SwitzerlandCH1903 = 1003, 164 HD72 = 1004, 165 Cape7Parameter = 1005, 166 AustraliaNationalAGD84 = 1006, 167 AustraliaActAGD66 = 1007, 168 AustraliaTasmaniaAGD66 = 1008, 169 AustraliaVictoriaNswAGD66 = 1009, 170 NewZealandGeodetic1949Parameter7 = 1010, 171 RT90Sweden7Parameter = 1011, 172 RussiaPZ90 = 1012, 173 RussiaSK42 = 1013, 174 RussiaSK95 = 1014, 175 Tokyo = 1015, 176 KKJ = 1016, 177 Xian1980 = 1017, 178 LithuanianPulkovo1942 = 1018, 179 Belgian1972Parameter7 = 1019, 180 } 181 }