pub struct WkbMetadata {
pub crs: Option<Value>,
pub algorithm: Option<Edges>,
}Expand description
The metadata associated with a WkbType.
Fields§
§crs: Option<Value>The Coordinate Reference System (CRS) of the WkbType, if present.
This may be a raw string value (e.g., “EPSG:3857”) or a JSON object (e.g., PROJJSON).
Note: Common lon/lat CRS representations (EPSG:4326, OGC:CRS84) are canonicalized
to None during serialization to match Parquet conventions.
algorithm: Option<Edges>The edge interpolation algorithm of the WkbType, if present.
Implementations§
Source§impl Metadata
impl Metadata
Sourcepub fn new(crs: Option<&str>, algorithm: Option<Edges>) -> Self
pub fn new(crs: Option<&str>, algorithm: Option<Edges>) -> Self
Constructs a new Metadata with the given CRS and algorithm.
If a CRS is provided, and can be parsed as JSON, it will be stored as a JSON object instead of its string representation.
Sourcefn crs_is_lon_lat(&self) -> bool
fn crs_is_lon_lat(&self) -> bool
Detect if the CRS is a common representation of lon/lat on the standard WGS84 ellipsoid
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Metadata
impl<'de> Deserialize<'de> for Metadata
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more