aws.osml.image_processing.map_tileset module
- aws.osml.image_processing.map_tileset.MapTileId
alias of
TildId
- class aws.osml.image_processing.map_tileset.MapTileSize(width, height)
Bases:
tuple
This type represents the size of a map tile (width, height). These dimensions are typically the same (i.e. square tiles) but this is not required.
- height
Alias for field number 1
- width
Alias for field number 0
- class aws.osml.image_processing.map_tileset.MapTileBounds(min_lon, min_lat, max_lon, max_lat)
Bases:
tuple
This type represents the geodetic bounds of a map tile (min_lon, min_lat, max_lon, max_lat).
- max_lat
Alias for field number 3
- max_lon
Alias for field number 2
- min_lat
Alias for field number 1
- min_lon
Alias for field number 0
- class aws.osml.image_processing.map_tileset.MapTile(id: TildId, size: MapTileSize, bounds: MapTileBounds)[source]
Bases:
object
This dataclass provides a description of a map tile that is part of a well known tile set.
- id: TildId
- size: MapTileSize
- bounds: MapTileBounds
- class aws.osml.image_processing.map_tileset.MapTileSet[source]
Bases:
ABC
This class provides an abstract interface to a well known set of map tiles.
- abstract property tile_matrix_set_id: str
Get the identifier for this map tile set. This is the tile matrix set ID in the OGC definitions.
- Returns:
the tile matrix set ID
- abstract get_tile(tile_id: TildId) MapTile [source]
Get a description of the tile identified by a specific map tile ID.
- Parameters:
tile_id – the tile ID
- Returns:
the tile description
- abstract get_tile_for_location(world_coordinate: GeodeticWorldCoordinate, tile_matrix: int) MapTile [source]
Get a description of the tile containing a specific world location.
- Parameters:
world_coordinate – the location in the world
tile_matrix – the tile_matrix or zoom level of interest
- Returns:
the tile description
- get_tile_matrix_limits_for_area(boundary_coordinates: list[GeodeticWorldCoordinate], tile_matrix: int) tuple[int, int, int, int] [source]
Get a list of all tiles that intersect a specific area.
- Parameters:
boundary_coordinates – the boundary of the area
tile_matrix – the tile_matrix or zoom level of interest
- Returns:
the (min_col, min_row, max_col, max_row) limits of tiles containing all points