Add Preferred Image Format support in WMSLayer and WMSCoverageReader

Description

When using a WMSLayer in geotools, the requests made to the remote server default to PNG image types. It should be possible to make WMSLayer use a preffered image format in remote wms request (e.g image/jpg).

For this additional harmless constructors can be added to WMSLayer and WMSCoverageReader which can take a preffered image format, verify if the remote WMS Layer supports the preffered image response type, if not then it can default to previous behavior of falling back to png types.

Environment

None

Status

Assignee

Unassigned

Reporter

Imran Rajjad

Triage

Components

Fix versions

Priority

Medium