26 static bool testInst =
false;
61 EpsgTableType::const_iterator iter =
theEpsgTable.find(epsg_code);
63 alphaCode = (*iter).second;
69 ellipsoid = iter->second;
73 <<
"\nDid not create ellipsoid for code: " << code << std::endl;
88 theEpsgTable.insert(std::make_pair(7001, std::string(
"AA")));
89 theEpsgTable.insert(std::make_pair(7002, std::string(
"AM")));
90 theEpsgTable.insert(std::make_pair(7003, std::string(
"AN")));
91 theEpsgTable.insert(std::make_pair(7004, std::string(
"BR")));
92 theEpsgTable.insert(std::make_pair(7006, std::string(
"BN")));
93 theEpsgTable.insert(std::make_pair(7008, std::string(
"CC")));
94 theEpsgTable.insert(std::make_pair(7012, std::string(
"CD")));
95 theEpsgTable.insert(std::make_pair(7011, std::string(
"CE")));
96 theEpsgTable.insert(std::make_pair(7015, std::string(
"EA")));
97 theEpsgTable.insert(std::make_pair(7016, std::string(
"EB")));
98 theEpsgTable.insert(std::make_pair(7044, std::string(
"EC")));
99 theEpsgTable.insert(std::make_pair(7056, std::string(
"ED")));
100 theEpsgTable.insert(std::make_pair(7018, std::string(
"EE")));
101 theEpsgTable.insert(std::make_pair(7019, std::string(
"RF")));
102 theEpsgTable.insert(std::make_pair(7020, std::string(
"HE")));
103 theEpsgTable.insert(std::make_pair(7053, std::string(
"HO")));
104 theEpsgTable.insert(std::make_pair(7021, std::string(
"ID")));
105 theEpsgTable.insert(std::make_pair(7022, std::string(
"IN")));
106 theEpsgTable.insert(std::make_pair(7024, std::string(
"KA")));
107 theEpsgTable.insert(std::make_pair(7003, std::string(
"SA")));
108 theEpsgTable.insert(std::make_pair(7043, std::string(
"WD")));
109 theEpsgTable.insert(std::make_pair(7030, std::string(
"WE")));
110 theEpsgTable.insert(std::make_pair(7059, std::string(
"PV")));
114 6377563.396, 6356256.9090, 7001)));
116 new ossimEllipsoid(std::string(
"Modified Airy"), std::string(
"AM"),
117 6377340.189, 6356034.448, 7002)));
119 new ossimEllipsoid(std::string(
"Australian National"), std::string(
"AN"),
120 6378160.000, 6356774.7190, 7003)));
123 6377397.155, 6356078.9630, 7004)));
125 new ossimEllipsoid(std::string(
"Bessel 1841(Namibia)"), std::string(
"BN"),
126 6377483.865, 6356165.3830, 7006)));
129 6378206.400, 6356583.8000, 7008)));
132 6378249.145, 6356514.8700, 7012)));
134 new ossimEllipsoid(std::string(
"Clarke 1880 (IGN)EPSG 7011"), std::string(
"CE"),
135 6378249.200, 6356515.0000, 7011)));
138 6377276.345, 6356075.4130, 7015)));
140 new ossimEllipsoid(std::string(
"Everest (E. Malasia, Brunei)"), std::string(
"EB"),
141 6377298.556, 6356097.55, 7016)));
143 new ossimEllipsoid(std::string(
"Everest 1956 (India)"), std::string(
"EC"),
144 6377301.243, 6356100.228, 7044)));
146 new ossimEllipsoid(std::string(
"Everest 1969 (West Malasia)"), std::string(
"ED"),
147 6377295.664, 6356094.668, 7056)));
149 new ossimEllipsoid(std::string(
"Everest 1948(W.Mals. & Sing.)"), std::string(
"EE"),
150 6377304.063, 6356103.039, 7018)));
154 new ossimEllipsoid(std::string(
"Everest (Pakistan)"), std::string(
"EF"),
155 6377309.613, 6356109.571, 0)));
157 new ossimEllipsoid(std::string(
"Mod. Fischer 1960(South Asia)"), std::string(
"FA"),
158 6378155.0, 6356773.32, 0)));
162 6378137.0, 6356752.3141, 7019)));
164 new ossimEllipsoid(std::string(
"Helmert 1906"), std::string(
"HE"),
165 6378200.0, 6356818.17, 7020)));
168 6378270.0, 6356794.3430, 7053)));
170 new ossimEllipsoid(std::string(
"Indonesian 1974"), std::string(
"ID"),
171 6378160.0, 6356774.504, 7021)));
173 new ossimEllipsoid(std::string(
"International 1924"), std::string(
"IN"),
174 6378388.0, 6356911.946, 7022)));
177 6378245.0, 6356863.0190, 7024)));
179 new ossimEllipsoid(std::string(
"South American 1969"),std::string(
"SA"),
180 6378160.0, 6356774.719, 7003)));
183 6378135.000, 6356750.5200, 7043)));
186 6378137.000, 6356752.3142, 7030)));
188 new ossimEllipsoid(std::string(
"Popular Visualization Sphere"), std::string(
"7059"),
189 6378137.000, 6378137.000, 7059)));
192 6378137.000, 6356752.3142, 7030);
194 6378135.000, 6356750.5200, 7043);
203 delete (*ellipsoid).second;
229 if (alpha_code.
empty())
232 EpsgTableType::const_iterator iter =
theEpsgTable.begin();
233 while ((iter !=
theEpsgTable.end()) && (epsg_code == 0))
235 if (iter->second == alpha_code.
string())
237 epsg_code = iter->first;
EpsgTableType theEpsgTable
static ossimEllipsoidFactory * instance()
ossimEllipsoid * theWgs72Ellipsoid
ossim_uint32 toUInt32() const
ossimEllipsoid * theWgs84Ellipsoid
virtual ~ossimEllipsoidFactory()
unsigned int ossim_uint32
const ossimEllipsoid * create(const ossimString &code) const
TableType theEllipsoidTable
ossim_uint32 findEpsgCode(const ossimString &alpha_code) const
Given an alpha code (for example "WE" for WGS84), returns the corresponding EPSG code or 0 if not fou...
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
const std::string & string() const