MAP
  NAME "Testing"
  EXTENT -0.5 50.977222 0.5 51.977222
  #IMAGETYPE JPEG
  #IMAGETYPE PNG24
  IMAGETYPE PNG
  IMAGECOLOR 255 255 255
  STATUS ON
  SIZE 200 200
  FONTSET "fonts.txt"
  SYMBOLSET "symbols.txt"

  SCALEBAR
    STATUS EMBED
    POSTLABELCACHE TRUE
    STYLE 0
    UNITS METERS
    SIZE 150 3
    POSITION LR
    TRANSPARENT TRUE
    COLOR 0 0 0
    IMAGECOLOR 242 255 195
    BACKGROUNDCOLOR 255 255 255
    LABEL
      TYPE BITMAP
      SIZE TINY
      COLOR 0 0 0
      POSITION UR
      BUFFER 10
    END
  END

  LEGEND
    IMAGECOLOR 255 255 255
  END
  
  WEB
    METADATA
      "key1" "value1"
      "key2" "value2"
      "key3" "value3"
      "key4" "value4"
      "ows_enable_request" "*"
    END
  END

  PROJECTION
    "init=epsg:4326"
  END
 
  LAYER
    NAME "RASTER"
    TYPE RASTER
    PROJECTION
      "init=epsg:4326"
    END
    DATA "raster.tif"
    PROCESSING "BANDS=1"
    STATUS ON # DEFAULT
  END
  
  LAYER
    NAME "POLYGON"
    TYPE POLYGON
    PROJECTION
      "init=epsg:4326"
    END
    STATUS ON # DEFAULT
    DATA "polygon"
    METADATA
      "key1" "value1"
      "key2" "value2"
      "key3" "value3"
      "key4" "value4"
    END
    CLASSITEM "FNAME"
    CLASS
      NAME "0"
      METADATA
        "key1" "value1"
        "key2" "value2"
        "key3" "value3"
        "key4" "value4"
      END
      STYLE
        COLOR 255 153 102
        OUTLINECOLOR 0 0 204
        #SYMBOL 1
        #SIZE 2
      END      
    END
    CLASS
      NAME "1"
      EXPRESSION "foo"
      STYLE
        COLOR 255 153 102
        OUTLINECOLOR 0 0 204
        SYMBOL 1
        SIZE 2
      END
    END
  END

  LAYER
    NAME "LINE"
    TYPE LINE
    PROJECTION
      "init=epsg:4326"
    END
    #TRANSPARENCY 1
    STATUS ON # DEFAULT
    DATA "line"
    CLASSITEM "FNAME"
    CLASS
      NAME "0"
      STYLE
        COLOR 0 153 0
        #SYMBOL 1
        #SIZE 3
        WIDTH 3
      END
    END
    CLASS
      NAME "1"
      EXPRESSION "foo"
      STYLE
        COLOR 0 153 0
        SYMBOL 1
        SIZE 3
      END
    END
  END

  LAYER
    NAME "POINT"
    EXTENT -0.5 51.0 0.5 52.0
    TYPE POINT
    PROJECTION
      "init=epsg:4326"
    END
    STATUS OFF # DEFAULT
    DATA "point"
    METADATA
      "gml_types" "auto"
    END
    CLASSITEM "FNAME"
    LABELITEM "FNAME"
    CLASS
      NAME "0"
      STYLE
        COLOR 0 0 0
        SYMBOL 1
        SIZE 13
      END
      STYLE
        COLOR 204 204 204
        SYMBOL 1
        SIZE 7
      END
      LABEL
        TYPE TRUETYPE
        FONT "Vera"
        SIZE 10
        COLOR 0 0 0
      END

      TEMPLATE "point.html"
    END
    CLASS
      NAME "1"
      EXPRESSION "foo"
      STYLE
        COLOR 0 0 0
        SYMBOL 1
        SIZE 13
      END
    END
  END

  LAYER
    NAME "INLINE"
    TYPE POINT
    PROJECTION
      "init=epsg:4326"
    END
    STATUS OFF # DEFAULT
    FEATURE
      POINTS -0.2 51.5 END
    END
    CLASS
      NAME "0"
      STYLE
        COLOR 0 0 0
        SYMBOL 1
        SIZE 3
      END
    END
  END

  LAYER
    NAME "INLINE-PIXMAP-RGBA"
    TYPE POINT
    DEBUG ON
    PROJECTION
      "init=epsg:4326"
    END
    STATUS OFF
    FEATURE
      POINTS 0.2 51.7 END
    END
    CLASS
      NAME "0"
      STYLE
        SYMBOL 'xmarks-png'
      END
      LABEL
        COLOR 0 0 0
      END
    END
  END

LAYER
    NAME "INLINE-PIXMAP-PCT"
    TYPE POINT
    DEBUG ON
    PROJECTION
      "init=epsg:4326"
    END
    STATUS OFF # DEFAULT
    FEATURE
      POINTS 0.2 51.2 END
    END
    CLASS
      NAME "0"
      TEXT "."
      LABEL
        COLOR 0 0 0
        STYLE
          SYMBOL 'home-png'
          GEOMTRANSFORM "labelpnt"
        END
      END
    END
  END

END

