Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The product of width and height is limited to the full HD resolution of1920x1200 of 1920x1200 to avoid memory issues. In case a GetMap request is done where WIDTH*HEIGHT > 2304000 a bad request error will be returned.

GetLegend

  

Properties

The following WMS specific properties can be configured in the FewsPiService.properties file.

  • WMS_BASE_URL: url that will be reported in the GetCapabilities response as URL to be used to request maps.

  • WMS_CLIENT_CACHE_TIMEOUT: Timeout of the cache in seconds, that is sent to the browser. default is 84600 seconds (one day). To disable caching, set the timeout to 0.

  • WMS_ALLOWED_LAYER_IDS: List of all layer ids (comma separated) that have been made available in the WMS service. Be default all layers are available. it is advised to explicitly specify that the layers that should be available.
  • WMS_WIDTH_HEIGHT_MAX: The maximum size of the WIDTH and HEIGHT product GetMap parameters. The default is set to 2304000 (the full HD resolution of 1920x1200). N.B.: The higher this value is set, the more memory is required to generated the WMS images.