Skip to content

Commit

Permalink
- add processing directive for raster layers on mapscript/OAMaps (#1920)
Browse files Browse the repository at this point in the history
  • Loading branch information
doublebyte1 authored Feb 3, 2025
1 parent 26263c8 commit 49bbf78
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pygeoapi/provider/mapscript_.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ def __init__(self, provider_def):
cls.updateFromString(cls_def)
self._layer.insertClass(cls)

if self.options['type'] == 'MS_LAYER_RASTER':
self._layer.addProcessing('SCALE=AUTO')

except MapServerError as err:
LOGGER.warning(err)
raise ProviderConnectionError('Cannot connect to map service')
Expand Down

0 comments on commit 49bbf78

Please sign in to comment.