pub struct WOFGeoJSON<'a> {
pub id: i32,
pub type: String,
pub properties: &'a JsonObject,
pub bbox: Vec<f64>,
pub geometry: &'a JsonObject,
/* private fields */
}Expand description
Representation of a WOF GeoJSON, contains all required properties.
Fields§
§id: i32This is the id of the document.
type: StringThis is the type of the document, should be Feature.
properties: &'a JsonObjectAll properties of the document, contains names, hierarchy…
bbox: Vec<f64>The BBox of the document.
geometry: &'a JsonObjectThe raw Geometry, it’s an inner GeoJSON. Types are Point, MultiPoint, LineString, MultiLineString, Polygon and MultiPolygon.
Implementations§
Source§impl<'a> WOFGeoJSON<'a>
impl<'a> WOFGeoJSON<'a>
pub fn as_valid_wof_geojson(json: &'a JsonValue) -> Result<Self, String>
pub fn pretty(&self, writer: &mut dyn Write) -> Result<(), Error>
pub fn dump(&self, writer: &mut dyn Write) -> Result<(), Error>
pub fn is_doc_deprecated(&self) -> bool
pub fn is_alt_geom(&self) -> bool
pub fn is_current(&self) -> bool
pub fn is_deprecated(&self) -> bool
pub fn is_ceased(&self) -> bool
pub fn is_superseded(&self) -> bool
pub fn is_superseding(&self) -> bool
pub fn get_source(&self) -> String
pub fn get_last_modified(&self) -> i32
pub fn get_parent_id(&self) -> i32
pub fn get_placetype(&self) -> String
pub fn get_name(&self) -> String
pub fn get_names(&self) -> Vec<WofName<'_>>
pub fn get_country(&self) -> String
pub fn get_ancestors(&self) -> Vec<(i32, String)>
pub fn get_concordances(&self) -> Vec<(i32, String)>
pub fn get_repo(&self) -> String
pub fn get_lat(&self) -> f64
pub fn get_lon(&self) -> f64
pub fn get_min_lat(&self) -> f64
pub fn get_min_lon(&self) -> f64
pub fn get_max_lat(&self) -> f64
pub fn get_max_lon(&self) -> f64
pub fn get_superseded_by(&self) -> String
pub fn get_supersedes(&self) -> String
pub fn get_belongs_to(&self) -> Vec<i32>
Trait Implementations§
Source§impl<'a> Clone for WOFGeoJSON<'a>
impl<'a> Clone for WOFGeoJSON<'a>
Source§fn clone(&self) -> WOFGeoJSON<'a>
fn clone(&self) -> WOFGeoJSON<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for WOFGeoJSON<'a>
impl<'a> Debug for WOFGeoJSON<'a>
Source§impl Evaluate for WOFGeoJSON<'_>
impl Evaluate for WOFGeoJSON<'_>
Auto Trait Implementations§
impl<'a> Freeze for WOFGeoJSON<'a>
impl<'a> RefUnwindSafe for WOFGeoJSON<'a>
impl<'a> Send for WOFGeoJSON<'a>
impl<'a> Sync for WOFGeoJSON<'a>
impl<'a> Unpin for WOFGeoJSON<'a>
impl<'a> UnwindSafe for WOFGeoJSON<'a>
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