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: StringThe name of the projection
params: BTreeMap<i64, ProjValue>Projection conversion params
ellps: StringThe name of the ellipsoid
a: f64semimajor axis (radius if eccentricity==0)
b: f64semiminor axis
ra: f641 / a
rb: f641 / b
sphere: boolIf the ellipsoid is a sphere
alpha: f64angular eccentricity
e: f64first eccentricity
es: f64first eccentricity squared
e2: f64second eccentricity
e2s: f64second eccentricity squared
e3: f64third eccentricity
e3s: f64third eccentricity squared
one_es: f641 - e^2
rone_es: f641 / one_es
f: f64first flattening [the flattening of the ellipsoid]
f2: f64second flattening
n: f64third flattening
rf: f64The inverse flattening (1/f) [the reverse flattening of the ellipsoid]
rf2: f641/f2
rn: f641/n
J: f64This one’s for GRS80 Datum (Dynamic form factor)
es_orig: f64es and a before any +proj related adjustment
a_orig: f64a before any +proj related adjustment
over: boolOver-range flag
geoc: boolGeocentric latitude flag
is_ll: boolproj=latlong … not really a projection at all
is_geocent: boolproj=geocent … not really a projection at all
left: IoUnitsLeft flag for input/output coordinate types
right: IoUnitsRight flag for input/output coordinate types
lam0: f64central meridian
phi0: f64central parallel
x0: f64false easting
y0: f64false northing
z0: f64height origin
t0: f64time origin
k0: f64General scaling factor - e.g. the 0.9996 of UTM
to_meter: f64Plane coordinate scaling TO meter
fr_meter: f64Plane coordinate scaling FROM meter
vto_meter: f64Vertical scaling TO meter
vfr_meter: f64Vertical scaling FROM meter
datum_type: DatumTypeDatum type (None, Param3, Param7, GridShift, WGS84)
datum_params: DatumParamsParameters for 3PARAM and 7PARAM
from_greenwich: f64prime meridian offset (in radians)
Implementations§
Trait Implementations§
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> 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
§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)
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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().