geonode.geoserver.ows ===================== .. py:module:: geonode.geoserver.ows Attributes ---------- .. autoapisummary:: geonode.geoserver.ows.logger geonode.geoserver.ows.ogc_settings geonode.geoserver.ows.DEFAULT_EXCLUDE_FORMATS Functions --------- .. autoapisummary:: geonode.geoserver.ows._get_nsmap geonode.geoserver.ows._wcs_get_capabilities geonode.geoserver.ows._wcs_describe_coverage geonode.geoserver.ows._get_wcs_axis_labels geonode.geoserver.ows._wcs_link geonode.geoserver.ows.wcs_links geonode.geoserver.ows._wfs_get_capabilities geonode.geoserver.ows._wfs_link geonode.geoserver.ows.wfs_links geonode.geoserver.ows._wms_get_capabilities geonode.geoserver.ows._wms_link geonode.geoserver.ows.wms_links Module Contents --------------- .. py:data:: logger .. py:data:: ogc_settings .. py:data:: DEFAULT_EXCLUDE_FORMATS :value: ['PNG', 'JPEG', 'GIF', 'TIFF'] .. py:function:: _get_nsmap(original: Dict, key: str) Prepare namespaces dict for running xpath queries. lxml complains when a namespaces dict has an entry with None as a key. .. py:function:: _wcs_get_capabilities() .. py:function:: _wcs_describe_coverage(coverage_id) .. py:function:: _get_wcs_axis_labels(coverage_id) This utility method uses the GeoNode Proxy to fetch the "DescribeCoverage". The result is used to retrieve the "Envelope" and "axisLabels" that the WCS declares according to the provided "outputCrs". The response will look similar to the following: .. code-block:: xml Generated from WorldImage gebco_2020_n54.0659179519862_s51.64453104883433_w0.5559082031249998_e4.409911975264549 -0.5 -0.5 580.5 924.5 geonode__gebco_2020_n54_0659179519862_s51_64453104883433_w0_5559082031249998_e4_409911975264549 Linear 0 0 gebco_2020_n54.0659179519862_s51.64453104883433_w0.5559082031249998_e4.409911975264549 WCS WorldImage 0 0 924 580 i j 0.0 0.0 0.0 1.0 1.0 0.0 GRAY_INDEX 0 65535 RectifiedGridCoverage image/tiff .. py:function:: _wcs_link(wcs_url, identifier, mime, srid=None, bbox=None, compression=None, tile_size=None) Utility method that generates a "GetCoverage" URL with fixed parameters, such as "axisLabels". Example URL: .. code-block:: text http://localhost:8080/geoserver/ows? service=WCS& request=GetCoverage& coverageid=geonode__relief_san_andres0& format=image%2Ftiff& version=2.0.1& compression=DEFLATE& tileWidth=512& tileHeight=512& outputCrs=EPSG%3A4326& subset=Long(-84.0,-78.0)& subset=Lat(11.0,15.0) .. py:function:: wcs_links(wcs_url, identifier, bbox=None, srid=None) Creates the WCS GetCoverage Default download links. By providing 'None' bbox and srid, we are going to ask to the WCS to skip subsetting, i.e. output the whole coverage in the netive SRS. Notice that the "wcs_links" method also generates 1 default "outputFormat": - "geotiff"; GeoTIFF which will be compressed and tiled by passing to the WCS the default query params compression='DEFLATE' and tile_size=512 .. py:function:: _wfs_get_capabilities() .. py:function:: _wfs_link(wfs_url, identifier, mime, extra_params, bbox=None, srid=None) .. py:function:: wfs_links(wfs_url, identifier, bbox=None, srid=None) .. py:function:: _wms_get_capabilities() .. py:function:: _wms_link(wms_url, identifier, mime, height, width, srid=None, bbox=None) .. py:function:: wms_links(wms_url, identifier, bbox, srid, height, width)