layer configuration for WMS

Zenon Panoussis oracle at PROVOCATION.NET
Sun Aug 20 17:33:45 PDT 2006


I wrote:

> With single quotes it doesn't work, with double quotes it does.

It seems I'm wrong, there's something fishy going on. Playing around
with it, suddenly I couldn't zoom closer than some fixed scale, it
kept returning a blank map. Then a moment later I could zoom in anyway.
So I put back the single quotes and it works with them too, but not
every time. My guess is that the JPL server times out and/or drops
requests, I can't see any other explanation for this. In any case,
here's the entire map file I used:

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 "fontset.txt"

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

  WEB
    TEMPLATE global.html
    MAXSCALE 125992916
    IMAGEPATH "/vol/www/www/tmp/"
    IMAGEURL "/tmp/"
    LOG "/vol/www/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?"
  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


Z



More information about the MapServer-users mailing list