Skip to main content

WXS driver

This drb-driver-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 driver is abstract, it means that to have a usable OWS service driver, we have to create a driver for this service dependent on this abstract driver. Sot have a signature, its derived drivers 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) WXSNodeOperation and other children that define the Service as XmlNode

WXSNodeOperation

Represents an operation than can be used on the service.

Installation

pip install drb-driver-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.drivers.wms or drb.drivers.wcs for more information.

Example with a drb.drivers.wms driver

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.drivers.wcs driver

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-driver-wxs 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for drb-driver-wxs 1.4.0
File Size Uploaded
drb_driver_wxs-1.4.0.tar.gz 31.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for drb-driver-wxs 1.4.0
File Interpreter ABI Platform
drb_driver_wxs-1.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 40.3 kB

Release files / drb_driver_wxs-1.4.0.tar.gz

Download URL drb_driver_wxs-1.4.0.tar.gz
Size 31.2 kB
Tags Source
SHA-256 checksum
How to use checksums
cb243757038d75cda3e4f436bd51201bf76f6d37bf9e82141e291b384cd010cc
BLAKE2b-256 checksum
How to use checksums
e87ce2a5131473c327b4781481e2606905c3700f5c7df3cf5a470748333dea60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / drb_driver_wxs-1.4.0-py3-none-any.whl

Download URL drb_driver_wxs-1.4.0-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
feb0b9bbdd7292188583c29586eedd7a660a54d132e9b6d61b7dbeaa23811da5
BLAKE2b-256 checksum
How to use checksums
63d0d6608ed8828c70add7b8abcda55d0401ed4ecd66522f3735cd71d79caed2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release history Release notifications | RSS feed

This release

1.4.0 This release

2 release files

1.3.3

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page