I'm trying get an imagen GTIFF with OWSLib in Python but I get error. Would you help me?
Code:
from owslib.wcs import WebCoverageService
wcs = WebCoverageService('http://maps.isric.org/mapserv?map=/map/phh2o.map', version='1.0.0')
bbox = (-54.7968690628577, -28.35600162342199, -54.77831702365789, -28.33600341642725)
response = wcs.getCoverage(
identifier='phh2o_0-5cm_mean',
crs='urn:ogc:def:crs:EPSG::4326',
bbox=bbox,
resx=250, resy=250,
format='GEOTIFF_INT16')
response.read()
Output:
b'\n<ServiceExceptionReport version="1.2.0"\nxmlns="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/ogc http://schemas.opengis.net/wcs/1.0.0/OGC-exception.xsd">\n msImageCreate(): Image handling error. Attempt to allocate raw image failed, out of memory.\n \n\n'