Skip to content

Commit d59ca09

Browse files
committed
- add processing directive for raster layers on mapscript/OAMaps
1 parent 26263c8 commit d59ca09

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pygeoapi/provider/mapscript_.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ def __init__(self, provider_def):
111111
cls.updateFromString(cls_def)
112112
self._layer.insertClass(cls)
113113

114+
if self.options['type'] == 'MS_LAYER_RASTER':
115+
self._layer.addProcessing('SCALE=AUTO')
116+
114117
except MapServerError as err:
115118
LOGGER.warning(err)
116119
raise ProviderConnectionError('Cannot connect to map service')

0 commit comments

Comments
 (0)