wms layer display problem

wang tao wangtao2smith at YAHOO.COM
Tue May 8 01:31:35 PDT 2007


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




 
____________________________________________________________________________________
It's here! Your new message!  
Get new email alerts with the free Yahoo! Toolbar.
http://tools.search.yahoo.com/toolbar/features/mail/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070508/512c1e4c/attachment.htm>


More information about the MapServer-users mailing list