egml-io 0.0.2-alpha.1

IO operations for processing GML data.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::primitives::GmlPoint;
use egml_core::model::geometry::primitives::Point;
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize, PartialEq, Clone)]
pub struct GmlPointProperty {
    #[serde(rename(serialize = "gml:Point", deserialize = "Point"))]
    pub point: GmlPoint,
}

impl From<&Point> for GmlPointProperty {
    fn from(point: &Point) -> Self {
        Self {
            point: GmlPoint::from(point),
        }
    }
}