pub fn parse_bbox_ext(string: &str) -> UtilesCoreResult<BBox>Expand description
Parse a string into a BBox with special handling of ‘world’ and ‘planet’
§Errors
Returns error on bbox parsing failure
§Examples
use utiles_core::parsing::parse_bbox_ext;
let bbox = parse_bbox_ext("world").unwrap();
assert_eq!(bbox, utiles_core::bbox::BBox::new(-180.0, -90.0, 180.0, 90.0));use utiles_core::parsing::parse_bbox_ext;
let bbox = parse_bbox_ext("planet").unwrap();
assert_eq!(bbox, utiles_core::bbox::BBox::new(-180.0, -90.0, 180.0, 90.0));use utiles_core::parsing::parse_bbox_ext;
let bbox = parse_bbox_ext("-180,-85,180,85").unwrap();
assert_eq!(bbox, utiles_core::bbox::BBox::new(-180.0, -85.0, 180.0, 85.0));