wms layer display problem
Ei Fujioka
efujioka at DUKE.EDU
Wed May 9 06:33:30 PDT 2007
Hi Wang,
Have you solved your WMS problem?
Here is a working sample of LAYER definition for JPL's WMS.
It seems yours doesn't have wms_onlineresource in METADATA and NAME
(which layer you want to get).
LAYER
CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?"
CONNECTIONTYPE WMS
METADATA
"wms_srs" "EPSG:4326"
"wms_onlineresource" "http://wms.jpl.nasa.gov/wms.cgi?"
"wms_latlonboundingbox" "-180 -55 180 60"
"wms_name" "srtm_mag"
"wms_format" "image/jpeg"
"wms_server_version" "1.1"
"wms_style" ""
"wms_title" "srtm_mag"
END
NAME "srtm_mag"
PROJECTION
"init=epsg:4326"
END
SIZEUNITS PIXELS
STATUS ON
TOLERANCE 0
TOLERANCEUNITS PIXELS
TYPE RASTER
UNITS METERS
END
Hope this helps.
Ei
wang tao wrote:
> Hi,
> can someone give some suggestion about what's wrong with my wms
> layer?
> following are my map file ,index.html, template html file.
> MAP
>
> SIZE 600 300
>
> EXTENT -180 -90 180 90
>
> # IMAGECOLOR 180 180 250
>
> IMAGETYPE PNG24
>
>
>
> UNITS DD
>
>
>
> SCALEBAR
>
> STATUS EMBED
>
> UNITS KILOMETERS
>
> INTERVALS 3
>
> TRANSPARENT TRUE
>
> OUTLINECOLOR 0 0 0
>
> END
>
>
>
> LEGEND
>
> STATUS EMBED
>
> POSITION LR
>
> TRANSPARENT TRUE
>
> END
>
>
>
> WEB
>
> TEMPLATE global.html
>
> IMAGEPATH "/ms4w/tmp/ms_tmp/"
>
> IMAGEURL "/ms_tmp/"
>
> END
>
> LAYER
>
> NAME modis
>
> TYPE RASTER
>
> STATUS DEFAULT
>
> CONNECTIONTYPE WMS
>
> CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?"
>
> MINSCALE 20000
>
> METADATA
>
> "wms_server_version" "1.1.1"
>
> "wms_srs" "EPSG:4326"
>
> "wms_format" "image/jpeg"
>
> "wms_styles" "july"
>
> "wms_name" "modis"
>
> END
>
> END
>
> END
>
> index html
>
> <HTML>
>
> <HEAD><TITLE>MapServer Test</TITLE></HEAD>
>
> <CENTER><H2>MapServer Test</H2>
>
>
>
> <FORM method=GET action="/cgi-bin/mapserv.exe">
>
> <INPUT type="hidden" name="map"
> value="/ms4w/apps/hello/htdocs/global.map">
>
> <INPUT type="hidden" name="layer" value="modis">
>
>
>
> <INPUT type="hidden" name="zoomdir" value=1>
>
> <INPUT type="hidden" name="zoomsize" value=2>
>
>
>
> <INPUT type="hidden" name="program" value="/cgi-bin/mapserv.exe">
>
>
>
> <INPUT type="submit" value="Start MapServer">
>
> </FORM></CENTER></BODY></HTML>
>
> template file
>
> <HTML>
>
> <HEAD><TITLE>MapServer Test</TITLE></HEAD>
>
> <CENTER><H2>MapServer Test</H2>
>
> <HR>
>
>
>
> <FORM method=GET action="/cgi-bin/mapserv.exe">
>
> <INPUT NAME="img" TYPE="image" SRC="[img]" width=600 height=300 border=0
>
> ALT="Map Image">
>
>
>
> <INPUT type=hidden name=zoomdir value=1 [zoomdir_1_check] >
>
> <INPUT type=hidden name=zoomsize size=4 value=[zoomsize]>
>
>
>
> <INPUT type="hidden" name="imgxy" value="[center_x] [center_y]">
>
> <INPUT type="hidden" name="imgext" value="[mapext]">
>
> <INPUT type="hidden" name="map" value="[map]">
>
> <INPUT type="hidden" name="savequery" value="true">
>
> <INPUT type="hidden" name="mapext" value="shapes">
>
>
>
> </FORM></CENTER></BODY></HTML>
> thanks!
> wangtao
> 2007.05.08
>
> ------------------------------------------------------------------------
> Need Mail bonding?
> Go to the Yahoo! Mail Q&A
> <http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396546091>
> for great tips from Yahoo! Answers
> <http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396546091>
> users.
--
======================
Ei Fujioka
Research Associate
Duke University
(919) 613-8021
efujioka at duke.edu
======================
More information about the MapServer-users
mailing list