[Mapserver-users] Error Displaying Rasters {Scanned}

Sean Kleinjung sean at satshot.com
Mon Mar 8 17:35:42 EST 2004


Ok...We figured this out. I'll describe what we did here in case someone
in the future runs into a similar problem.

We reconfigured mapserver with the --without-tiff option, and tried to
compile it. It configured fine, and churned on the compile for a few
minutes before failiing with the following error:

/PATH/TO/GDAL-1.1.9/lib/libgdal.1.1.so: undefined reference to
TIFFImageFieldInfo

After some fiddling around in the archives of this list and on google,
we determined that for some reason it was linking against the 3.5.7
version of libTIFF that was found in /usr/lib. We never really
determined why this is, since when we compiled GDAL we pointed it to the
3.6.1 version of libTIFF installed elsewhere. In any case, we symlinked
the 3.5.7 version of the library to point to our newer version. This let
it compile fine, and it renders imagery now.

It remains to be seen if just changing the library like this breaks any
other software on the system. If it does, we still have a copy of the
old one and will have to figure out how to update the library paths the
recommended way. But, this seems to be working so far, and gets us one
step closer to having this thing running.

Thanks for your help,
Sean Kleinjung
Web Application Developer
Agri ImaGIS Technologies, Inc.
sean at satshot.com


On Mon, 2004-03-08 at 03:21, Siki Zoltan wrote:
> Hi Sean,
> 
> I had similar problem on Linux with Mapserver 4.
> I have recompiled Mapserver without tiff support.
> On win32 I use the binary release, and it works fine.
> 
> I hope it helps you
> 
> Bye
> Zoltan
> 
> On 7 Mar 2004, Sean Kleinjung wrote:
> 
> > Hello,
> > 
> > We have been using an ancient version of MapServer (3.2) to run a number
> > of websites. We are finally getting around to building a site using a
> > new version (4.0.1) of MapServer, but have run into a snag getting
> > raster data to display.
> > 
> > We've upgraded our mapfiles and have gotten the query and display of
> > ESRI shapefiles to work fine, but adding any raster layers to the
> > mapfile causes the server to return an internal server error. I have
> > tried both using tiled raster layers, and the simple case of just
> > including a layer with the data pointing to an image file (as described
> > in the Raster HOWTO).
> > 
> > Enclosed at the end of this message is a stripped down mapfile with just
> > a single raster layer. The .tif file I am referencing is a GeoTIFF and
> > the supplied projection information is correct. It is an 8-bit image
> > that displays fine under the systems running MapServer 3.2.
> > 
> > The output of mapserv -v is as follows:
> > 
> > MapServer version 4.0.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ
> > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
> > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=TIFF INPUT=EPPL7
> > INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
> > 
> > and here is gdal-config --formats:
> > 
> > gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 bsb xpm sdts raw dted
> > mem jdem envisat elas fit vrt usgsdem l1b nitf bmp jpeg2000 gif jpeg png
> > 
> > Any hints as to what may be going wrong would be greatly appreciated.
> > 
> > Thank you,
> > Sean Kleinjung
> > Web Application Developer
> > Agri ImaGIS Technologies, Inc.
> > sean at satshot.com
> > 
> > Sample map file follows:
> > 
> > 
> > # MapFile automatically generated by
> > # Agri ImaGIS Technologies, Inc. jWebMap
> > 
> > NAME "jWebMap-1078716933050"
> > STATUS ON
> > SIZE 400 400
> > 
> > EXTENT 515000.0 5110000.0 840000.0 5440000.0
> > 
> > IMAGECOLOR 255 255 255
> > 
> > PROJECTION
> >   "proj=utm"
> >   "zone=14"
> >   "ellps=GRS80"
> > END
> > 
> > WEB
> >   TEMPLATE "/home/httpd/html/webmap/templates/1078716933035.html"
> > END
> > 
> > LAYER
> >   NAME "testRaster"
> >   TYPE RASTER
> >   STATUS DEFAULT
> >   DATA "/data/imagery/2003/L3026z14_Aug25_03.tif"
> >   PROJECTION
> >     "proj=utm"
> >     "zone=14"
> >     "ellps=GRS80"
> >   END
> > END
> > 
> > END
> > 
> > 
> > 
> > _______________________________________________
> > Mapserver-users mailing list
> > Mapserver-users at lists.gis.umn.edu
> > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> > 
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 




More information about the mapserver-users mailing list