pub struct ParameterValue {
pub schema: Option<String>,
pub type: Option<String>,
pub name: String,
pub value: ProjValue,
pub unit: Option<Unit>,
pub id: Option<Id>,
pub ids: Ids,
pub is_file: bool,
}Expand description
§Parameter
§Description
Parameter name is for human readability. For interoperability it is the method formula and its parameters that are critical in determining the equivalence of methods. See Annex F. Identifiers for commonly encountered map projection methods are given in F.2; their parameters are listed in F.3.
The map projection parameters required are specific to the map projection method and will be listed sequentially. The order within the sequence is not significant but should be logical.
<map projection parameter unit> is an optional attribute, for reasons of backward compatibility. Best practice is that it is included explicitly in WKT strings.
§Requirements
If <map projection parameter unit> is omitted from <map projection parameter> then:
- Map parameter values that are lengths shall be given in metres.
- Map projection parameter values that are angles shall be given in decimal degrees.
- Map projection parameters that are unitless (for example scale factor) shall be given as a number which is close to or is unity (1.0).
§Examples
PARAMETER["semi_major",6378137.0]- Defines a parameter named “semi_major” with a numeric value.PARAMETER["towgs84","8,-183,-105,0,0,0,0"]- Defines a parameter named “towgs84” with a string value.PARAMETER["central_meridian",0.0,UNIT["degree",0.0174532925199433]]- Defines a parameter with a name, numeric value, and a unit.PARAMETER["standard_parallel_1",30.0,ID["EPSG",8831]]- Defines a parameter with a name, numeric value, and an identifier.PARAMETER["latitude_of_origin",0.0,UNIT["degree",0.0174532925199433],ID["EPSG",8821]]- Defines a parameter with a name, numeric value, unit, and identifier.PARAMETER["is_sphere",TRUE]- Defines a boolean parameter.
Fields§
§schema: Option<String>Schema reference
type: Option<String>Type identifier - always ‘ParameterValue’
name: StringName of the parameter
value: ProjValueParameter value, which can be a string or number
unit: Option<Unit>Optional unit of measurement
id: Option<Id>Identifier
ids: IdsAlternative identifiers
is_file: boolNOT PART OF SPEC
Implementations§
Trait Implementations§
Source§impl Clone for ParameterValue
impl Clone for ParameterValue
Source§fn clone(&self) -> ParameterValue
fn clone(&self) -> ParameterValue
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ParameterValue
impl Debug for ParameterValue
Source§impl Default for ParameterValue
impl Default for ParameterValue
Source§fn default() -> ParameterValue
fn default() -> ParameterValue
Source§impl<'de> Deserialize<'de> for ParameterValuewhere
ParameterValue: Default,
impl<'de> Deserialize<'de> for ParameterValuewhere
ParameterValue: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<&ParameterValue> for ProjValue
impl From<&ParameterValue> for ProjValue
Source§fn from(p_value: &ParameterValue) -> Self
fn from(p_value: &ParameterValue) -> Self
Source§impl PartialEq for ParameterValue
impl PartialEq for ParameterValue
Source§impl Serialize for ParameterValue
impl Serialize for ParameterValue
Source§impl ToProjJSON for ParameterValue
impl ToProjJSON for ParameterValue
Source§fn set_usage(&mut self, _usage: ObjectUsage)
fn set_usage(&mut self, _usage: ObjectUsage)
Source§fn set_anchor(&mut self, _anchor: String)
fn set_anchor(&mut self, _anchor: String)
Source§fn set_coordinate_system(&mut self, _cs: CoordinateSystem)
fn set_coordinate_system(&mut self, _cs: CoordinateSystem)
Source§fn set_temporal_extent(&mut self, _extent: TemporalExtent)
fn set_temporal_extent(&mut self, _extent: TemporalExtent)
Source§fn set_vertical_extent(&mut self, _extent: VerticalExtent)
fn set_vertical_extent(&mut self, _extent: VerticalExtent)
Source§fn set_method(&mut self, _method: Method)
fn set_method(&mut self, _method: Method)
Source§fn set_ensemble(&mut self, _ensemble: DatumEnsemble)
fn set_ensemble(&mut self, _ensemble: DatumEnsemble)
Source§fn set_member(&mut self, _member: DatumEnsembleMember)
fn set_member(&mut self, _member: DatumEnsembleMember)
Source§fn set_ellipsoid(&mut self, _ellipsoid: Ellipsoid)
fn set_ellipsoid(&mut self, _ellipsoid: Ellipsoid)
Source§fn set_accuracy(&mut self, _accuracy: String)
fn set_accuracy(&mut self, _accuracy: String)
Source§fn set_frame_epoch(&mut self, _epoch: f64)
fn set_frame_epoch(&mut self, _epoch: f64)
Source§fn set_parameter(&mut self, _parameter: ParameterValue)
fn set_parameter(&mut self, _parameter: ParameterValue)
Source§fn set_meridian(&mut self, _meridian: Meridian)
fn set_meridian(&mut self, _meridian: Meridian)
Source§fn set_prime_meridian(&mut self, _prime_meridian: PrimeMeridian)
fn set_prime_meridian(&mut self, _prime_meridian: PrimeMeridian)
Source§fn set_conversion(&mut self, _conversion: Conversion)
fn set_conversion(&mut self, _conversion: Conversion)
Source§fn set_geodetic_crs(&mut self, _geodetic_crs: GeodeticCRS)
fn set_geodetic_crs(&mut self, _geodetic_crs: GeodeticCRS)
Source§fn set_projected_crs(&mut self, _projected_crs: ProjectedCRS)
fn set_projected_crs(&mut self, _projected_crs: ProjectedCRS)
Source§fn set_projection(&mut self, _name: String)
fn set_projection(&mut self, _name: String)
impl StructuralPartialEq for ParameterValue
Auto Trait Implementations§
impl Freeze for ParameterValue
impl RefUnwindSafe for ParameterValue
impl Send for ParameterValue
impl Sync for ParameterValue
impl Unpin for ParameterValue
impl UnwindSafe for ParameterValue
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().