Opened 14 years ago

Closed 14 years ago

#3605 closed defect (fixed)

RST - It is not reporting the whole color table

Reported by: ilucena Owned by: ilucena
Priority: normal Milestone: 1.7.3
Component: GDAL_Raster Version: svn-trunk
Severity: major Keywords:
Cc: warmerdam

Description

When the RST driver finds a companion .smp file, it should read it as a Idrisi color table but that code:

http://trac.osgeo.org/gdal/browser/trunk/gdal/frmts/idrisi/IdrisiDataset.cpp#L592

Is preventing it to report the whole color table (256 items) but only up to the maximum pixel value of that image.

That change was introduced on r 10807 to provide a better support for thematic data, category names and color table of each classes because some other driver and some other software got confused with "Why a raster with 10 classes with pixel ids going from 0 to 9 have 256 color items?"

But that restriction is affecting images that are not classified and that is a bug.

Change History (1)

comment:1 by ilucena, 14 years ago

Resolution: fixed
Status: newclosed

I added code that checks if a image is thematic before applying the color item restriction.

Note: See TracTickets for help on using tickets.