...
Code Block | ||
---|---|---|
| ||
requestbbox = (-6.283406057098745, 36.59251369598765, -6.266739197530853, 36.6050139853395) requestwidth = 4 requestheight = 3 gc = wcs.getCoverage(identifier=sed.id, bbox=()requestbbox, format='GeoTIFF', crs=sed.boundingboxes[0]['nativeSrs'], width=requestwidth, height=requestheight) # random unique filename tmpdir = tempfile.gettempdir() fn = os.path.join(tmpdir,'test.tif') f = open(fn,'wb') f.write(gc.read()) gc.close() f.close() |