[ka-Map-users] adding WMS layers

Sacha Black sacha.black at gmail.com
Fri Nov 23 13:10:32 EST 2007


hi Matteo,

i think there is also a javascript that must be included for handling
WMS (at least in the example):

<script type="text/javascript" src="wmsLayer.js"></script>

to be included in the top of your index.html page...

sacha

On Nov 22, 2007 9:19 AM, matteo rossi <matteo.oettam at gmail.com> 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
>
>


More information about the ka-Map-users mailing list