An interface which represents a projection of geospatial coordinates to planar coordinates. More...
#include <MapProjection.h>
Public Member Functions | |
virtual FlatPoint | project (double lat, double lon)=0 |
Project geospatial point onto plane. | |
virtual FlatPoint | project (geo::Point const &p) |
Project geospatial point onto plane. | |
virtual geo::Point | unproject (double x, double y)=0 |
Transform point on a plane to a geospatial point that would be projected on it. | |
virtual geo::Point | unproject (FlatPoint const &p) |
Transform point on a plane to a geospatial point that would be projected on it. | |
virtual | ~MapProjection () |
An interface which represents a projection of geospatial coordinates to planar coordinates.
Definition at line 21 of file MapProjection.h.
proj::MapProjection::~MapProjection | ( | ) | [virtual] |
Definition at line 23 of file MapProjection.cpp.
virtual FlatPoint proj::MapProjection::project | ( | double | lat, |
double | lon | ||
) | [pure virtual] |
Project geospatial point onto plane.
lat | latitude of projected point |
lon | longitude of projected point |
Implemented in proj::OrthoProjection.
FlatPoint proj::MapProjection::project | ( | geo::Point const & | p | ) | [virtual] |
Project geospatial point onto plane.
p | point to project |
Reimplemented in proj::OrthoProjection.
Definition at line 13 of file MapProjection.cpp.
virtual geo::Point proj::MapProjection::unproject | ( | double | x, |
double | y | ||
) | [pure virtual] |
Transform point on a plane to a geospatial point that would be projected on it.
x | the x coordinate of point |
y | the y coordinate of point |
Implemented in proj::OrthoProjection.
geo::Point proj::MapProjection::unproject | ( | FlatPoint const & | p | ) | [virtual] |
Transform point on a plane to a geospatial point that would be projected on it.
p | the point |
Reimplemented in proj::OrthoProjection.
Definition at line 18 of file MapProjection.cpp.