gemgis.web.create_request
gemgis.web.create_request#
- gemgis.web.create_request(wcs_url: str, version: str, identifier: str, form: str, extent: List[Union[int, float]], name: str = 'test.tif') str #
Creating URL to request data from WCS Server
- Parameters
wcs_url (str) – Url of the WCS server, e.g.
url='https://www.wcs.nrw.de/geobasis/wcs_nw_dgm'
version (str) – Version number of the WCS as string, e.g.
version='2.0.1'
identifier (str) – Name of the layer, e.g.
identifier='nw_dgm'
form (str) – Format of the layer, e.g.
form='image/tiff'
extent (List[Union[float,int]]) – Extent of the tile to be downloaded, size may be restricted by server, e.g.
extent=[0, 972, 0, 1069]
name (str) – Name of file, e.g.
name='tile1.tif'
, default is'test.tif'
- Returns
url – Url for the WCS request
- Return type
str
New in version 1.0.x.
Example
>>> # Loading Libraries and WCS Service >>> import gemgis as gg >>> wcs = gg.web.load_wms(url='https://www.wcs.nrw.de/geobasis/wcs_nw_dgm') >>> wcs <owslib.coverage.wcs201.WebCoverageService_2_0_1 at 0x27fc64783d0>
>>> # Creating Request for WCS Service >>> url = gg.web.create_request(url=wcs.url, version=wcs.version, identifier='nw_dgm', form='image/tiff', extent=[0, 1000, 0, 1000], name='test.tif'])
See also
load_wcs
Load WCS Service
load_as_file
Download WCS data file
load_as_files
Download WCS data files