Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Attributes
----------
left, bottom, right, top : float
Bounding values in meters.
"""
class MercantileError(Exception):
"""Base exception"""
class InvalidLatitudeError(MercantileError):
"""Raised when math errors occur beyond ~85 degrees N or S"""
class InvalidZoomError(MercantileError):
"""Raised when a zoom level is invalid"""
class ParentTileError(MercantileError):
"""Raised when a parent tile cannot be determined"""
class QuadKeyError(MercantileError):
"""Raised when errors occur in computing or parsing quad keys"""
class TileArgParsingError(MercantileError):
"""Raised when errors occur in parsing a function's tile arg(s)"""
class TileError(MercantileError):
"""Raised when math errors occur beyond ~85 degrees N or S"""
class InvalidZoomError(MercantileError):
"""Raised when a zoom level is invalid"""
class ParentTileError(MercantileError):
"""Raised when a parent tile cannot be determined"""
class QuadKeyError(MercantileError):
"""Raised when errors occur in computing or parsing quad keys"""
class TileArgParsingError(MercantileError):
"""Raised when errors occur in parsing a function's tile arg(s)"""
class TileError(MercantileError):
"""Raised when a tile can't be determined"""
def _parse_tile_arg(*args):
"""parse the *tile arg of module functions
Parameters
----------
tile : Tile or sequence of int
May be be either an instance of Tile or 3 ints, X, Y, Z.
Returns
"""Raised when a zoom level is invalid"""
class ParentTileError(MercantileError):
"""Raised when a parent tile cannot be determined"""
class QuadKeyError(MercantileError):
"""Raised when errors occur in computing or parsing quad keys"""
class TileArgParsingError(MercantileError):
"""Raised when errors occur in parsing a function's tile arg(s)"""
class TileError(MercantileError):
"""Raised when a tile can't be determined"""
def _parse_tile_arg(*args):
"""parse the *tile arg of module functions
Parameters
----------
tile : Tile or sequence of int
May be be either an instance of Tile or 3 ints, X, Y, Z.
Returns
-------
Tile
Raises
"""
class MercantileError(Exception):
"""Base exception"""
class InvalidLatitudeError(MercantileError):
"""Raised when math errors occur beyond ~85 degrees N or S"""
class InvalidZoomError(MercantileError):
"""Raised when a zoom level is invalid"""
class ParentTileError(MercantileError):
"""Raised when a parent tile cannot be determined"""
class QuadKeyError(MercantileError):
"""Raised when errors occur in computing or parsing quad keys"""
class TileArgParsingError(MercantileError):
"""Raised when errors occur in parsing a function's tile arg(s)"""
class TileError(MercantileError):
"""Raised when a tile can't be determined"""
def _parse_tile_arg(*args):
Bbox = namedtuple("Bbox", ["left", "bottom", "right", "top"])
"""A web mercator bounding box
Attributes
----------
left, bottom, right, top : float
Bounding values in meters.
"""
class MercantileError(Exception):
"""Base exception"""
class InvalidLatitudeError(MercantileError):
"""Raised when math errors occur beyond ~85 degrees N or S"""
class InvalidZoomError(MercantileError):
"""Raised when a zoom level is invalid"""
class ParentTileError(MercantileError):
"""Raised when a parent tile cannot be determined"""
class QuadKeyError(MercantileError):
"""Raised when errors occur in computing or parsing quad keys"""
class TileArgParsingError(MercantileError):
"""Base exception"""
class InvalidLatitudeError(MercantileError):
"""Raised when math errors occur beyond ~85 degrees N or S"""
class InvalidZoomError(MercantileError):
"""Raised when a zoom level is invalid"""
class ParentTileError(MercantileError):
"""Raised when a parent tile cannot be determined"""
class QuadKeyError(MercantileError):
"""Raised when errors occur in computing or parsing quad keys"""
class TileArgParsingError(MercantileError):
"""Raised when errors occur in parsing a function's tile arg(s)"""
class TileError(MercantileError):
"""Raised when a tile can't be determined"""
def _parse_tile_arg(*args):
"""parse the *tile arg of module functions
Parameters
----------