eoxserver.services.ows.wcs.v20 package¶
Subpackages¶
- eoxserver.services.ows.wcs.v20.encodings package
- Submodules
- eoxserver.services.ows.wcs.v20.encodings.geotiff module
CompressionInvalid
CompressionNotSupported
InterleavingInvalid
JpegQualityInvalid
PredictorInvalid
PredictorNotSupported
TilingInvalid
WCS20GeoTIFFEncodingExtension
WCS20GeoTIFFEncodingExtensionKVPDecoder
WCS20GeoTIFFEncodingExtensionKVPDecoder.compression
WCS20GeoTIFFEncodingExtensionKVPDecoder.interleave
WCS20GeoTIFFEncodingExtensionKVPDecoder.jpeg_quality
WCS20GeoTIFFEncodingExtensionKVPDecoder.predictor
WCS20GeoTIFFEncodingExtensionKVPDecoder.tileheight
WCS20GeoTIFFEncodingExtensionKVPDecoder.tilewidth
WCS20GeoTIFFEncodingExtensionKVPDecoder.tiling
WCS20GeoTIFFEncodingExtensionXMLDecoder
WCS20GeoTIFFEncodingExtensionXMLDecoder.compression
WCS20GeoTIFFEncodingExtensionXMLDecoder.interleave
WCS20GeoTIFFEncodingExtensionXMLDecoder.jpeg_quality
WCS20GeoTIFFEncodingExtensionXMLDecoder.namespaces
WCS20GeoTIFFEncodingExtensionXMLDecoder.predictor
WCS20GeoTIFFEncodingExtensionXMLDecoder.tileheight
WCS20GeoTIFFEncodingExtensionXMLDecoder.tilewidth
WCS20GeoTIFFEncodingExtensionXMLDecoder.tiling
parse_jpeg_quality()
parse_multiple_16()
- Module contents
- eoxserver.services.ows.wcs.v20.packages package
Submodules¶
eoxserver.services.ows.wcs.v20.describecoverage module¶
- class eoxserver.services.ows.wcs.v20.describecoverage.WCS20DescribeCoverageHandler¶
Bases:
WCSDescribeCoverageHandlerBase
- get_decoder(request)¶
Interface method to get the correct decoder for this request.
- get_params(coverages, decoder)¶
Interface method to return a render params object from the given coverages/decoder.
- index = 5¶
- methods = ['GET', 'POST']¶
- versions = ('2.0.0', '2.0.1')¶
- class eoxserver.services.ows.wcs.v20.describecoverage.WCS20DescribeCoverageKVPDecoder(params)¶
Bases:
Decoder
- property coverage_ids¶
Property getter function.
- class eoxserver.services.ows.wcs.v20.describecoverage.WCS20DescribeCoverageXMLDecoder(tree)¶
Bases:
Decoder
- property coverage_ids¶
Property getter function.
- namespaces = {'crs': 'http://www.opengis.net/wcs/crs/1.0', 'eop': 'http://www.opengis.net/eop/2.0', 'gml': 'http://www.opengis.net/gml/3.2', 'gmlcov': 'http://www.opengis.net/gmlcov/1.0', 'int': 'http://www.opengis.net/wcs/interpolation/1.0', 'ogc': 'http://www.opengis.net/ogc', 'om': 'http://www.opengis.net/om/2.0', 'ows': 'http://www.opengis.net/ows/2.0', 'rsub': 'http://www.opengis.net/wcs/range-subsetting/1.0', 'scal': 'http://www.opengis.net/wcs/scaling/1.0', 'swe': 'http://www.opengis.net/swe/2.0', 'wcs': 'http://www.opengis.net/wcs/2.0', 'wcseo': 'http://www.opengis.net/wcs/wcseo/1.0', 'xlink': 'http://www.w3.org/1999/xlink'}¶
eoxserver.services.ows.wcs.v20.describeeocoverageset module¶
- class eoxserver.services.ows.wcs.v20.describeeocoverageset.WCS20DescribeEOCoverageSetHandler¶
Bases:
object
- property constraints¶
- get_decoder(request)¶
- handle(request)¶
- index = 20¶
- methods = ['GET', 'POST']¶
- request = 'DescribeEOCoverageSet'¶
- service = 'WCS'¶
- versions = ('2.0.0', '2.0.1')¶
- class eoxserver.services.ows.wcs.v20.describeeocoverageset.WCS20DescribeEOCoverageSetKVPDecoder(params)¶
Bases:
Decoder
,SectionsMixIn
- property containment¶
Property getter function.
- property count¶
Property getter function.
- property eo_ids¶
Property getter function.
- property sections¶
Property getter function.
- property subsets¶
Property getter function.
- class eoxserver.services.ows.wcs.v20.describeeocoverageset.WCS20DescribeEOCoverageSetXMLDecoder(tree)¶
Bases:
Decoder
,SectionsMixIn
- property containment¶
Property getter function.
- property count¶
Property getter function.
- property eo_ids¶
Property getter function.
- namespaces = {'crs': 'http://www.opengis.net/wcs/crs/1.0', 'eop': 'http://www.opengis.net/eop/2.0', 'gml': 'http://www.opengis.net/gml/3.2', 'gmlcov': 'http://www.opengis.net/gmlcov/1.0', 'int': 'http://www.opengis.net/wcs/interpolation/1.0', 'ogc': 'http://www.opengis.net/ogc', 'om': 'http://www.opengis.net/om/2.0', 'ows': 'http://www.opengis.net/ows/2.0', 'rsub': 'http://www.opengis.net/wcs/range-subsetting/1.0', 'scal': 'http://www.opengis.net/wcs/scaling/1.0', 'swe': 'http://www.opengis.net/swe/2.0', 'wcs': 'http://www.opengis.net/wcs/2.0', 'wcseo': 'http://www.opengis.net/wcs/wcseo/1.0', 'xlink': 'http://www.w3.org/1999/xlink'}¶
- property sections¶
Property getter function.
- property subsets¶
Property getter function.
- eoxserver.services.ows.wcs.v20.describeeocoverageset.pos_int(value)¶
eoxserver.services.ows.wcs.v20.encoders module¶
- class eoxserver.services.ows.wcs.v20.encoders.GMLCOV10Encoder(*args, **kwargs)¶
Bases:
WCS20BaseXMLEncoder
,GML32Encoder
- encode_bounded_by(coverage, grid=None, subset_extent=None)¶
- encode_domain_set(coverage, srid=None, size=None, extent=None, rectified=True)¶
- encode_field(field)¶
- encode_grid_envelope(sizes)¶
- encode_nil_values(nil_values)¶
- encode_range_type(range_type)¶
- encode_rectified_grid(grid, coverage, name)¶
- encode_referenceable_grid(size, sr, grid_name)¶
- get_gml_id(identifier)¶
- class eoxserver.services.ows.wcs.v20.encoders.WCS20BaseXMLEncoder¶
Bases:
object
- get_coverage_subtype(coverage)¶
- class eoxserver.services.ows.wcs.v20.encoders.WCS20CapabilitiesXMLEncoder¶
Bases:
WCS20BaseXMLEncoder
,OWS20Encoder
- encode_capabilities(sections, conf, coverages=None, dataset_series=None, request=None)¶
- encode_contents(coverages, dataset_series_set)¶
- encode_service_metadata()¶
- get_conf()¶
- get_schema_locations()¶
Interface method. Returns a dict mapping namespace URIs to a network locations.
- class eoxserver.services.ows.wcs.v20.encoders.WCS20CoverageDescriptionXMLEncoder(*args, **kwargs)¶
Bases:
GMLCOV10Encoder
- encode_coverage_description(coverage)¶
- encode_coverage_descriptions(coverages)¶
- get_schema_locations()¶
- class eoxserver.services.ows.wcs.v20.encoders.WCS20EOXMLEncoder(*args, **kwargs)¶
Bases:
WCS20CoverageDescriptionXMLEncoder
,EOP20Encoder
,OWS20Encoder
- alter_rectified_dataset(coverage, request, tree, subset_polygon=None)¶
- alter_rectified_stitched_mosaic(coverage, request, tree, subset_polygon=None)¶
- calculate_contribution(footprint, contributions, subset_polygon=None)¶
- encode_contributing_datasets(mosaic, subset_polygon=None)¶
- encode_coverage_description(coverage, srid=None, size=None, extent=None, footprint=None)¶
- encode_dataset_series_description(dataset_series)¶
- encode_dataset_series_descriptions(dataset_series_set)¶
- encode_eo_coverage_set_description(dataset_series_set, coverages, number_matched=None, number_returned=None)¶
- encode_eo_metadata(coverage, request=None, subset_polygon=None)¶
- encode_range_set(reference, mime_type)¶
- encode_rectified_dataset(coverage, request, reference, mime_type, subset_polygon=None)¶
- encode_rectified_stitched_mosaic(coverage, request, reference, mime_type, subset_polygon=None)¶
- encode_referenceable_dataset(coverage, range_type, reference, mime_type, subset=None)¶
- get_schema_locations()¶
Interface method. Returns a dict mapping namespace URIs to a network locations.
eoxserver.services.ows.wcs.v20.exceptionhandler module¶
- class eoxserver.services.ows.wcs.v20.exceptionhandler.OWS20ExceptionHTMLEncoder¶
Bases:
object
- property content_type¶
- encode_exception(message, version, code, locator=None, request=None, exception=None)¶
- serialize(message)¶
- class eoxserver.services.ows.wcs.v20.exceptionhandler.WCS20ExceptionHandler(*args)¶
Bases:
Component
- get_encoder(request)¶
- handle_exception(request, exception)¶
- request = None¶
- service = 'WCS'¶
- versions = ('2.0.0', '2.0.1')¶
eoxserver.services.ows.wcs.v20.getcapabilities module¶
- class eoxserver.services.ows.wcs.v20.getcapabilities.WCS20GetCapabilitiesHandler¶
Bases:
WCSGetCapabilitiesHandlerBase
- additional_parameters = {'cql': None}¶
- get_decoder(request)¶
Interface method to get the correct decoder for this request.
- get_params(models, decoder)¶
Default method to return a render params object from the given coverages/decoder.
- lookup_coverages(decoder)¶
Default implementation of the coverage lookup. Simply returns all coverages in no specific order.
- methods = ['GET', 'POST']¶
- versions = ('2.0.0', '2.0.1')¶
- class eoxserver.services.ows.wcs.v20.getcapabilities.WCS20GetCapabilitiesKVPDecoder(params)¶
Bases:
Decoder
,SectionsMixIn
- property acceptformats¶
Property getter function.
- property acceptlanguages¶
Property getter function.
- property acceptversions¶
Property getter function.
- property cql¶
Property getter function.
- property datasetseriescql¶
Property getter function.
- property sections¶
Property getter function.
- property updatesequence¶
Property getter function.
- class eoxserver.services.ows.wcs.v20.getcapabilities.WCS20GetCapabilitiesXMLDecoder(tree)¶
Bases:
Decoder
,SectionsMixIn
- property acceptformats¶
Property getter function.
- property acceptlanguages¶
Property getter function.
- property acceptversions¶
Property getter function.
- cql = None¶
- datasetseriescql = None¶
- namespaces = {'crs': 'http://www.opengis.net/wcs/crs/1.0', 'eop': 'http://www.opengis.net/eop/2.0', 'gml': 'http://www.opengis.net/gml/3.2', 'gmlcov': 'http://www.opengis.net/gmlcov/1.0', 'int': 'http://www.opengis.net/wcs/interpolation/1.0', 'ogc': 'http://www.opengis.net/ogc', 'om': 'http://www.opengis.net/om/2.0', 'ows': 'http://www.opengis.net/ows/2.0', 'rsub': 'http://www.opengis.net/wcs/range-subsetting/1.0', 'scal': 'http://www.opengis.net/wcs/scaling/1.0', 'swe': 'http://www.opengis.net/swe/2.0', 'wcs': 'http://www.opengis.net/wcs/2.0', 'wcseo': 'http://www.opengis.net/wcs/wcseo/1.0', 'xlink': 'http://www.w3.org/1999/xlink'}¶
- property sections¶
Property getter function.
- property updatesequence¶
Property getter function.
eoxserver.services.ows.wcs.v20.getcoverage module¶
- class eoxserver.services.ows.wcs.v20.getcoverage.WCS20GetCoverageHandler¶
Bases:
WCSGetCoverageHandlerBase
- get_decoder(request)¶
Interface method to get the correct decoder for this request.
- get_params(coverage, decoder, request)¶
Interface method to return a render params object from the given coverages/decoder.
- get_subsets(decoder)¶
Interface method to get the subsets for this request.
- methods = ['GET', 'POST']¶
- versions = ('2.0.0', '2.0.1')¶
- class eoxserver.services.ows.wcs.v20.getcoverage.WCS20GetCoverageKVPDecoder(params)¶
Bases:
Decoder
- property coverage_id¶
Property getter function.
- property format¶
Property getter function.
- property interpolation¶
Property getter function.
- property mediatype¶
Property getter function.
- property outputcrs¶
Property getter function.
- property rangesubset¶
Property getter function.
- property scaleaxes¶
Property getter function.
- property scaleextent¶
Property getter function.
- property scalefactor¶
Property getter function.
- property scalesize¶
Property getter function.
- property subsets¶
Property getter function.
- property subsettingcrs¶
Property getter function.
- class eoxserver.services.ows.wcs.v20.getcoverage.WCS20GetCoverageXMLDecoder(tree)¶
Bases:
Decoder
- property coverage_id¶
Property getter function.
- property format¶
Property getter function.
- property interpolation¶
Property getter function.
- property mediatype¶
Property getter function.
- namespaces = {'crs': 'http://www.opengis.net/wcs/crs/1.0', 'eop': 'http://www.opengis.net/eop/2.0', 'gml': 'http://www.opengis.net/gml/3.2', 'gmlcov': 'http://www.opengis.net/gmlcov/1.0', 'int': 'http://www.opengis.net/wcs/interpolation/1.0', 'ogc': 'http://www.opengis.net/ogc', 'om': 'http://www.opengis.net/om/2.0', 'ows': 'http://www.opengis.net/ows/2.0', 'rsub': 'http://www.opengis.net/wcs/range-subsetting/1.0', 'scal': 'http://www.opengis.net/wcs/scaling/1.0', 'swe': 'http://www.opengis.net/swe/2.0', 'wcs': 'http://www.opengis.net/wcs/2.0', 'wcseo': 'http://www.opengis.net/wcs/wcseo/1.0', 'xlink': 'http://www.w3.org/1999/xlink'}¶
- property outputcrs¶
Property getter function.
- property rangesubset¶
Property getter function.
- property scaleaxes¶
Property getter function.
- property scaleextent¶
Property getter function.
- property scalefactor¶
Property getter function.
- property scalesize¶
Property getter function.
- property subsets¶
Property getter function.
- property subsettingcrs¶
Property getter function.
eoxserver.services.ows.wcs.v20.geteocoverageset module¶
- class eoxserver.services.ows.wcs.v20.geteocoverageset.TempfileIterator(filename, chunksize=2048, delete=True)¶
Bases:
object
- close()¶
- class eoxserver.services.ows.wcs.v20.geteocoverageset.WCS20GetEOCoverageSetHandler¶
Bases:
object
- property constraints¶
- get_decoder(request)¶
- get_pacakge_writer(package_format, params)¶
- get_params(coverage, decoder, request)¶
- get_renderer(params)¶
- handle(request)¶
- index = 21¶
- methods = ['GET', 'POST']¶
- request = 'GetEOCoverageSet'¶
- service = 'WCS'¶
- versions = ('2.0.0', '2.0.1')¶
- class eoxserver.services.ows.wcs.v20.geteocoverageset.WCS20GetEOCoverageSetKVPDecoder(params)¶
Bases:
Decoder
- property apply_subset¶
Property getter function.
- property containment¶
Property getter function.
- property count¶
Property getter function.
- property eo_ids¶
Property getter function.
- property format¶
Property getter function.
- property interpolation¶
Property getter function.
- property mediatype¶
Property getter function.
- property outputcrs¶
Property getter function.
- property package_format¶
Property getter function.
- property scaleaxes¶
Property getter function.
- property scaleextent¶
Property getter function.
- property scalefactor¶
Property getter function.
- property scalesize¶
Property getter function.
- property start_index¶
Property getter function.
- property subsets¶
Property getter function.
- property subsettingcrs¶
Property getter function.
- class eoxserver.services.ows.wcs.v20.geteocoverageset.WCS20GetEOCoverageSetXMLDecoder(tree)¶
Bases:
Decoder
- property apply_subset¶
Property getter function.
- property containment¶
Property getter function.
- property count¶
Property getter function.
- property eo_ids¶
Property getter function.
- property format¶
Property getter function.
- property interpolation¶
Property getter function.
- property mediatype¶
Property getter function.
- namespaces = {'crs': 'http://www.opengis.net/wcs/crs/1.0', 'int': 'http://www.opengis.net/wcs/interpolation/1.0', 'scal': 'http://www.opengis.net/wcs/scaling/1.0', 'wcs': 'http://www.opengis.net/wcs/2.0', 'wcseo11': 'http://www.opengis.net/wcs/wcseo/1.1'}¶
- property outputcrs¶
Property getter function.
- property package_format¶
Property getter function.
- property scaleaxes¶
Property getter function.
- property scaleextent¶
Property getter function.
- property scalefactor¶
Property getter function.
- property scalesize¶
Property getter function.
- property start_index¶
Property getter function.
- property subsets¶
Property getter function.
- property subsettingcrs¶
Property getter function.
- eoxserver.services.ows.wcs.v20.geteocoverageset.get_package_writers()¶
- eoxserver.services.ows.wcs.v20.geteocoverageset.parse_apply_subset(value)¶
- eoxserver.services.ows.wcs.v20.geteocoverageset.parse_package_format(string)¶
- eoxserver.services.ows.wcs.v20.geteocoverageset.pos_int(value)¶
eoxserver.services.ows.wcs.v20.parameters module¶
- class eoxserver.services.ows.wcs.v20.parameters.WCS20CapabilitiesRenderParams(coverages, dataset_series=None, sections=None, accept_languages=None, accept_formats=None, updatesequence=None, request=None)¶
Bases:
WCSCapabilitiesRenderParams
- property dataset_series¶
- class eoxserver.services.ows.wcs.v20.parameters.WCS20CoverageDescriptionRenderParams(coverages)¶
Bases:
CoverageDescriptionRenderParams
- coverage_ids_key_name = 'coverageid'¶
- class eoxserver.services.ows.wcs.v20.parameters.WCS20CoverageRenderParams(coverage, subsets=None, rangesubset=None, format=None, outputcrs=None, mediatype=None, interpolation=None, scalefactor=None, scales=None, encoding_params=None, http_request=None)¶
Bases:
CoverageRenderParams
- coverage_id_key_name = 'coverageid'¶
- property encoding_params¶
- property format¶
- property http_request¶
- property interpolation¶
- property mediatype¶
- property outputcrs¶
- property rangesubset¶
- property scalefactor¶
- property scales¶
- subset_to_kvp(subset)¶
- property subsets¶
eoxserver.services.ows.wcs.v20.util module¶
- class eoxserver.services.ows.wcs.v20.util.RangeSubset(iterable=(), /)¶
Bases:
list
- get_band_indices(range_type, offset=0)¶
- class eoxserver.services.ows.wcs.v20.util.Scale(axis)¶
Bases:
object
Abstract base class for all Scaling operations.
- class eoxserver.services.ows.wcs.v20.util.ScaleAxis(axis, scale)¶
Bases:
Scale
Scale a single axis by a specific value.
- class eoxserver.services.ows.wcs.v20.util.ScaleExtent(axis, low, high)¶
Bases:
Scale
Scale a single axis to a specific extent.
- class eoxserver.services.ows.wcs.v20.util.ScaleSize(axis, size)¶
Bases:
Scale
Scale a single axis to a specific size.
- class eoxserver.services.ows.wcs.v20.util.SectionsMixIn¶
Bases:
object
Mix-in for request decoders that use sections.
- section_included(*sections)¶
See if one of the sections is requested.
- eoxserver.services.ows.wcs.v20.util.float_or_star(value)¶
Parses a string value that is either a floating point value or the ‘*’ character. Raises a ValueError if no float could be parsed.
- eoxserver.services.ows.wcs.v20.util.get_parser_for_axis(axis)¶
Returns the correct parsing function for the given axis.
- eoxserver.services.ows.wcs.v20.util.parse_interpolation(raw)¶
Returns a unified string denoting the interpolation method used.
- eoxserver.services.ows.wcs.v20.util.parse_quoted_temporal(value)¶
Parses a quoted temporal value.
- eoxserver.services.ows.wcs.v20.util.parse_range_subset_kvp(string)¶
Parse a rangesubset structure from the WCS 2.0 KVP notation.
- eoxserver.services.ows.wcs.v20.util.parse_range_subset_xml(elem)¶
Parse a rangesubset structure from the WCS 2.0 XML notation.
- eoxserver.services.ows.wcs.v20.util.parse_scaleaxis_kvp(string)¶
Parses the KVP notation of a single scale axis.
- eoxserver.services.ows.wcs.v20.util.parse_scaleaxis_xml(elem)¶
Parses the XML notation of a single scale axis.
- eoxserver.services.ows.wcs.v20.util.parse_scaleextent_kvp(string)¶
Parses the KVP notation of a single scale extent.
- eoxserver.services.ows.wcs.v20.util.parse_scaleextent_xml(elem)¶
Parses the XML notation of a single scale extent.
- eoxserver.services.ows.wcs.v20.util.parse_scalesize_kvp(string)¶
Parses the KVP notation of a single scale size.
- eoxserver.services.ows.wcs.v20.util.parse_scalesize_xml(elem)¶
Parses the XML notation of a single scale size.
- eoxserver.services.ows.wcs.v20.util.parse_subset_kvp(string)¶
Parse one subset from the WCS 2.0 KVP notation.
- eoxserver.services.ows.wcs.v20.util.parse_subset_xml(elem)¶
Parse one subset from the WCS 2.0 XML notation. Expects an lxml.etree Element as parameter.