[mapserver-users] help with raster
Pushkar Pradhan
pushkar at ERC.MsState.Edu
Sat Feb 23 22:42:51 PST 2002
Francois,
I had the same trouble some time ago.
First of all your mapserver looks for the tif file in the dir. specified
by the SHAPEPATH var.
Look at your server error log (apache or whatever) not just MS log. This
gives more information.
If your imgs. are 24 bit you need gdal and if they are 8 bit MS can handle
it.
Do mapserv -v and check if you have gdal or TIFF support showing up, maybe
you forgot to put the new compiled mapserv exe. in your server.
Try removing the " " around the file name.
>
> Hello !
> I am trying to use raster data within mapserver, which does not work.
> I have atempted to use various version of mapserver, compiled
> with or without gdal support. My data is geotiff, with the following
> indications extracted by gdalinfo :
>
> Driver: GTiff/GeoTIFF
> Size is 5441, 4851
> Coordinate System is:
> GEOGCS["WGS 84",
> DATUM["WGS_1984",
> SPHEROID["WGS 84",6378137,298.257223562997]],
> PRIMEM["Greenwich",0],
> UNIT["degree",0.0174532925199433]]
> Origin = (-65.030748,3.840657)
> Pixel Size = (0.000400,-0.000400)
> Corner Coordinates:
> Upper Left ( -65.0307480, 3.8406570) ( 65d 1'50.69"W, 3d50'26.37"N)
> Lower Left ( -65.0307480, 1.9002570) ( 65d 1'50.69"W, 1d54'0.93"N)
> Upper Right ( -62.8543481, 3.8406570) ( 62d51'15.65"W, 3d50'26.37"N)
> Lower Right ( -62.8543481, 1.9002570) ( 62d51'15.65"W, 1d54'0.93"N)
> Center ( -63.9425480, 2.8704570) ( 63d56'33.17"W, 2d52'13.65"N)
> My mapfile is the simplest ever :
>
> NAME mymap
> SIZE 500 500
> EXTENT -65 2 -63 4
> SHAPEPATH "data1"
> SYMBOLSET marker.sym
>
> WEB
> TEMPLATE dessine_carte.html
> EMPTY /cartes/empty.html
> IMAGEPATH "/usr/local/httpd/htdocs/tmp/"
> IMAGEURL "/tmp/"
> LOG "/tmp/log.log"
> END
>
> LAYER
> NAME "Im"
> DATA "Landsat2.tif"
> TYPE RASTER
> STATUS ON
> END
> END # end of map file
>
> In the log file, I can see :
> Sat Feb 23 12:41:32 2002,22416,195.132.244.162,mymap,0,-65.498000 2.000000
> -63 4.000000,-1.000000 -1.000000,,normal execution
>
> The result is a blank image of 500x500 pixels.
>
> I would like to know :
> 1. how to understand every statement of the log file
> 2. how to test simply the raster capability of my mapserver
> 3. how i can understand what is going on with the raster
> data for it not being displayed
>
> Thanks in advance for any answer
> François-Michel Le Tourneau
>
> ***********************************************************************
> Francois-Michel Le Tourneau
> Chargé de Recherches au CNRS
> Centre de Recherche et de Documentation sur l'Amérique Latine (UMR 7530)
> Tel. 01 44 39 86 85 Fax. 01 45 48 79 58
> E-mail : Francois.Michel.Le.Tourneau at ens.fr
> ***********************************************************************
>
------------------------------------------------------------------------------
PUSHKAR S. PRADHAN
Research Assistant
MISSISSIPPI STATE UNIVERSITY,
STARKVILLE, MS 39759.
Engineering Research Center
Box 9627
Mississippi State, MS 39762-9627
------------------------------------------------------------------------------
More information about the MapServer-users
mailing list