Tif an wld file problems

Robert Chavez rchavez at perseus.tufts.edu
Wed Feb 16 17:18:28 EST 2000


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




More information about the mapserver-users mailing list