WCS implementation
The web coverage service driver extends abstracts WxS driver with the GetCoverage feature.
Nodes
WcsServiceNode
Represents the WCS service. This node has no attribute and has as children WcsOperationNode like GetCoverage. Others children give information about the service like for example ServiceMetadata, that could give information about Supported Format inside a XmlNode. Those children are filled in by the information returned from the service's GetCapabilities request.
WcsOperationNode
Represents an operation than can mde on the service. For WCS service, the mandatory operation are GetCoverage, GetCapabilities, and GetFeatureInfo. Optional operations may be provided by the service and indicated in the possibilities thereof. Those optional operations are also represented as WcsOperationNode.
For perform an operation (mandatory or optional), you can use the operator '[]' with a dict that contains the parameters of the request.
Example:
dict_request = {'COVERAGEID': 'nitrogen_5-15cm_Q0.5'}
describe_coverage = service_wcs['DescribeCoverage'][dict_request]
For mandatory operations GetCoverage and DescribeCoverage you can alternatively use Predicate WcsGetCoveragePredicate and WcsDescribeCoveragePredicate.
Specific class define WcsNodeOperationGetCoverage and WcsNodeOperationDescribeCoverage for accept respectively WcsGetCoveragePredicate WcsDescribeCoveragePredicate.
Example:
predicate = WcsGetCoveragePredicate(coverage_id='nitrogen_5-15cm_Q0.5', format=}
get_coverage = service_wcs['GetCoverage'][predicate]
Installation
pip install drb-impl-wcs
Examples
from drb.factory import DrbFactoryResolver
from drb_impl_wcs import WcsServiceNode
url_wcs='https+wcs://myserver_wcs/wcs'
resolver = DrbFactoryResolver()
service_wcs = WcsServiceNode(url_wcs)
list_cap = service_wcs.children
print('----------------------------------------')
print('list_cap')
print(list_cap)
for child in service_wcs.children:
print(child)
print(child.name)
# => <drb_impl_wXs.wXs_node.WXSNodeOperation object at 0x7fea3b54ac70>
# => GetCapabilities
# => <drb_impl_wcs.wcs_nodes.WcsNodeOperationDescribeCoverage object at 0x7fea3b5652e0>
# => DescribeCoverage
# => <drb_impl_wcs.wcs_nodes.WcsNodeOperationGetCoverage object at 0x7fea3b5765b0>
# => GetCoverage
# => <drb_impl_xml.xml_node.XmlNode object at 0x7fea3b54aca0>
# => Contents
#
dict_request = {'COVERAGE': 'greenland_accumulation', 'VERSION' : '1.1.1'}
describe = service_wcs['DescribeCoverage'][dict_request]
print('-----------------------------------------------------------------')
print('DescribeCoverage: nitrogen_5...')
print(describe)
print(describe[0].name)
# => <drb_impl_xml.xml_node.XmlNode object at 0x7f7aa91f0be0>
# => CoverageDescription
Metadata
Release files for drb-impl-wcs 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| drb-impl-wcs-1.0.0.tar.gz | 21.6 kB | Without provenance | Details for drb-impl-wcs-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| drb_impl_wcs-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for drb_impl_wcs-1.0.0-py3-none-any.whl |
Total release size: 27.3 kB
Release files / drb-impl-wcs-1.0.0.tar.gz
| Download URL | drb-impl-wcs-1.0.0.tar.gz |
|---|---|
| Size | 21.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b8ef8976a2a497f54c052dbe1f8f892e7940d6d84cc8ae99a8185f3784794112
|
|
BLAKE2b-256 checksum How to use checksums |
fe9cefc2089316a38d605b6bff5e8ee143d353bd90be6a0ce9500fc5e296f9ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.13
|
Release files / drb_impl_wcs-1.0.0-py3-none-any.whl
| Download URL | drb_impl_wcs-1.0.0-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0ada9e3811e5a4271dd7f565972e31f1e62c26cc00b9be01c2b3165265324c84
|
|
BLAKE2b-256 checksum How to use checksums |
6702fdb06b24d29132aede6ee4ba3ac6ae16ca9389e3f9609a041411dc2f6490
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.13
|
Security for drb-impl-wcs 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.