pub struct Polygon {Show 17 fields
pub id: PolygonId,
pub n: usize,
pub level: Level,
pub version: u8,
pub greenwich_crossed: bool,
pub source: Source,
pub river: bool,
pub west: i32,
pub east: i32,
pub south: i32,
pub north: i32,
pub area: u32,
pub area_full: u32,
pub container: Option<PolygonId>,
pub ancestor: Option<PolygonId>,
pub points: Vec<Point>,
pub children: Vec<PolygonId>,
}Expand description
Global Self-consistent Hierarchical High-resolution Shorelines
Fields§
§id: PolygonIdUnique polygon id number, starting at 0
n: usizeNumber of points in this polygon
level: Levellevel + version << 8 + greenwich << 16 + source << 24 + river << 25
version: u8§greenwich_crossed: bool§source: Source§river: bool§west: i32Min/max extent in micro-degrees
east: i32§south: i32§north: i32§area: u32Area of polygon in 1/10 km^2
area_full: u32Area of original full-resolution polygon in 1/10 km^2
container: Option<PolygonId>Id of container polygon that encloses this polygon
ancestor: Option<PolygonId>Id of ancestor polygon in the full resolution set that was the source of this polygon
points: Vec<Point>Points of the polygon
children: Vec<PolygonId>Ids of contained polygons
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Polygon
impl<'de> Deserialize<'de> for Polygon
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 Polygon
impl RefUnwindSafe for Polygon
impl Send for Polygon
impl Sync for Polygon
impl Unpin for Polygon
impl UnwindSafe for Polygon
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