WXS implementation
This drb-impl-wXs module implements the OWS services (WFS, WMS, WCS, ...). For more information about OWS Service see https://www.ogc.org/ or/and https://www.ogc.org/standards/wms OGC catalog, this implementation is abstract, it means that to have a usable OWS service implementation, we have to create an implementation for this service dependent on this abstract implementation. Sot have a signature, its derived implementations will have to define one
Nodes
WXSServiceNode
Abstract, have to be derived. Represents the WXS service (like WMS, WCS, ...). This node has no attribute and has as children request (like GetMap) WXsOperationNode and other children that define the Service as XmlNode
WXSNodeOperation
Represents an operation than can be used on the service.
Installation
pip install drb-impl-wxs
Usages
To implement an OWS Web Service, we have to create a class based on WXSServiceNode and define at least the read_capabilities method.
class WmsServiceNode(WXSServiceNode):
...
def read_capabilities(self, node_capabilities):
....
After we can use this node like other DRB Node The operation of service are available across the children of the node service, See drb_impl_wms or drb_impl_wcs for more information.
Example with a drb_impl_wms impl
url_wms='https+wms://wms.fr/geoserver/demo/wms?'
# The service use a special
service_wms = WmsServiceNode(url_wms)
dict_request = {'layers': 'mgrs_region',
'format': 'image/png',
'height': 256,
'width': 256,
'crs': 'EPSG:3857',
'bbox': '7514065.628545968,7514065.628545967,10018754.171394622,10018754.171394628'}
get_map = service_wms['GetMap'][dict_request]
print('----------------------------------------')
print('GetMap : with parameter return image')
print(get_map)
# => return an drb image
# url of request
# https://wms.fr/geoserver/demo/wms?
# &service=WMS&
# request=GetMap&
# layers=mgrs_region&
# format=image%2Fpng&
# crs=EPSG%3A3857&
# bbox=7514065.628545968,7514065.628545967,10018754.171394622,10018754.171394628
Example with a drb_impl_wcs impl
url_wcs='https+wcs://wcs/mapserv'
# The service use a special
service_wcs = WcsServiceNode(url_wcs, auth=None, map='/map/nitrogen.map')
# SUBSET is use twice with two values, we use a list to in dict
dict_request = {'COVERAGEID': 'nitrogen_5-15cm_Q0.5',
'VERSION': '2.0.1',
'SUBSET': ['X(-1784000,-1140000)', 'Y(1356000,1863000)'],
'FORMAT': 'GEOTIFF_INT16',
'SUBSETTINGCRS': 'http://www.opengis.net/def/crs/EPSG/0/152160',
'OUTPUTCRS': 'http://www.opengis.net/def/crs/EPSG/0/152160'
}
get_map = service_wcs['GetCoverage'][dict_request]
# url of request
# https://wcs/mapserv?
# map=%2Fmap%2Fnitrogen.map&
# SERVICE=WCS&VERSION=2.0.1&
# REQUEST=GetCoverage&
# COVERAGEID=nitrogen_5-15cm_Q0.5&
# FORMAT=GEOTIFF_INT16&
# SUBSET=X(-1784000%2C-1140000)&SUBSET=Y(1356000%2C1863000)&
# SUBSETTINGCRS=http%3A%2F%2Fwww.opengis.net%2Fdef%2Fcrs%2FEPSG%2F0%2F152160&
# OUTPUTCRS=http%3A%2F%2Fwww.opengis.net%2Fdef%2Fcrs%2FEPSG%2F0%2F152160
# => return the image
Metadata
Release files for drb-impl-wXs 1.0.3
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-wXs-1.0.3.tar.gz | 23.0 kB | Without provenance | Details for drb-impl-wXs-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| drb_impl_wXs-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for drb_impl_wXs-1.0.3-py3-none-any.whl |
Total release size: 29.5 kB
Release files / drb-impl-wXs-1.0.3.tar.gz
| Download URL | drb-impl-wXs-1.0.3.tar.gz |
|---|---|
| Size | 23.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1094d86eeefdd039286997fc7fc4c0d82dead5945bd0666ac88e4fda4d7203f8
|
|
BLAKE2b-256 checksum How to use checksums |
353eeb0eb30916ed0bb8aca991a3f8d0b7e6ab0fefb3473d64cb163a21126122
|
| 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_wXs-1.0.3-py3-none-any.whl
| Download URL | drb_impl_wXs-1.0.3-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c40720d6ebb41e7ca61b6a0dd9ef5cc44a1bb22a0af1bc80fdca8c169dc1401a
|
|
BLAKE2b-256 checksum How to use checksums |
4eafc64745388b1f55635d20f3673e0d9cd7c5f6693a7e4d7507f982d80a9ca7
|
| 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-wXs 1.0.3
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.