[ka-Map-users] adding WMS layers

matteo rossi matteo.oettam at gmail.com
Thu Nov 22 12:19:27 EST 2007


Hi list,
is not the first time I'm writing about this problem but I didn't find a
solution yet.
Actually I'm not able to add a wms layer on my mapfile.
The code is below.
When I try to load my map on kaMap no tile are generated and nothing
happens.
Can you try to load on your KaMap this mapfile to find a solution?
Where's the error in the mapfile?

Thanks a lot

matteo rossi


MAP
  NAME "prova_modis_wms"
  STATUS ON
  EXTENT -180 -90 180 90
  SIZE 256 256
  IMAGECOLOR 200 200 200
  TRANSPARENT ON
  UNITS dd
  INTERLACE ON

  PROJECTION
      "init=epsg:4326"
    END

  IMAGETYPE png

  OUTPUTFORMAT
    NAME jpeg
    DRIVER "GD/JPEG"
    IMAGEMODE RGB
    EXTENSION "jpeg"
    FORMATOPTION "QUALITY=60,PROGRESSIVE=TRUE"
 END


WEB
     IMAGEPATH "/tmp"
     IMAGEURL "/tmp"

END

  LEGEND
    OUTLINECOLOR 0 0 0
    STATUS on
    KEYSIZE 40 10
    KEYSPACING 20 15
    TRANSPARENT on
  END

   SCALEBAR
    STATUS ON
    IMAGECOLOR 255 255 255
    COLOR  0 0 0
    OUTLINECOLOR 0 0 0
    LABEL
    COLOR  0 0 0
    SIZE tiny
     END
   UNITS KILOMETERS
   STYLE 1
   INTERVALS 5
   TRANSPARENT ON
   SIZE 249 15
 END

  LAYER
    GROUP "Immagini"
    NAME "MODIS"
    TYPE RASTER
    STATUS ON
    DEBUG ON
    CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?styles=&"
    CONNECTIONTYPE WMS

    PROJECTION
      "init=epsg:4326"
    END

      METADATA
      "wms_name"            "modis"
      "wms_server_version"  "1.1.0"
      "wms_format"          "image/jpeg"
      "wms_srs"             "EPSG:4326"
    END
  END

END

END
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ka-map-users/attachments/20071122/2f7cdbf0/attachment.html


More information about the ka-Map-users mailing list