Skip to content

Service descriptions

imageserver_export.service

What an ImageServer says about itself: pure parsers of its JSON.

GET <service>?f=json describes the raster (pixel type, bands, pixel size, extent, the largest image one request may ask for); GET <service>/rasterAttributeTable?f=json maps the pixel values of a thematic layer to their meaning; GET <folder>?f=json lists the services.

ServiceInfo dataclass

The parts of a service description an export needs.

eea

eea(name: str) -> str

The URL of one EEA service: eea("HRL_ImperviousnessDensity_2018").

parse_info

parse_info(body: bytes | str) -> ServiceInfo

A :class:ServiceInfo from <service>?f=json.

parse_attribute_table

parse_attribute_table(body: bytes | str) -> list[dict[str, Any]]

The rows of <service>/rasterAttributeTable?f=json, as plain dicts.

parse_services

parse_services(body: bytes | str) -> list[str]

The ImageServer names of a folder listing (<folder>?f=json).