pub enum GeoBoundingBox {
MainDiagonal {
top_left: GeoLocation,
bottom_right: GeoLocation,
},
SubDiagonal {
top_right: GeoLocation,
bottom_left: GeoLocation,
},
WellKnownText {
wkt: String,
},
Vertices {
top: f32,
left: f32,
bottom: f32,
right: f32,
},
}Expand description
Different representations of geo bounding box
Variants§
MainDiagonal
MainDiagonal vertices of geo bounding box
Fields
§
top_left: GeoLocationThe coordinates of the upper left vertex
§
bottom_right: GeoLocationThe coordinates of the lower right vertex
SubDiagonal
SubDiagonal vertices of geo bounding box
Fields
§
top_right: GeoLocationThe coordinates of the upper right vertex
§
bottom_left: GeoLocationThe coordinates of the lower left vertex
WellKnownText
Well-Known Text (WKT).
Vertices
The vertices of the bounding box can either be set by top_left and bottom_right or by
top_right and bottom_left parameters. More over the names topLeft, bottomRight, topRight
and bottomLeft are supported. Instead of setting the values pairwise, one can use the simple
names top, left, bottom and right to set the values separately.
Trait Implementations§
Source§impl Clone for GeoBoundingBox
impl Clone for GeoBoundingBox
Source§fn clone(&self) -> GeoBoundingBox
fn clone(&self) -> GeoBoundingBox
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 Debug for GeoBoundingBox
impl Debug for GeoBoundingBox
Source§impl PartialEq for GeoBoundingBox
impl PartialEq for GeoBoundingBox
Source§impl Serialize for GeoBoundingBox
impl Serialize for GeoBoundingBox
impl StructuralPartialEq for GeoBoundingBox
Auto Trait Implementations§
impl Freeze for GeoBoundingBox
impl RefUnwindSafe for GeoBoundingBox
impl Send for GeoBoundingBox
impl Sync for GeoBoundingBox
impl Unpin for GeoBoundingBox
impl UnwindSafe for GeoBoundingBox
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