pub struct MillerCylindricalProjection { /* private fields */ }Expand description
§Miller Cylindrical
The Miller cylindrical projection is a modified Mercator projection, proposed by Osborn Maitland Miller in 1942.
Classification: Neither conformal nor equal area cylindrical
Available forms: Forward and inverse spherical
Defined area: Global, but best used near the equator
Alias: mill
Domain: 2D
Input type: Geodetic coordinates
Output type: Projected coordinates
§Projection String
+proj=mill§Required Parameters
- None
§Optional Parameters
+lon_0: Longitude of projection center. Defaults to0.+R: Radius of the sphere.+x_0: False easting. Defaults to0.+y_0: False northing. Defaults to0.
§Usage Example
Using Central meridian 90°W:
$ echo -100 35 | proj +proj=mill +lon_0=90w
-1113194.91 4061217.24§Mathematical Definition
§Forward projection:
$$x = \lambda$$ $$y = 1.25 * \ln \left[ \tan \left(\frac{\pi}{4} + 0.4 * \phi \right) \right]$$
§Inverse projection:
$$\lambda = x$$ $$\phi = 2.5 * ( \arctan \left[ e^{0.8 * y} \right] - \frac{\pi}{4} )$$
§Further reading
- Wikipedia on Miller Cylindrical
- “New Equal-Area Map Projections for Noncircular Regions”, John P. Snyder, The American Cartographer, Vol 15, No. 4, October 1988, pp. 341-355.

Trait Implementations§
Source§impl Clone for MillerCylindricalProjection
impl Clone for MillerCylindricalProjection
Source§fn clone(&self) -> MillerCylindricalProjection
fn clone(&self) -> MillerCylindricalProjection
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MillerCylindricalProjection
impl Debug for MillerCylindricalProjection
Source§impl ProjectCoordinates for MillerCylindricalProjection
impl ProjectCoordinates for MillerCylindricalProjection
impl StructuralPartialEq for MillerCylindricalProjection
Auto Trait Implementations§
impl Freeze for MillerCylindricalProjection
impl !RefUnwindSafe for MillerCylindricalProjection
impl !Send for MillerCylindricalProjection
impl !Sync for MillerCylindricalProjection
impl Unpin for MillerCylindricalProjection
impl !UnwindSafe for MillerCylindricalProjection
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more