[gdal-dev] GDALColorInterp for PGM images?

Filip Rooms filip.rooms at incgeo.be
Wed Dec 5 09:57:19 EST 2007


Dear list,

Could it be that a PGM image (Portable Grey Map, maybe not so suitable
for geo applications) is not recognized to be a grey image?

GDALColorInterp is in my case  GCI_Undefined... For the rest, everything
is imported and we can access the image and its values, just the band
interpretation seems to be lost somehow.

The first lines of the image are plain text (as is expected: the magic
number here indicating raw grey value, followed by the image dimensions
and last the max pixel value in the image).

P5
660 660
255

I used GDAL 1.4.1. Did I miss something or do something else
incorrectly? Thanks in advance.

Kind regards,

Filip Rooms

researcher / developer @ IncGEO
Research Campus Hasselt
Kempische Steenweg 297/2
3500 Hasselt - Belgium
Tel.: +32 (0) 11 45 20 16
Fax: +32 (0) 11 45 20 17
URL: http://www.incgeo.be/


More information about the gdal-dev mailing list