mapchete.types module

class mapchete.types.Bounds(*args, **kwargs)

Bases: object

DEPRECATED: mapchete.types.Bounds has been moved to mapchete.bounds.Bounds

None

static from_dict(inp: dict, strict: bool = True, crs: fiona.crs.CRS | rasterio.crs.CRS | None = None)
static from_inp(inp: List[float] | Tuple[float, float, float, float] | dict | shapely.geometry.Polygon, strict: bool = True, crs: fiona.crs.CRS | rasterio.crs.CRS | None = None)
class mapchete.types.GeoInterface(*args, **kwargs)

Bases: Protocol

class mapchete.types.GeoJSONLikeFeature

Bases: dict

geometry: dict
properties: Dict[str, Any]
class mapchete.types.Grid(*args, **kwargs)

Bases: object

DEPRECATED: mapchete.types.Grid has been moved to mapchete.grid.Grid

None

static from_bounds(bounds: List[float] | Tuple[float, float, float, float] | dict | shapely.geometry.Polygon, shape: tilematrix.Shape | List[int] | Tuple[int, int], crs: fiona.crs.CRS | rasterio.crs.CRS)
static from_obj(obj)
class mapchete.types.Progress(*, current: int = 0, total: int | None = None)

Bases: BaseModel

current: int
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

total: int | None
class mapchete.types.ZoomLevels(*args, **kwargs)

Bases: object

DEPRECATED: mapchete.types.ZoomLevels has been moved to mapchete.zoom_levels.ZoomLevels

None

static from_dict(inp: dict, **kwargs)
static from_inp(min: List[int] | int | dict, max: int | None = None, descending: bool = False)
static from_int(inp: int, **kwargs)
static from_list(inp: List[int], **kwargs)
mapchete.types.to_resampling(resampling: rasterio.enums.Resampling | str) rasterio.enums.Resampling