diff --git a/scripts/r.in.wms/wms_drv.py b/scripts/r.in.wms/wms_drv.py index f9dc42d238..f5e8cbeb91 100644 --- a/scripts/r.in.wms/wms_drv.py +++ b/scripts/r.in.wms/wms_drv.py @@ -43,8 +43,6 @@ from wms_base import GetEpsg, GetSRSParamVal, WMSBase from wms_cap_parsers import OnEarthCapabilitiesTree, WMTSCapabilitiesTree -np.arrayrange = np.arange - class WMSDrv(WMSBase): def _download(self): @@ -288,9 +286,9 @@ def _pct2rgb(self, src_filename, dst_filename): # Build color table lookup = [ - np.arrayrange(256), - np.arrayrange(256), - np.arrayrange(256), + np.arange(256), + np.arange(256), + np.arange(256), np.ones(256) * 255, ]