TEMPLATE in map file doesn't run, why?

SUBSCRIBE MAPSERVER-USERS Nuri mapserver at HOTMAIL.COM
Wed Jul 20 00:32:18 PDT 2005


Hi,

I inserted a TEMPLATE instruction in my map file but the link doesn't run
in the map.

Someone could tell me why I'm doing wrong? Thank you.

This is my map file:


MAP
  IMAGETYPE      PNG
  EXTENT   20.000000 18.000000 50.000000 110.000000
  SIZE           500 350
  SHAPEPATH      "data"
  IMAGECOLOR     255 180 0
  SYMBOLSET      "symbols/symbols35.sym"
  FONTSET "fonts/fonts.list"

  # Start of LAYER DEFINITIONS --------------------------------------------
-

  LAYER # Capa de raster
    NAME mapafig
    DATA "raster/figueres.tif"
    STATUS DEFAULT
    TYPE RASTER
    PROCESSING "BANDS=1,2,3"
    OFFSITE 0 0 255
  END # Fi capa de raster

  LAYER
    NAME "prova"
    TEMPLATE "http://www.nusvirtual.com"    <-------- ????????????????????
    TYPE POINT
    CONNECTIONTYPE OGR
    CONNECTION "mapa21.ovf"
    DATA "mapa21"
    LABELITEM "id"
    #PROJECTION
    #  "init=epsg:4326"
    #END

    CLASS
      SYMBOL 'symbols/prova.gif'
      #SIZE 6
      COLOR 255 0 0
      LABEL
     SIZE MEDIUM
     TYPE BITMAP
     COLOR 0 0 0
      END
    END
END

  # End of LAYER DEFINITIONS -------------------------------
END # end of map file



More information about the MapServer-users mailing list