[Mapserver-users] Geo TIFFs

Jason M. Nielsen jnielsen at aero-graphics.com
Fri Jan 16 12:42:33 PST 2004


Quoting Frank Warmerdam <warmerdam at pobox.com>:

> Jason M. Nielsen wrote:
> > Can anyone get the libgeotiff library to compile in order to include GEO
> TIFF
> > support in mapserver?
> > 
> > [root at vad3rZIM libgeotiff-1.2.0]# make
> > gcc -c -O2  -Wall -DCSV_DATA_DIR=\"/usr/local/share/epsg_csv\" -I. -I.   
> 
> > ./libxtiff/xtiff.c
> > libxtiff/xtiff.c:29: parse error before "xtiffFieldInfo"
> > libxtiff/xtiff.c:29: warning: type defaults to `int' in declaration of
> > `xtiffFieldInfo'
> > ...
> > 
> > I have searched high and low through header file after header file and I
> still
> > can find no syntax issues or anything that stands out.
> 
> Jason,
> 
> Ensure you have libtiff 3.6.0 for libgeotiff 1.2.0.  It is often hard to
> ensure
> libgeotiff gets the right libtiff include files if you have multiple
> versions
> of libtiff on the system.
> 
> > Can I somehow build mapserver against gdal in order to get geo tiff
> support?
> 
> If you build GDAL "--with-libtiff=internal" and "--with-geotiff=internal"
> then
> you will have geotiff support in mapserver.  You should then build
> MapServer
> "--without-libtiff" so it doesn't try to use it's built-in tiff support.
> 
> Good luck,
> 
> -- 
> ---------------------------------------+--------------------------------------
> I set the clouds in motion - turn up   | Frank Warmerdam,
> warmerdam at pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam
> and watch the world go round - Rush    | Geospatial Programmer for Rent

I am trying to go the route described using gdal. Everything seems to compile
but nothing appears different from command line options, help etc. I did notice
during configure gdal did indeed explicitly state it was using internal tiff
gtiff. Still the tiff will not display but the jpeg will. Below I have listed
out the results from gdalinfo for the jpeg and tiff file. In the map file all I
do is change the extension from jpg to tif. Id rather not touch my libtiff (at
3.5.7-11) because if I do it will wreck havok on other systems across the board
and I really am not in the mood for another dozen or more compilations that will
in turn require more than like half a dozen more supporting ones. =)

Could the warning 1 be the problem I am having? 

[root at vad3rZIM data]# gdalinfo top10c0.jpg 
Driver: JPEG/JPEG JFIF
Size is 3854, 3773
Coordinate System is `'
Origin = (1512385.000000,7356162.500000)
Pixel Size = (10.000000,-10.000000)
Corner Coordinates:
Upper Left  ( 1512385.000, 7356162.500) 
Lower Left  ( 1512385.000, 7318432.500) 
Upper Right ( 1550925.000, 7356162.500) 
Lower Right ( 1550925.000, 7318432.500) 
Center      ( 1531655.000, 7337297.500) 
Band 1 Block=3854x1 Type=Byte, ColorInterp=Red
Band 2 Block=3854x1 Type=Byte, ColorInterp=Green
Band 3 Block=3854x1 Type=Byte, ColorInterp=Blue

[root at vad3rZIM data]# gdalinfo top10c0.tif
Warning 1: TIFFReadDirectory:top10c0.tif: wrong data type 1 for "XMLPacket"; tag
ignored
Driver: GTiff/GeoTIFF
Size is 3854, 3773
Coordinate System is `'
Origin = (1512385.000000,7356162.500000)
Pixel Size = (10.000000,-10.000000)
Metadata:
  TIFFTAG_SOFTWARE=Adobe Photoshop 7.0
  TIFFTAG_DATETIME=2004:01:14 09:03:52
Corner Coordinates:
Upper Left  ( 1512385.000, 7356162.500) 
Lower Left  ( 1512385.000, 7318432.500) 
Upper Right ( 1550925.000, 7356162.500) 
Lower Right ( 1550925.000, 7318432.500) 
Center      ( 1531655.000, 7337297.500) 
Band 1 Block=3854x1 Type=Byte, ColorInterp=Red
Band 2 Block=3854x1 Type=Byte, ColorInterp=Green
Band 3 Block=3854x1 Type=Byte, ColorInterp=Blue
Warning 1: TIFFReadDirectory:top10c0.tif: wrong data type 1 for "XMLPacket"; tag
ignored

Thanks, Jason.

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/



More information about the MapServer-users mailing list