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 |
Description
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 , 13 years ago
Cc: | added |
---|---|
Component: | default → GDAL_Raster |
Keywords: | tms wms added |
comment:3 by , 13 years ago
Owner: | changed from | to
---|
comment:4 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
http://trac.osgeo.org/gdal/changeset/19089
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.
Possibly Chris or Adam would like to follow up on this.