CartoType API
Public Member Functions | Protected Member Functions
CartoType::TMillerCylindrical Class Reference

#include <cartotype_mercator.h>

Inheritance diagram for CartoType::TMillerCylindrical:
CartoType::TMercator CartoType::TProjectionUsingFloatingPoint CartoType::TCoordinateTransform

List of all members.

Public Member Functions

 TMillerCylindrical (const TMillerCylindricalParam &aParam)
CT_IMPORT TResult Inverse (const TPoint &aInput, TPoint &aOutput) const
CT_IMPORT TCoordinateTransformCopy (TResult &aError) const

Protected Member Functions

CT_IMPORT void ProjectHelper (const TPoint &aInput, double &aX, double &aY) const

Detailed Description

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.


Member Function Documentation

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.


The documentation for this class was generated from the following files: