pub struct SpatialValue {
pub spatial_type: SpatialType,
pub coordinates: SpatialCoordinates,
pub extension_name: Option<String>,
pub extension_metadata: Option<String>,
}Expand description
One canonical typed spatial property value.
Fields§
§spatial_type: SpatialTypeGeometry kind and CRS.
coordinates: SpatialCoordinatesCoordinates matching spatial_type.geometry.
extension_name: Option<String>Original extension name when the value is preserved-only.
extension_metadata: Option<String>Original extension metadata JSON when the value is preserved-only.
Implementations§
Source§impl SpatialValue
impl SpatialValue
Sourcepub fn is_preserved_only(&self) -> bool
pub fn is_preserved_only(&self) -> bool
Whether this value is preserved for interchange but not certified for computation.
Sourcepub fn validate_interchange_profile(&self) -> Result<(), &'static str>
pub fn validate_interchange_profile(&self) -> Result<(), &'static str>
Validate the explicit envelope required for preserved-only values.
Trait Implementations§
Source§impl Clone for SpatialValue
impl Clone for SpatialValue
Source§impl Debug for SpatialValue
impl Debug for SpatialValue
Source§impl<'de> Deserialize<'de> for SpatialValue
impl<'de> Deserialize<'de> for SpatialValue
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
Source§impl PartialEq for SpatialValue
impl PartialEq for SpatialValue
Source§impl Serialize for SpatialValue
impl Serialize for SpatialValue
impl StructuralPartialEq for SpatialValue
Auto Trait Implementations§
impl Freeze for SpatialValue
impl RefUnwindSafe for SpatialValue
impl Send for SpatialValue
impl Sync for SpatialValue
impl Unpin for SpatialValue
impl UnsafeUnpin for SpatialValue
impl UnwindSafe for SpatialValue
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