[ka-Map-users] adding WMS layers

R. Ortner reinhard.ortner at edu.fh-kaernten.ac.at
Fri Nov 23 02:58:31 EST 2007


The CONNECTION looks not correct for me.
Try:

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

that should work!





matteo rossi wrote:
> 
> 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
> 
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users
> 
> 

-- 
View this message in context: http://www.nabble.com/adding-WMS-layers-tf4857580.html#a13908177
Sent from the ka-map-users mailing list archive at Nabble.com.



More information about the ka-Map-users mailing list