53 Mercator::Mercator(
Pvl &label,
bool allowDefaults) :
61 if ((allowDefaults) && (!mapGroup.
hasKeyword(
"CenterLongitude"))) {
68 if ((allowDefaults) && (!mapGroup.
hasKeyword(
"CenterLatitude"))) {
89 m_scalefactor = cos_clat / sqrt(1.0 - m_eccsq * sin_clat * sin_clat);
92 QString message =
"Invalid label group [Mapping]";
110 if (!Projection::operator==(proj))
return false;
172 double lonRadians = lon *
PI / 180.0;
177 double latRadians = lat;
179 latRadians *=
PI / 180.0;
182 if (fabs(fabs(
m_latitude) - 90.0) <= DBL_EPSILON) {
190 double sinphi = sin(latRadians);
191 double t =
tCompute(latRadians, sinphi);
235 if (coslat <= DBL_EPSILON) {
284 double &minY,
double &maxY) {
359 bool allowDefaults) {