58 PolarStereographic::PolarStereographic(
Pvl &label,
bool allowDefaults) :
66 if ((allowDefaults) && (!mapGroup.
hasKeyword(
"CenterLongitude"))) {
73 if ((allowDefaults) && (!mapGroup.
hasKeyword(
"CenterLatitude"))) {
93 QString msg =
"Invalid value for keyword [CenterLatitude] in map file.";
94 msg +=
" CenterLatitude cannot equal 0.0";
110 double sinphi = sin(phi);
111 double cosphi = cos(phi);
123 QString message =
"Invalid label group [Mapping]";
143 if (!Projection::operator==(proj))
return false;
159 return "PolarStereographic";
202 double lonRadians = lon *
PI / 180.0;
207 double latRadians = lat;
209 latRadians = latRadians *
PI / 180.0;
214 double sinphi = sin(phi);
258 double dist = sqrt(east * east + north * north);
274 QString msg =
"X,Y causes latitude to be outside [-90,90] " 275 "in PolarStereographic Class";
326 double &minY,
double &maxY) {
418 bool allowDefaults) {
double m_centerLatitude
The center latitude for the map projection.
double m_signFactor
If the center latitude is positive, the sign factor is 1.
bool hasKeyword(const QString &name) const
Check to see if a keyword exists.
double mCompute(const double sinphi, const double cosphi) const
A convience method to compute Snyder's m equation (14-15) for a given latitude, . ...
PvlGroupIterator findGroup(const QString &name, PvlGroupIterator beg, PvlGroupIterator end)
Find a group with the specified name, within these indexes.
double tCompute(const double phi, const double sinphi) const
A convience method to compute Snyder's t equation (15-9) for a given latitude, .
~PolarStereographic()
Destroys the PolarStereographic object.
const double PI
The mathematical constant PI.
Isis::Projection * PolarStereographicPlugin(Isis::Pvl &lab, bool allowDefaults)
This is the function that is called in order to instantiate an PolarStereographic object...
Longitude values increase in the westerly direction.
Base class for Map TProjections.
double m_e4
Convenience variable for calculations.
const double HALFPI
The mathematical constant PI/2.
Namespace for the standard library.
double m_centerLongitude
The center longitude for the map projection.
double GetX() const
Calculates the unrotated form of current x value.
double m_minimumX
The data elements m_minimumX, m_minimumY, m_maximumX, and m_maximumY are convience data elements when...
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
This error is for when a programmer made an API call that was illegal.
void SetComputedXY(double x, double y)
This protected method is a helper for derived classes.
double m_latitude
This contains the currently set latitude value.
Stereographic Map Projection for Polar Aspect.
virtual PvlGroup MappingLatitudes()
This function returns the latitude keywords that this projection uses.
double m_m
Snyder's m-value from equation (14-15).
double m_maximumY
See minimumX description.
double m_longitude
This contains the currently set longitude value.
bool IsPlanetocentric() const
This indicates if the latitude type is planetocentric (as opposed to planetographic).
double m_maximumLongitude
Contains the maximum longitude for the entire ground range.
double m_minimumLatitude
Contains the minimum latitude for the entire ground range.
double m_maximumLatitude
Contains the maximum latitude for the entire ground range.
Base class for Map Projections.
double m_minimumY
See minimumX description.
double m_equatorialRadius
Polar radius of the target.
int m_longitudeDomain
This integer is either 180 or 360 and is read from the labels.
static double To180Domain(const double lon)
This method converts a longitude into the -180 to 180 domain.
Contains multiple PvlContainers.
#define _FILEINFO_
Macro for the filename and line number.
A type of error that could only have occurred due to a mistake on the user's part (e...
A single keyword-value pair.
A type of error that cannot be classified as any of the other error types.
QString Name() const
Returns the name of the map projection, "PolarStereographic".
PvlGroup MappingLongitudes()
This function returns the longitude keywords that this projection uses.
QString Version() const
Returns the version of the map projection.
double m_t
Snyder's t-value from equation (15-19).
Container for cube-like labels.
double ToPlanetographic(const double lat) const
This method converts a planetocentric latitude to a planetographic latitude.
double phi2Compute(const double t) const
A convience method to compute latitude angle phi2 given small t, from Syder's recursive equation (7-9...
virtual PvlGroup Mapping()
This function returns the keywords that this projection uses.
bool m_good
Indicates if the contents of m_x, m_y, m_latitude, and m_longitude are valid.
static double To360Domain(const double lon)
This method converts a longitude into the 0 to 360 domain.
double e4Compute() const
A convience method to compute.
LongitudeDirection m_longitudeDirection
An enumerated type indicating the LongitudeDirection read from the labels.
bool operator==(const Projection &proj)
Compares two Projection objects to see if they are equal.
PvlGroup Mapping()
This function returns the keywords that this projection uses.
Namespace for ISIS/Bullet specific routines.
bool SetGround(const double lat, const double lon)
This method is used to set the latitude/longitude (assumed to be of the correct LatitudeType, LongitudeDirection, and LongitudeDomain.
double TrueScaleLatitude() const
Returns the latitude of true scale.
double GetY() const
Calculates the unrotated form of the current y value.
bool SetCoordinate(const double x, const double y)
This method is used to set the projection x/y.
double ToPlanetocentric(const double lat) const
This method converts a planetographic latitude to a planetocentric latitude.
virtual PvlGroup MappingLongitudes()
This function returns the longitude keywords that this projection uses.
void SetXY(double x, double y)
This protected method is a helper for derived classes.
bool XYRange(double &minX, double &maxX, double &minY, double &maxY)
This method is used to determine the x/y range which completely covers the area of interest specified...
void XYRangeCheck(const double latitude, const double longitude)
This convience function is established to assist in the development of the XYRange virtual method...
double m_minimumLongitude
Contains the minimum longitude for the entire ground range.
double m_poleFlag
Indicates whether the center latitude is at a pole.
double m_maximumX
See minimumX description.
PvlGroup MappingLatitudes()
This function returns the latitude keywords that this projection uses.
PvlGroup m_mappingGrp
Mapping group that created this projection.