DRB WCS OGC Service driver
Project description
WCS driver
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-driver-wcs
Examples
from drb.drivers.wcs import WcsServiceNode
url_wcs='https+wcs://myserver_wcs/wcs'
service_wcs = WcsServiceNode(url_wcs)
list_cap = service_wcs[:]
print('----------------------------------------')
print('list_cap')
print(list_cap)
for child in service_wcs:
print(child)
print(child.name)
# => <drb_driver_wxs.wXs_node.WXSNodeOperation object at 0x7fea3b54ac70>
# => GetCapabilities
# => <drb_driver_wcs.wcs_nodes.WcsNodeOperationDescribeCoverage object at 0x7fea3b5652e0>
# => DescribeCoverage
# => <drb_driver_wcs.wcs_nodes.WcsNodeOperationGetCoverage object at 0x7fea3b5765b0>
# => GetCoverage
# => <drb_driver_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_driver_xml.xml_node.XmlNode object at 0x7f7aa91f0be0>
# => CoverageDescription
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file drb-driver-wcs-1.3.0.tar.gz
.
File metadata
- Download URL: drb-driver-wcs-1.3.0.tar.gz
- Upload date:
- Size: 30.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fae5a81e0d8d19320e5edacaf547a995166c8ad005cd5a4be404524c6aba801 |
|
MD5 | 6e6fdc7859784283490432d31780c9f5 |
|
BLAKE2b-256 | da6aef5e720753bab7956e38ad49ab751f8402640600c9d3c2672c0b9b4aa665 |
File details
Details for the file drb_driver_wcs-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: drb_driver_wcs-1.3.0-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a10735b0bbcd35d83a024dadbcc0611a93db597e50eb624b34de260e84d99efe |
|
MD5 | 07d9d46cc414702e230078346eca289a |
|
BLAKE2b-256 | bfe24b9a2e8484804695e92b595764dba13e5b8f5d648f39ad40d6226a7dcf30 |