eoxserver.resources.coverages.metadata package

Submodules

eoxserver.resources.coverages.metadata.component module

eoxserver.resources.coverages.metadata.interfaces module

class eoxserver.resources.coverages.metadata.interfaces.GDALDatasetMetadataReaderInterface

Bases: object

Interface for GDAL dataset metadata readers.

format(obj)

Returns a format specifier for the given object. Can be ignored, when the reader only supports one format.

read_ds(ds)

Returns a dict with any of the following keys: - identifier (string) - extent (a four tuple of floats) - size (a two-tuple of ints) - projection (an integer or two-tuple of two strings (definition and format)) - footprint (a django.contrib.gis.geos.MultiPolygon) - begin_time (a python datetime.datetime) - end_time (a python datetime.datetime)

The argument ds is a gdal.Dataset.

test_ds(obj)

Return a boolean value, whether or not metadata can be extracted from the given object.

class eoxserver.resources.coverages.metadata.interfaces.MetadataReaderInterface

Bases: object

Interface for metadata readers.

format(obj)

Returns a format specifier for the given object. Can be ignored, when the reader only supports one format.

read(obj)

Returns a dict with any of the following keys: - identifier (string) - extent (a four tuple of floats) - size (a two-tuple of ints) - projection (an integer or two-tuple of two strings (definition and format)) - footprint (a django.contrib.gis.geos.MultiPolygon) - begin_time (a python datetime.datetime) - end_time (a python datetime.datetime)

The argument obj is of an arbitrary type, the reader needs to determine whether or not the type is supported and an exception shall be raised if not.

test(obj)

Return a boolean value, whether or not metadata can be extracted from the given object.

class eoxserver.resources.coverages.metadata.interfaces.MetadataWriterInterface

Bases: object

Interface for metadata writers.

formats
write(values, file_obj, format=None)

Write the given values (a dict) to the file-like object file_obj. The dict contains all of the following entries: - identifier (string) - extent (a four tuple of floats) - size (a two-tuple of ints) - projection (an integer or two-tuple of two strings (definition and format)) - footprint (a django.contrib.gis.geos.MultiPolygon) - begin_time (a python datetime.datetime) - end_time (a python datetime.datetime)

The writer may ignore non-applicable parameters.

Module contents