pub struct WebBBox { /* private fields */ }
Expand description
Web Mercator Bounding box struct
Implementations§
Source§impl WebBBox
impl WebBBox
pub fn new(left: f64, bottom: f64, right: f64, top: f64) -> Self
pub fn min(&self) -> Point2d<f64>
pub fn max(&self) -> Point2d<f64>
pub fn left(&self) -> f64
pub fn bottom(&self) -> f64
pub fn right(&self) -> f64
pub fn top(&self) -> f64
pub fn width(&self) -> f64
pub fn west(&self) -> f64
pub fn south(&self) -> f64
pub fn east(&self) -> f64
pub fn north(&self) -> f64
Sourcepub fn json_arr(&self) -> String
pub fn json_arr(&self) -> String
Returns the geojson tuple/array representation of the bounding box
Sourcepub fn projwin_str(&self) -> String
pub fn projwin_str(&self) -> String
Returns the gdal-ish string representation of the bounding box
Trait Implementations§
impl Copy for WebBBox
impl StructuralPartialEq for WebBBox
Auto Trait Implementations§
impl Freeze for WebBBox
impl RefUnwindSafe for WebBBox
impl Send for WebBBox
impl Sync for WebBBox
impl Unpin for WebBBox
impl UnwindSafe for WebBBox
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