[Mapserver-users] simple mapserver configuration

Eric Sokolowsky eric.sokolowsky at gsfc.nasa.gov
Wed Jan 21 13:42:09 PST 2004


On Tue, 20 Jan 2004, Pericles Nacionales wrote:

> Eric,
> 
> I don't know if this is relevant in WMS servers or not but how about
> adding IMAGEURL in your WEB object?  

Okay, done.  Didn't seem to change anything though.

> By the way, does your app generate a
> map with a standard MapServer CGI url, ie:
> http://svsdev.gsfc.nasa.gov/esok/cgi-bin/map?map=/path/to/your/mapfile.map&layer=EARTH_PNG&mode=map

It generates the following message when I try that:

msDrawMap(): General error message. Image dimensions not specified.
msCalculateScale(): General error message. Invalid image width or height.

> Another question, did you check that your IMAGEPATH (IMAGEURL) is
> writeable by your web server's user/owner?

Yes, after reading the documentation a few more times, I got the mapserv
to write to my error log file.  However, I still see a blank image in my
WMS client.  It returns an image of the right size, but it is completely
black.  Here's an example query:

http://svsdev.gsfc.nasa.gov/esok/cgi-bin/map?REQUEST=GetMap&SRS=EPSG:4326&VERSION=1.1.0&FORMAT=image/png&STYLES=default&LAYERS=EARTH_JPEG&BBOX=-110,-20,-70,20&WIDTH=512&HEIGHT=512&TRANSPARENT=TRUE

I know that the map file is being obtained correctly because when I issue
getcapabilities request I get back an xml file with all of the correct
layers.

Any other suggestions anyone?

> 
> Cheers!
> -Perry N.
> 
> On Tue, 20 Jan 2004, Eric Sokolowsky wrote:
> 
> > I am trying to use mapserver as a simple WMS interface into data images
> > that I already have.  I would prefer to have a very light server that
> > does not reproject images or convert to different formats.  I tried to
> > set up mapserver and I got all of the pieces to compile.  The
> > capabilities is returned as expected.  However, when I try to use a wms
> > client or a web browser to formulate some queries, all I get is a blank
> > image.  Is mapserver capable of acting as a very light server?  How can
> > I use mapserver to serve any image that isn't blank?  My server's
> > location is listed here, if anyone is interested:
> >
> >   http://svsdev.gsfc.nasa.gov/esok/cgi-bin/map?
> >
> > When run locally, mapserv -v returns:
> >
> > MapServer version 4.0.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=GDAL INPUT=SHAPEFILE
> >
> > Here's my map file:
> >
> >
> > # Start of wms.map file
> >
> > MAP
> >   NAME SVS
> >   EXTENT -180 -90 180 90
> >   STATUS ON
> >
> >   PROJECTION
> >     "init=epsg:4326"
> >   END
> >
> >   WEB
> >     IMAGEPATH "/svs/share/data/de/data/"
> >     METADATA
> >       "wms_abstract" "This Web Mapping Server is provided by NASA's Scientific Visualization Studio at Goddard Space Flight Center in Greenbelt, Maryland, USA."
> >       "wms_accessconstraints" "none"
> >       "wms_fees" "none"
> >       "wms_onlineresource" "http://svsdev.gsfc.nasa.gov/esok/cgi-bin/map?"
> >       "wms_title" "NASA GSFC SVS Animation Catalog"
> >     END
> >     LOG "/tmp/mapserver.log"
> >   END
> >
> >   OUTPUTFORMAT
> >     NAME png
> >     DRIVER "GD/PNG"
> >     MIMETYPE "image/png"
> >     IMAGEMODE RGB
> >     EXTENSION "png"
> >   END
> >
> >   LAYER
> >     NAME "EARTH_GIF"
> >     TYPE RASTER
> >     STATUS ON
> >     DATA "earth.gif"
> >     METADATA
> >       "wms_title" "Earth gif"
> >       "wms_extent" "-110 -20 -70 20"
> >       "wms_opaque" "1"
> >     END
> >   END
> >
> >   LAYER
> >     NAME "EARTH_JPEG"
> >     TYPE RASTER
> >     STATUS ON
> >     DATA "earth.jpeg"
> >     METADATA
> >       "wms_title" "Earth jpeg"
> >       "wms_extent" "-110 -20 -70 20"
> >     END
> >   END
> >
> >   LAYER
> >     NAME "EARTH_JPG"
> >     TYPE RASTER
> >     STATUS ON
> >     DATA "earth.jpg"
> >     METADATA
> >       "wms_title" "Earth jpg"
> >       "wms_extent" "-110 -20 -70 20"
> >     END
> >   END
> >
> >   LAYER
> >     NAME "EARTH_PNG"
> >     TYPE RASTER
> >     STATUS ON
> >     DATA "earth.png"
> >     METADATA
> >       "wms_title" "Earth png"
> >       "wms_extent" "-110 -20 -70 20"
> >     END
> >   END
> >
> >   LAYER
> >     NAME "EARTH_PPM"
> >     TYPE RASTER
> >     STATUS ON
> >     DATA "earth.ppm"
> >     METADATA
> >       "wms_title" "Earth ppm"
> >       "wms_extent" "-110 -20 -70 20"
> >     END
> >   END
> >
> >   LAYER
> >     NAME "EARTH_RGB"
> >     TYPE RASTER
> >     STATUS ON
> >     DATA "earth.rgb"
> >     METADATA
> >       "wms_title" "Earth rgb"
> >       "wms_extent" "-110 -20 -70 20"
> >     END
> >   END
> >
> >   LAYER
> >     NAME "EARTH_TIF"
> >     TYPE RASTER
> >     STATUS ON
> >     DATA "earth.tif"
> >     METADATA
> >       "wms_title" "Earth tif"
> >       "wms_extent" "-110 -20 -70 20"
> >     END
> >   END
> >
> > END
> >
> > --
> >     ____   __     Eric Sokolowsky    (GST)  NASA Goddard Space Flight Center
> >    / __/__/_/__  Visualization Programmer    Scientific Visualization Studio
> >   / __/ _/ / _/ 301.286.3751                  Mailstop 935.0 Bldg 28 Rm E102
> >  /___/_//_/__/ eric.sokolowsky at gsfc.nasa.gov   Greenbelt, MD 20771
> >
> > _______________________________________________
> > Mapserver-users mailing list
> > Mapserver-users at lists.gis.umn.edu
> > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> >
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 
> 

-- 
    ____   __     Eric Sokolowsky    (GST)  NASA Goddard Space Flight Center 
   / __/__/_/__  Visualization Programmer    Scientific Visualization Studio
  / __/ _/ / _/ 301.286.3751                  Mailstop 935.0 Bldg 28 Rm E102
 /___/_//_/__/ eric.sokolowsky at gsfc.nasa.gov   Greenbelt, MD 20771




More information about the MapServer-users mailing list