Proj

Struct Proj 

Source
pub struct Proj {
Show 46 fields pub name: String, pub params: BTreeMap<i64, ProjValue>, pub ellps: String, pub a: f64, pub b: f64, pub ra: f64, pub rb: f64, pub sphere: bool, pub alpha: f64, pub e: f64, pub es: f64, pub e2: f64, pub e2s: f64, pub e3: f64, pub e3s: f64, pub one_es: f64, pub rone_es: f64, pub f: f64, pub f2: f64, pub n: f64, pub rf: f64, pub rf2: f64, pub rn: f64, pub J: f64, pub es_orig: f64, pub a_orig: f64, pub over: bool, pub geoc: bool, pub is_ll: bool, pub is_geocent: bool, pub left: IoUnits, pub right: IoUnits, pub lam0: f64, pub phi0: f64, pub x0: f64, pub y0: f64, pub z0: f64, pub t0: f64, pub k0: f64, pub to_meter: f64, pub fr_meter: f64, pub vto_meter: f64, pub vfr_meter: f64, pub datum_type: DatumType, pub datum_params: DatumParams, pub from_greenwich: f64,
}
Expand description

Generic Projection Container

Fields§

§name: String

The name of the projection

§params: BTreeMap<i64, ProjValue>

Projection conversion params

§ellps: String

The name of the ellipsoid

§a: f64

semimajor axis (radius if eccentricity==0)

§b: f64

semiminor axis

§ra: f64

1 / a

§rb: f64

1 / b

§sphere: bool

If the ellipsoid is a sphere

§alpha: f64

angular eccentricity

§e: f64

first eccentricity

§es: f64

first eccentricity squared

§e2: f64

second eccentricity

§e2s: f64

second eccentricity squared

§e3: f64

third eccentricity

§e3s: f64

third eccentricity squared

§one_es: f64

1 - e^2

§rone_es: f64

1 / one_es

§f: f64

first flattening [the flattening of the ellipsoid]

§f2: f64

second flattening

§n: f64

third flattening

§rf: f64

The inverse flattening (1/f) [the reverse flattening of the ellipsoid]

§rf2: f64

1/f2

§rn: f64

1/n

§J: f64

This one’s for GRS80 Datum (Dynamic form factor)

§es_orig: f64

es and a before any +proj related adjustment

§a_orig: f64

a before any +proj related adjustment

§over: bool

Over-range flag

§geoc: bool

Geocentric latitude flag

§is_ll: bool

proj=latlong … not really a projection at all

§is_geocent: bool

proj=geocent … not really a projection at all

§left: IoUnits

Left flag for input/output coordinate types

§right: IoUnits

Right flag for input/output coordinate types

§lam0: f64

central meridian

§phi0: f64

central parallel

§x0: f64

false easting

§y0: f64

false northing

§z0: f64

height origin

§t0: f64

time origin

§k0: f64

General scaling factor - e.g. the 0.9996 of UTM

§to_meter: f64

Plane coordinate scaling TO meter

§fr_meter: f64

Plane coordinate scaling FROM meter

§vto_meter: f64

Vertical scaling TO meter

§vfr_meter: f64

Vertical scaling FROM meter

§datum_type: DatumType

Datum type (None, Param3, Param7, GridShift, WGS84)

§datum_params: DatumParams

Parameters for 3PARAM and 7PARAM

§from_greenwich: f64

prime meridian offset (in radians)

Implementations§

Source§

impl Proj

Source

pub fn add_param(&mut self, param: &ParameterValue)

Add a parameter to the proj object

Source

pub fn set_f64(&mut self, id: i64, value: f64)

Set an f64 parameter

Trait Implementations§

Source§

impl Clone for Proj

Source§

fn clone(&self) -> Proj

Returns a duplicate of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Proj

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Proj

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for Proj

Source§

fn eq(&self, other: &Proj) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Proj

Auto Trait Implementations§

§

impl Freeze for Proj

§

impl RefUnwindSafe for Proj

§

impl Send for Proj

§

impl Sync for Proj

§

impl Unpin for Proj

§

impl UnwindSafe for Proj

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<R, P> ReadPrimitive<R> for P
where R: Read + ReadEndian<P>, P: Default,

Source§

fn read_from_little_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian().
Source§

fn read_from_big_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian().
Source§

fn read_from_native_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian().
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V