[mapserver-users] can't display TIFFs

Dylan Keon keon at nacse.org
Fri Apr 26 01:07:31 EDT 2002


I can't seem to get TIFFs to display using MapServer...I get either a blank
page or a "server not found" error.  I'm using a modified version of the
Europe PHP example (nothing fancy), and I can display shapfiles just fine,
unless the raster layer is included in the mapfile.  If I comment out that
raster layer, everything displays fine once again.

I've tried three different TIFFs, with no luck.  All TIFFs are in the
correct projection & datum, are 8 bit images, and display fine with the
associated shapefiles in other applications.  The TIFFs were created using
the GRIDIMAGE command in ArcInfo, and I renamed the .tfw extension to .wld
(tried it both ways, actually).  And it's not a permissions problem.  I've
tried both colormap and grayscale images, with no difference.  I followed
the "Raster HOWTO" instructions, and the "Converting ArcINFO Grids to
Mapserver TIFFs" instructions in the Wiki, but neither helped.  Am I missing
a format from GDAL or something? (see below).  I compiled
Mapserver --without-tiff.

Thanks for any help, not sure what to try next.

--Dylan


=============
machine stats
=============
SuSE 7.3 Linux (on 550MHz PIII box)
mapserver 3.5        apache 1.3.22
php 4.0.6            gdal 1.1.7
gd 1.8.4             libtiff 3.5.7
libgeotiff 1.1.4

======================
output from mapserv -v
======================
> ./mapserv -v
MapServer version 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ
SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS
INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

=================================
output from gdal-config --formats
=================================
> ./gdal-config --formats
gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 bsb xpm sdts raw dted mem
jdem envisat elas fit vrt usgsdem gif jpeg png grass

==============
mapfile sample
==============
LAYER
  NAME testdrg
  TYPE raster
  DATA testdrg.tif
  STATUS on
END

=========================
ArcInfo GRIDIMAGE command
=========================
Grid: GRIDIMAGE DRG1232 drg1232.clr testdrg TIFF NONE
(I've also used the COMPRESSION option, no effect on the problem)

====================
output from tiffinfo
====================
> tiffinfo testdrg.tif
testdrg.tif: Warning, unknown field with tag 33550 (0x830e) ignored.
testdrg.tif: Warning, unknown field with tag 33922 (0x8482) ignored.
TIFF Directory at offset 0x8
  Subfile Type: (0 = 0x0)
  Image Width: 4433 Image Length: 5863
  Resolution: 0.124, 0.124 (unitless)
  Bits/Sample: 8
  Compression Scheme: None
  Photometric Interpretation: palette color (RGB from colormap)
  Software: "Arc/Info"
  Samples/Pixel: 1
  Rows/Strip: 2
  Planar Configuration: single image plane
  Color Map: (present)





More information about the mapserver-users mailing list