Skip to content

Commit 7cd0c2c

Browse files
authored
Handle empty tiles (#111)
* Change compute to load * Add configuragle array limit * Make fully configurable * Thread through * Handle empty tiles
1 parent ae30539 commit 7cd0c2c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

xpublish_wms/wms/get_map.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,10 @@ def render(
351351

352352
logger.info(f"WMS GetMap load data: {time.time() - start_dask}")
353353

354+
if da.size == 0:
355+
logger.warning("No data to render")
356+
return False
357+
354358
if minmax_only:
355359
try:
356360
return {

0 commit comments

Comments
 (0)