Tif an wld file problems

Doug Nebert ddnebert at usgs.gov
Wed Feb 16 17:47:38 EST 2000


It is possible that you have a 24-bit TIFF file.  It will only 
render if it is 8-bit, or so I experienced a few months back.
Try again by saving the TIF as 8-bit and see what happens.

Doug.

Robert Chavez wrote:
> 
> Greetings,
> 
> I started fooling around with displaying tifs using mapscript and I'm
> having a problem rendering a tif image layer.  I've run the demo package
> and displayed the landsat tif with mapserver just fine, so I know
> mapserver/script compiled with the tif libraries.
> 
> The tif originally had a .tfw  file so I changed the extension to
> .wld (it looks like this, units are in meters)
> 
> 1.32301253030703
> 0.00000000000000
> 0.00000000000000
> -1.16784976858186
> 531694.70377556235000
> 181396.49239035073000
> 
> After the script runs I get a blank .gif file as a result, no rendering of
> the tif in site.  This leads me to believe there's an extent problem
> somewhere but I'm not sure where.  The image should fit within the extents
> of the map file (see map file below), I should be getting something even
> if at a very small scale. I thought .tfw files were structurally identical
> with .wld files, or have I missed something?
> 
> MAP
>   NAME test
>   SIZE 500 500
>   EXTENT 520118.780 175873.500 534426.880 184948.500
>   UNITS METERS
>   SHAPEPATH "data"
> 
>   LAYER
>     NAME stpauls
>     TYPE RASTER
>     STATUS ON
>     DATA stpauls.tif
>   END
> END
> 
> Regards,
> 
> Robert Chavez
> Perseus Project
> rchavez at perseus.tufts.edu

-- 
Douglas D. Nebert
Clearinghouse Coordinator 
FGDC Secretariat	Phone: +1 703 648 4151	Fax: +1 703 648-5755	
Pager Messaging: 	http://fgdclearhs.er.usgs.gov/dougmsg.html



More information about the mapserver-users mailing list