Hello,
this is a simple mapfile, that works for me:
MAP
NAME 'WMS_Global_Mosaic'
STATUS ON
IMAGECOLOR 255 255 255
IMAGETYPE png
OUTPUTFORMAT
NAME png
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE PC256
EXTENSION "png"
END
OUTPUTFORMAT
NAME png24
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE RGBA
EXTENSION "png"
END
PROJECTION # GAUSS-KRUEGER Streifen 2
'init=epsg:4326' #PROJECTION_init
END
WEB # 3
IMAGEPATH '\ms4w\tmp\'
IMAGEURL '/ms_tmp/'
METADATA
'wms_name' 'OGC:WMS'
'wms_title' 'WMS Standard'
'wms_srs''EPSG:900913 EPSG:31466 EPSG:4326'
END
END
LAYER # 1
NAME 'GlobalMosaic'
GROUP 'SATELLITE'
TYPE RASTER
STATUSON
#!!! Achtung : transparent=TRUE/FALSE in uppercase!? and for Mapserver
4.10 set the STYLES= in the CONNECTION Url
CONNECTION'http://wms.jpl.nasa.gov/wms.cgi?STYLES='
CONNECTIONTYPEWMS
METADATA
'wms_name''global_mosaic' #das ist der Layer!!!
'wms_title' 'WMS Global Mosaic'
'wms_group_title' 'SATELLITE'
'wms_version' '1.1.1'
'wms_srs' 'EPSG:4326' #Uppercase!!!
'wms_server_version' '1.1.0'
'wms_formatlist' 'image/gif,image/png,image/jpeg,image/wbmp'
'wms_format' 'image/png'
#'wms_style' 'visual'
END
END
END
Mit freundlichen GrĂ¼ssen
Arnd Wippermann
http://gis.ibbeck.de/ginfo/
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Stefan
Schwarzer
Gesendet: Freitag, 11. April 2008 09:59
An: mapserver-users@lists.osgeo.org
Betreff: [mapserver-users] WMS for SRTM ? How to implement?
Hi there,
shouldn't be too complicated to include a WMS into one's own mapservice, no?
But, don't know why, although I've already done this a couple of years ago,
I don't succeed in a) finding the right way to program the map file code and
b) finding a working WMS example. Many links are dead ( for example from
this site: http://en.giswiki.net/wiki/WMS ), or without instructions.
Can someone point me to a working WMS server and give me a hint how the map
file layer should look like? I've this here:
LAYER
NAME modis
TYPE RASTER
STATUS ON
CONNECTION
"http://onearth.jpl.nasa.gov/browse.cgi?wms_server=wms.cgi&layers=modis&srs=
EPSG:4326"
CONNECTIONTYPE WMS
METADATA
"wms_srs" "EPSG:4236"
"wms_name""modis"
"wms_format" "image/jpeg"
END
END
Thanks for any advice,
Stef
Stefan Schwarzer
Lean Back and Relax - Enjoy some Nature Photography
http://photoblog.la-famille-schwarzer.de
<http://photoblog.la-famille-schwarzer.de>
Appetite for Global Data? UNEP GEO Data Portal:
http://geodata.grid.unep.ch <http://geodata.grid.unep.ch>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users