layer configuration for WMS

xslove xslove at CENTRUM.CZ
Mon Aug 21 04:38:49 PDT 2006


Well, I try request with your mapfile (a bit modification with paths), but
still nothing. Also I correct all quotes to double. Also I modify layer
connection for request on my local server. This servlet is never called by
mapserver - mapserver simple ignore this wms layer! It run under Windows XP
and version is 4.8.4. Can this be a problem?

here is your (my) modified mapfile
MAP 
  NAME TEST 
  STATUS ON 
  SIZE 900 500 
  EXTENT -180 -90 180 90 
  UNITS DD 
  IMAGETYPE PNG24 
  OUTPUTFORMAT 
    NAME png24 
    DRIVER "GDAL/PNG" 
    MIMETYPE "image/png" 
    IMAGEMODE RGB 
    EXTENSION "png" 
  END 
  SHAPEPATH "/shp/" 
  FONTSET "/tmp/font/fontset" 

  projection 
    "init=EPSG:4326"
  end 

  SCALEBAR 
    STATUS EMBED 
    UNITS KILOMETERS 
    INTERVALS 3 
    TRANSPARENT TRUE 
    OUTLINECOLOR 0 0 0 
  END #End of SCALEBAR 

  WEB 
    TEMPLATE global.html 
    MAXSCALE 125992916 
    IMAGEPATH "/tmp/" 
    IMAGEURL "/tmp/" 
    LOG "/tmp/logs/mapserver.log" 
  END #End of WEB 

layer 
  name "da"
  type raster 
  offsite 0 0 0 
  status DEFAULT 
  connectiontype wms 
  connection "http://wms.jpl.nasa.gov/wms.cgi?" 
  #connection "http://localhost:8080/ghory/wms?req=t"  - my test servlet
listener - it is never called!
  metadata 
    "wms_title" "global" 
    "wms_srs" "EPSG:4326" 
    "wms_name" "global_mosaic" 
    "wms_style" "visual" 
    "wms_server_version" "1.1.1" 
    "wms_format" "image/jpeg" 
    "wms_force_separate_request" "1" 
  end 
  projection 
    "init=EPSG:4326"
  end 
end 

END #End of MAP 

and one of my requests

http://10.133.28.149:8081/cgi/mapserv.exe?map=test.map&service=wms&version=1.1.1&request=GetMap&width=488&height=380&bbox=-5,-5,5,6&layers=da
-- 
View this message in context: http://www.nabble.com/layer-configuration-for-WMS-tf2133082.html#a5905214
Sent from the Mapserver - User forum at Nabble.com.



More information about the MapServer-users mailing list