Skip to main content

TransParamLookup

Trait TransParamLookup 

Source
pub trait TransParamLookup {
    // Required methods
    fn get_dms(&self, key: &str) -> Option<f64>;
    fn get_f64(&self, key: &str) -> Option<f64>;
    fn get_int(&self, key: &str) -> Option<i64>;
    fn get_str(&self, key: &str) -> Option<&str>;
    fn get_bool(&self, key: &str) -> bool;
    fn exists(&self, key: &str) -> bool;
}
Expand description

A trait the engine implements to give a transformation access to its specific params. Mirrors oxiproj_projections::ProjParamLookup.

Required Methods§

Source

fn get_dms(&self, key: &str) -> Option<f64>

Look up a key whose value is an angle, returning radians (parsed via PROJ dmstor).

Source

fn get_f64(&self, key: &str) -> Option<f64>

Look up a key whose value is a plain floating-point number.

Source

fn get_int(&self, key: &str) -> Option<i64>

Look up a key whose value is an integer.

Source

fn get_str(&self, key: &str) -> Option<&str>

Look up a key whose value is a string.

Source

fn get_bool(&self, key: &str) -> bool

Return whether a boolean flag is set (bare +key or +key=t/T/true).

Source

fn exists(&self, key: &str) -> bool

Return whether the key is present at all.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§