energy_data_retrieval.sources.ign_terrain.client#

IGN Spain WCS 2.0.1 numeric terrain subsets on the advertised 5 m grids.

class energy_data_retrieval.sources.ign_terrain.client.CoverageDescription(coverage_id, crs, bounds, origin, spacing, xml, request)[source]#

Bases: object

Advertised native grid and original XML, including provider metadata quirks.

Parameters:
  • coverage_id (str)

  • crs (str)

  • bounds (Bounds)

  • origin (tuple[float, float])

  • spacing (tuple[float, float])

  • xml (str)

  • request (RequestRecord)

coverage_id: str#
crs: str#
bounds: Bounds#
origin: tuple[float, float]#
spacing: tuple[float, float]#
xml: str#
request: RequestRecord#
class energy_data_retrieval.sources.ign_terrain.client.IGNTerrainClient(http)[source]#

Bases: object

Bounded native-spacing WCS windows; never a colorized WMS map.

The service exposes a 5 m grid. Finer CNIG 2 m and 0.5 m regional downloads are separate products, not returned by this endpoint. Output precision and nodata follow the actual TIFF, even if DescribeCoverage has generic units.

Parameters:

http (HTTPClient)

capabilities()[source]#
Return type:

TextResponse

describe(region='canaries')[source]#
Parameters:

region (Literal['canaries', 'peninsula'])

Return type:

CoverageDescription

download_window(directory, bounds_wgs84, *, region='canaries', maximum_pixels=4000000)[source]#
Parameters:
  • directory (Path)

  • bounds_wgs84 (Bounds)

  • region (Literal['canaries', 'peninsula'])

  • maximum_pixels (int)

Return type:

tuple[Path, RequestRecord]