Associating an Ellipsoid with a Projection
You will obtain more accurate projections using an appropriate ellipsoid, especially as far as large scale maps are concerned. Note, however, that computations will be more complex and slower than when using a sphere.
IlvProjection* projection = new IlvMercatorProjection(); projection->setEllipsoid(*IlvEllipsoid::WGS84()); |
You can either use a static member of the class IlvEllipsoid, which defines a number of commonly used ellipsoids, use the static method GetRegisteredEllipsoid() to retrieve a registered Ellipsoid, or create your own ellipsoid as explained in the section Defining New Ellipsoids. You can also use one of the predefined ellipsoids listed in the section Predefined Ellipsoids .