UNCLASSIFIED

GeographicTranslator
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
ErrorMessages.cpp
Go to the documentation of this file.
1 // CLASSIFICATION: UNCLASSIFIED
2 #include "ErrorMessages.h"
3 
4 using namespace MSP::CCS;
5 
6 const char* ErrorMessages::geoidFileOpenError = "Unable to locate geoid data file\n";
7 const char* ErrorMessages::geoidFileParseError = "Unable to read geoid file\n";
8 
9 const char* ErrorMessages::ellipsoidFileOpenError = "Unable to locate ellipsoid data file: ellips.dat\n";
10 const char* ErrorMessages::ellipsoidFileCloseError = "Unable to close ellipsoid file: ellips.dat\n";
11 const char* ErrorMessages::ellipsoidFileParseError = "Unable to read ellipsoid file: ellips.dat\n";
12 const char* ErrorMessages::ellipse = "Ellipsoid library not initialized\n";
13 const char* ErrorMessages::invalidEllipsoidCode = "Invalid ellipsoid code\n";
14 
15 const char* ErrorMessages::datumFileOpenError = "Unable to locate datum data file\n";
16 const char* ErrorMessages::datumFileCloseError = "Unable to close datum file\n";
17 const char* ErrorMessages::datumFileParseError = "Unable to read datum file\n";
18 const char* ErrorMessages::datumDomain = "Invalid local datum domain of validity\n";
19 const char* ErrorMessages::datumRotation = "Rotation values must be between -60.0 and 60.0";
20 const char* ErrorMessages::datumSigma = "Standard error values must be positive, or -1 if unknown\n";
21 const char* ErrorMessages::datumType = "Invalid datum type\n";
22 const char* ErrorMessages::invalidDatumCode = "Invalid datum code\n";
23 
24 const char* ErrorMessages::notUserDefined = "Specified code not user defined\n";
25 const char* ErrorMessages::ellipseInUse = "Ellipsoid is in use by a datum\n";
26 
27 // Parameter error messages
28 const char* ErrorMessages::semiMajorAxis = "Ellipsoid semi-major axis must be greater than zero\n";
29 const char* ErrorMessages::ellipsoidFlattening = "Inverse flattening must be between 250 and 350\n";
30 const char* ErrorMessages::orientation = "Orientation out of range\n";
31 const char* ErrorMessages::originLatitude = "Origin Latitude (or Standard Parallel or Latitude of True Scale) out of range\n";
32 const char* ErrorMessages::originLongitude = "Origin Longitude (or Longitude Down from Pole) out of range\n";
33 const char* ErrorMessages::centralMeridian = "Central Meridian out of range\n";
34 const char* ErrorMessages::scaleFactor = "Scale Factor out of range\n";
35 const char* ErrorMessages::zone = "Invalid Zone\n";
36 const char* ErrorMessages::zoneOverride = "Invalid Zone Override\n";
37 const char* ErrorMessages::standardParallel1 = "Invalid 1st Standard Parallel\n";
38 const char* ErrorMessages::standardParallel2 = "Invalid 2nd Standard Parallel\n";
39 const char* ErrorMessages::standardParallel1_2 = "1st & 2nd Standard Parallels cannot both be zero\n";
40 const char* ErrorMessages::standardParallelHemisphere = "Standard Parallels cannot be equal and opposite latitudes\n";
41 const char* ErrorMessages::precision = "Precision must be between 0 and 5\n";
42 const char* ErrorMessages::bngEllipsoid = "British National Grid ellipsoid must be Airy\n";
43 const char* ErrorMessages::nzmgEllipsoid = "New Zealand Map Grid ellipsoid must be International\n";
44 const char* ErrorMessages::webmEllipsoid = "Web Mercator ellipsoid must be WGS84\n";
45 const char* ErrorMessages::webmConversionTo = "GeoTrans does not allow conversion to Web Mercator\n";
46 const char* ErrorMessages::webmInvalidTargetCS = "Web Mercator can only be converted to Geodetic.\n";
47 const char* ErrorMessages::latitude1 = "Latitude 1 out of range\n";
48 const char* ErrorMessages::latitude2 = "Latitude 2 out of range\n";
49 const char* ErrorMessages::latitude1_2 = "Latitude 1 and Latitude 2 cannot be equal\n";
50 const char* ErrorMessages::longitude1 = "Longitude 1 out of range\n";
51 const char* ErrorMessages::longitude2 = "Longitude 2 out of range\n";
52 const char* ErrorMessages::omercHemisphere = "Point 1 and Point 2 cannot be in different hemispheres\n";
53 const char* ErrorMessages::hemisphere = "Invalid Hemisphere\n";
54 const char* ErrorMessages::radius = "Easting/Northing too far from center of projection\n";
55 
56 
57 // Coordinate error messages
58 const char* ErrorMessages::latitude = "Latitude out of range\n";
59 const char* ErrorMessages::longitude = "Longitude out of range\n";
60 const char* ErrorMessages::easting = "Easting/X out of range\n";
61 const char* ErrorMessages::northing = "Northing/Y out of range\n";
62 const char* ErrorMessages::projection = "Point projects into a circle\n";
63 const char* ErrorMessages::invalidArea = "Coordinates are outside valid area\n";
64 const char* ErrorMessages::bngString = "Invalid British National Grid String\n";
65 const char* ErrorMessages::garsString = "Invalid GARS String\n";
66 const char* ErrorMessages::georefString = "Invalid GEOREF String\n";
67 const char* ErrorMessages::mgrsString = "Invalid MGRS String\n";
68 const char* ErrorMessages::usngString = "Invalid USNG String\n";
69 
70 const char* ErrorMessages::invalidIndex = "Index value outside of valid range\n";
71 const char* ErrorMessages::invalidName = "Invalid name\n";
72 const char* ErrorMessages::invalidType = "Invalid coordinate system type\n";
73 
74 const char* ErrorMessages::longitude_min = "The longitude minute part of the string is greater than 60\n";
75 const char* ErrorMessages::latitude_min = "The latitude minute part of the string is greater than 60\n";
76 
77 // CLASSIFICATION: UNCLASSIFIED