|
CartoType API
|
#include <cartotype_mercator.h>
Public Member Functions | |
| TMillerCylindrical (const TMillerCylindricalParam &aParam) | |
| CT_IMPORT TResult | Inverse (const TPoint &aInput, TPoint &aOutput) const |
| CT_IMPORT TCoordinateTransform * | Copy (TResult &aError) const |
Protected Member Functions | |
| CT_IMPORT void | ProjectHelper (const TPoint &aInput, double &aX, double &aY) const |
The Miller Cylindrical projection, which is a modified Mercator. According to Wikipedia: the parallels of latitude are scaled by a factor of 0.8, projected according to Mercator, and then the result is divided by 0.8 to retain scale along the equator.
| CT_EXPORT TCoordinateTransform * TMillerCylindrical::Copy | ( | TResult & | aError | ) | const [virtual] |
Create an exact copy of this object.
Reimplemented from CartoType::TMercator.
| CT_EXPORT TResult TMillerCylindrical::Inverse | ( | const TPoint & | aInput, |
| TPoint & | aOutput | ||
| ) | const [virtual] |
Convert Mercator-projection map metres to latitude and longitude. The Mercator projection formula is from http://en.wikipedia.org/wiki/Mercator_projection.
Reimplemented from CartoType::TMercator.
| CT_EXPORT void TMillerCylindrical::ProjectHelper | ( | const TPoint & | aInput, |
| double & | aX, | ||
| double & | aY | ||
| ) | const [protected, virtual] |
Project points to double-precision floating point pixels without applying the final transform. The Mercator projection formula is from http://en.wikipedia.org/wiki/Mercator_projection. To avoid infinities and excessively large coordinates latitudes are clamped to 85.05113 degrees, giving a square map because the maximum transformed latitude value is pi.
Reimplemented from CartoType::TMercator.
1.7.5.1