[Mapserver-users] Mr. SID to GeoTIFF

bean@vt.edu agillesp at vt.edu
Tue Jul 13 08:35:44 PDT 2004


I have aerial imagery in Mr. SID format and I use a LizardTech utility to 
convert the sid image to a geo tiff.  I can view the resulting tiff in an 
image viewer, however, when I load it in MapServer (via PHP), I get the 
following error:

[MapServer Error]: drawTIFF(): Only colormapped and grayscale images are 
supported.

More info:
- The tiff is color.
- The utility offers the following options:
  -h or -?
  show short usage message

  -help
  show detailed usage message

  -v or -version
  show version information

  -quiet
  don't show informational messages

  -log STRING
  write output to log file

  -progress STRING
  progress meter style: none | default | timer

  -i or -input STRING
  [required]
  input file

  -o or -output STRING
  [required]
  output file

  -watermarkFile STRING
  watermark file

  -watermarkPosition STRING
  position of watermark: CENTER, CENTER_LEFT, CENTER_RIGHT, UPPER_LEFT, 
UPPER_CE
NTER, UPPER_RIGHT, LOWER_LEFT, LOWER_CENTER, LOWER_RIGHT (default)

  -drmin or -dynRangeMin UNSIGNED-INT
  minimum dynamic range

  -drmax or -dynRangeMax UNSIGNED-INT
  maximum dynamic range

  -drauto or -autoDynRange
  automatic dynamic range adjustment

  -wf or -worldFile
  generate world file

  -sh or -stripHeight UNSIGNED-INT
  strip height

  -ulxy FLOAT0 FLOAT1
  upper-left of scene (x,y)

  -lrxy FLOAT0 FLOAT1
  lower-right of scene (x,y)

  -cxy FLOAT0 FLOAT1
  center of scene (x,y)

  -wh FLOAT0 FLOAT1
  size of scene (width,height)

  -s or -scale SIGNED-INT
  scale of scene

  -coord or -coordspace STRING
  coordinate space of scene: geo | image | resrel

  -jpg or -jpeg
  output is JPEG

  -tif or -tiff
  output is TIFF

  -tifg or -geotiff
  output is GeoTIFF

  -bmp
  output is BMP

  -bip
  output is BIP

  -raw
  output is RAW (same as BIP)

  -pwd or -password STRING
  password to decode image

- I used the following command with the conversion utility:
mrsiddecode -i do_s03_9540_00.sid -o do_s03_9540_00.tif -tifg

Thanks for any help.
-Abe




More information about the MapServer-users mailing list