Opened 13 years ago

Closed 13 years ago

#3420 closed defect (fixed)

Colour interpretation missing in the TMS mini-driver

Reported by: homme Owned by: nowakpl
Priority: normal Milestone:
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords: tms wms
Cc: nowakpl, crschmidt


As detailed in a message to gdal-dev the TMS mini-driver is not setting ColorInterp values on the raster bands it returns. The WMS format doc states that:

BandCount = Number of bands/channels, 1 for grayscale data, 3 for RGB. (optional, defaults to 3)

This suggests that the returned data should be properly interpreted as RGB (and in the case of 4 bands RGBA). This would enable applications using gdal and relying on the ColorInterp values of bands to fully benefit from the TMS data sources (e.g. Mapnik).

Change History (4)

comment:1 by warmerdam, 13 years ago

Cc: nowakpl crschmidt added
Component: defaultGDAL_Raster
Keywords: tms wms added

Possibly Chris or Adam would like to follow up on this.

comment:2 by nowakpl, 13 years ago

Untested but was simple enough change that should just work ;)

comment:3 by nowakpl, 13 years ago

Owner: changed from warmerdam to nowakpl

comment:4 by nowakpl, 13 years ago

Resolution: fixed
Status: newclosed

default color interpretation is:
1 band: gray,
2 bands: gray, alpha,
3 bands: red, green, blue,
4 bands: red, green, blue, alpha,
5 or more bands: undefined.

Note: See TracTickets for help on using tickets.