[Mapserver-users] simple mapserver configuration

Tyler Mitchell TMitchell at lignum.com
Thu Jan 22 08:31:29 PST 2004





> MapServer version 4.0.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=GDAL
INPUT=SHAPEFILE
>
> But it still only generates a blank image.
>
> Here is my map file now:
>
>
> # Start of wms.map file
>
> MAP
>   NAME SVS
>   EXTENT -180 -90 180 90
>   STATUS ON
>
>   PROJECTION
>     "init=epsg:4326"
>   END
>
>   WEB
>     METADATA
>       "wms_abstract" "Provided by the Scientific Visualization Studio."
>       "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
>   END
>
>   OUTPUTFORMAT
>     NAME png
>     DRIVER "GD/PNG"
>     MIMETYPE "image/png"
>     IMAGEMODE RGB
>     EXTENSION "png"
>   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
>
> END

I'd change your MAP EXTENT to match your EARTH_PNG layer extent and test it
like that first before pulling back.
I was going to ask about your earth.png being georeferenced or not, but I
see you are using the wms_extent setting - I've never seen that before.  I
assume it works properly, otherwise why not try a different image format.
I also wonder if this is just an issue for your raster layer.  Since all
your raster layer inputs are going through GDAL, why not try to get basic
shape files working first since your mapserv supports it directly.

Anyway, just some ideas.




More information about the MapServer-users mailing list