This module provides implementations of coverage interfaces as defined in eoxserver.resources.coverages.interfaces. These classes wrap the resources stored in the database and augment them with additional application logic.
This is the base class for all coverage wrappers. It is a partial implementation of CoverageInterface. It inherits from ResourceWrapper.
Returns the Coverage ID.
This method shall return the coverage subtype as defined in the WCS 2.0 EO-AP (EO-WCS). It must be overridden by concrete coverage wrappers. By default this method raises InternalError.
See the definition of getCoverageSubtype() in CoverageInterface for possible return values.
Returns the a CoverageDataWrapper object that wraps the coverage data, raises InternalError by default.
Returns the data structure type of the coverage. To be implemented by subclasses, raises InternalError by default.
Returns a list of (metadata_key, metadata_value) pairs that represent MapServer metadata tags to be attached to MapServer layers.
This method shall return a tuple (xsize, ysize) for the coverage wrapped by the implementation. It has to be overridden by concrete coverage wrappers. By default this method raises InternalError.
This method shall return the internal coverage type code. It must be overridden by concrete coverage wrappers. By default this method raises InternalError.
See the definition of getType() in CoverageInterface for possible return values.
Returns True if the Coverage matches the given filter expressions and False otherwise.
This is the wrapper for Dataset Series. It inherits from EOMetadataWrapper. It implements DatasetSeriesInterface.
Adds the EO coverage of type res_type with primary key res_id to the dataset series. An InternalError is raised if the type cannot be handled by Dataset Series. Supported wrapper types are:
This method returns True if the Dataset Series contains the EO Coverage specifiec by its wrapper, False otherwise.
This method returns a list of directories which hold the dataset series data.
This method returns a list of RectifiedDataset or ReferenceableDataset wrappers associated with the dataset series. It accepts an optional filter_exprs parameter which is expected to be a list of filter expressions (see module eoxserver.resources.coverages.filters) or None. Only the Datasets matching the filters will be returned; in case no matching Datasets are found an empty list will be returned.
This method returns a list of EOCoverage wrappers (for datasets and stitched mosaics) associated with the dataset series wrapped by the implementation. It accepts an optional filter_exprs parameter which is expected to be a list of filter expressions (see module eoxserver.resources.coverages.filters) or None. Only the EOCoverages matching the filters will be returned; in case no matching coverages are found an empty list will be returned.
Returns the filename pattern for image files to be included into the stitched mosaic. The pattern is expressed in the format accepted by fnmatch.fnmatch().
Returns "eo.dataset_series".
Removes the EO coverage specified by its wrapper from the dataset series. An InternalError is raised if the type cannot be handled by Dataset Series. Supported wrapper types are:
This is a partial implementation of EOCoverageInterface. It inherits from CoverageWrapper and EOMetadataWrapper.
This method shall return the datasets associated with this coverage, possibly filtered by the optional filter expressions. It must be overridden by child implementations. By default InternalError is raised.
This method shall return the EO Coverage subtype according to the WCS 2.0 EO-AP (EO-WCS). It must be overridden by child implementations. By default InternalError is raised.
Returns None.
Note
The lineage element has yet to be specified in detail in the WCS 2.0 EO-AP (EO-WCS).
This is the base class for EO Dataset wrapper implementations. It inherits from EOCoverageWrapper and PackagedDataWrapper.
This method applies the given filter expressions to the model and returns a list containing the wrapper in case the filters are matched or an empty list otherwise.
This wrapper class is intended as a mix-in for EO coverages and dataset series as defined in the WCS 2.0 EO-AP (EO-WCS).
Returns the acquisition begin time as datetime.datetime object.
Returns the EO O&M XML text stored in the metadata.
Returns the EO ID of the object.
Returns the acquisition end time as datetime.datetime object.
Returns the acquisition footprint as django.contrib.gis.geos.GEOSGeometry object in the EPSG:4326 CRS.
Returns the WGS 84 extent as 4-tuple of floating point coordinates (minlon, minlat, maxlon, maxlat).
This wrapper is intended as a mix-in for coverages that are stored as data packages.
Return the data package wrapper associated with the coverage, i.e. an instance of a subclass of DataPackageWrapper.
Returns the data structure type of the underlying data package
This is the wrapper for Rectified Datasets. It inherits from EODatasetWrapper and RectifiedGridWrapper. It implements RectifiedDatasetInterface.
Returns True if this Rectified Dataset is contained in the Rectified Stitched Mosaic or Dataset Series specified by its wrapper, False otherwise.
Always returns False. A Dataset does not contain other Datasets.
This method returns the number of Dataset Series and Rectified Stitched Mosaics containing this Rectified Dataset.
This method returns a list of DatasetSeriesWrapper and RectifiedStitchedMosaicWrapper objects containing this Rectified Dataset, or an empty list.
Returns RectifiedGridCoverage.
Returns RectifiedDataset.
Returns the pixel size of the dataset as 2-tuple of integers (size_x, size_y).
Returns eo.rect_dataset
This wrapper is intended as a mix-in for coverages that rely on a rectified grid. It implements RectifiedGridInterface.
Returns the coverage extent as a 4-tuple of floating point coordinates (minx, miny, maxx, maxy) expressed in the coverage CRS as defined by the SRID returned by getSRID().
Returns the coverage resolution as a 2-tuple of float values for the x and y axes (resx, resy) expressed in the unit of measure of the coverage CRS as defined by the SRID returned by getSRID().
Returns the SRID of the coverage CRS.
This is the wrapper for Rectified Stitched Mosaics. It inherits from EOCoverageWrapper and RectifiedGridWrapper. It implements RectifiedStitchedMosaicInterface.
Adds a Rectified Dataset specified by its wrapper. An InternalError is raised if the wrapper type is not equal to eo.rect_dataset or if the grids of the dataset is not compatible to the grid of the Rectified Stitched Mosaic.
This method returns True if this Stitched Mosaic is contained in the Dataset Series specified by its wrapper, False otherwise.
This method returns True if the a Rectified Dataset specified by its wrapper is contained within this Stitched Mosaic, False otherwise.
This method returns the number of Dataset Series containing this Stitched Mosaic.
This method returns a list of DatasetSeriesWrapper objects containing this Stitched Mosaic or an empty list.
Returns RectifiedGridCoverage.
This method returns a list of directories which hold the stitched mosaic data.
Returns a list of RectifiedDatasetWrapper objects contained in the stitched mosaic wrapped by the implementation. It accepts an optional filter_exprs parameter which is expected to be a list of filter expressions (see module eoxserver.resources.coverages.filters) or None. Only the datasets matching the filters will be returned; in case no matching coverages are found an empty list will be returned.
Returns RectifiedStitchedMosaic.
Returns the filename pattern for image files to be included into the stitched mosaic. The pattern is expressed in the format accepted by fnmatch.fnmatch().
Returns the path to the shape file.
Returns the pixel size of the mosaic as 2-tuple of integers (size_x, size_y).
Returns eo.rect_stitched_mosaic
Removes a Rectified Dataset specified by its wrapper. An InternalError is raised if the wrapper type is not equal to eo.rect_dataset.
This is the wrapper for Referenceable Datasets. It inherits from EODatasetWrapper and ReferenceableGridWrapper.
Note
The design of Referenceable Datasets is still TBD.
This method returns True if this Referenceable Dataset is contained in the Dataset Series specified by its wrapper, False otherwise.
Always returns False. A Dataset cannot contain other Datasets.
This method returns the number of Dataset Series containing this Referenceable Dataset.
This method returns a list of DatasetSeriesWrapper objects containing this Referenceable Dataset, or an empty list.
Returns ReferenceableGridCoverage.
Returns ReferenceableDataset.
Returns the pixel size of the dataset as 2-tuple of integers (size_x, size_y).
Returns eo.ref_dataset
This wrapper is intended as a mix-in for coverages that rely on referenceable grids. It has yet to be implemented.
Note
The design for referenceable grids is yet TBD.