[Mapserver-users] Nothing raster (tiff) comes out

Vincent Schut schut at sarvision.com
Tue Sep 16 03:20:50 EDT 2003


Hi Ayrat,

seems your worldfile is wrong. Description of a worlfile:

pixel x size
 rotation about the y axis
 rotation about the x axis
 - pixel y size
 x of upper left pixel
 y of upper left pixel

So your worldfile should probably be:

1	(size of 1 pixel is 1 extent unit)
0.0	(no rotation)
0.0	(no rotation)
-1	(size of 1 pixel in y direction)
1	(upper left x coordinate)
1	(upper left y coordinate)

Also, if you use the mapserver cgi interface, don't forget to explicitly ask for the layers to be drawn if you have their status to 'on' (...&layer=<name>&...). Or set status to 'default', then they will get rendered anyways.

Cheers,
Vincent.

On 11:08 Tue 16 Sep     , Ayrat wrote:
> Hi all!
> 
> Raster map don't out.
> 
> MS 3.6.6 (Win) and support Tiff (Input tiff)
>  but I see white map.
> Along left edge appear gray gradient bands.
>  image mode: indexed color.
> 
> Driver: GTiff/GeoTIFF
> Size is 600, 600
> Coordinate System is `'
> Corner Coordinates:
> Upper Left  (    0.0,    0.0)
> Lower Left  (    0.0,  600.0)
> Upper Right (  600.0,    0.0)
> Lower Right (  600.0,  600.0)
> Center      (  300.0,  300.0)
> Band 1 Block=600x13 Type=Byte, ColorInterp=Palette
>   Color Table (RGB with 256 entries)
>   ets.
> 
> [my map file]
> NAME DEMO
> STATUS ON
> SIZE 600 600
> EXTENT 1 1 600 600
> 
> UNITS METERS
> SHAPEPATH "data"
> IMAGECOLOR 255 255 255
> FONTSET fonts/fonts.list
> 
> LAYER
>     NAME "rmap"
>     DATA "map.tif"
>     TYPE RASTER
>     STATUS ON
> END
> END
> [Map File]
> 
> Raster howto is saw. Nothing.:(
> 
> world file is wrong? 600
> 0.0000000000
> 0.0000000000
> -600
> 300     
> 300
> extentions "wld".
>   
> Can anybody tell what is the problem?
> -- 
> Thanks and cheers
>  Ayrat                          mailto:Ayrat at ieie.nsc.ru
> 
> _______________________________________________
> 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