Madeira/Flooding/MapFile

From OpenStreetMap Wiki
Jump to: navigation, search

This is the current mapfile for madeira

MAP
CONFIG "MS_ERRORFILE" "/var/tmp/ms.log"
DEBUG 5
PROJECTION
# projection of map:
     "init=epsg:4326"
END


EXTENT -17.0 32.58 -16.6 32.92



SIZE 600 600
UNITS METERS
STATUS OFF
NAME "TEST"
IMAGECOLOR 155 155 155
IMAGETYPE PNG

SHAPEPATH  "/mnt/1tb/flossk/2010/02/mdupont/dlr/portugal/"


WEB
    TEMPLATE headerwms.html
     METADATA
         "wms_title"     "Crisis Map Madeira"  ##required
         "wms_srs"       "EPSG:4326"  ##recommended
    END
    IMAGEPATH /var/www/mapserver/tmp/
    IMAGEURL /mapserver/tmp/
END

FONTSET        "fonts.txt"

LAYER
 NAME "grid"
 METADATA
   "DESCRIPTION" "Grid"
 END
 TYPE LINE
 STATUS OFF
 CLASS
   NAME "Graticule"
   COLOR 0 0 0
   LABEL
     COLOR  255 0 0
      FONT "Courier_New"
      TYPE TRUETYPE

     SIZE 12
     POSITION AUTO
     PARTIALS FALSE
     BUFFER 5
     OUTLINECOLOR 255 255 255
   END
END
GRID
#  LABELFORMAT "DDMMSS"
  LABELFORMAT '%g°'  # dec degrees with symbol
#  MAXARCS 100
#  MAXINTERVAL 30
#  MAXSUBDIVIDE 20
#  LABELFORMAT '%7.0f m'  # nice if a projected SRS used
  MININTERVAL 200
  MAXSUBDIVIDE 5
END
END # Layer


 # A scalebar object is defined one level below the map object.  This object 
  # controls how a scalebar is drawn by MapServer.  Scalebars can be embedded 
  # in the map itself or can be created as a separate image.  It has an 
  # associated MapServer CGI variable called "scalebar" (or [scalebar] when 
  # used in the HTML template).
  SCALEBAR
    IMAGECOLOR 255 255 255
    LABEL
      COLOR 0 0 0
      SIZE TINY
    END
    STYLE 1
    SIZE 100 2
    COLOR 0 0 0
    UNITS METERS
    INTERVALS 2
    TRANSPARENT FALSE
    STATUS OFF
  END # Scalebar object ends



 LAYER
   NAME "copyright"

   STATUS OFF
  TYPE annotation
  TRANSFORM ll #set the image origin to be lower left
  FEATURE
    POINTS
      180 -20 #set the offset from lower left position in pixels
    END
    TEXT "© Flossk.org 2010" #this is your displaying text
  END
  CLASS
    LABEL #defines the font, colors etc. of the text
      FONT "Courier_New"
      TYPE TRUETYPE
      SIZE 8
      BUFFER 1
      COLOR 0 0 0
      BACKGROUNDCOLOR 255 255 255
      FORCE TRUE
    END
  END
  UNITS PIXELS #sets the units for the feature object
END


  LAYER
    NAME "DLR_20100223_Portugal_Madeira_flood_damage_assessment_curral_sheet1_high"
    STATUS OFF
    TYPE RASTER
    DATA DLR_20100223_Portugal_Madeira_flood_damage_assessment_curral_sheet1_high.jpg
#    DATA DLR_20100223_Portugal_Madeira_flood_damage_assessment_curral_sheet1_high.jpg.tiff
DEBUG 5
    METADATA
	"wms_title"    "DLR_20100223_Portugal_Madeira_flood_damage_assessment_curral_sheet1_high"
       	"wms_name"       "DLR_20100223_Portugal_Madeira_flood_damage_assessment_curral_sheet1_high"
       	"wms_server_version"  "1.1.1"
        "wms_style"           "visual"
    END

PROJECTION
     "init=epsg:32628"
END


   END


  LAYER
    NAME "DLR_20100223_Portugal_Madeira_flood_damage_assessment_curral_sheet2_high"
    STATUS OFF
    TYPE RASTER
DEBUG 5
    DATA DLR_20100223_Portugal_Madeira_flood_damage_assessment_curral_sheet2_high.jpg
    METADATA
	"wms_title"    "DLR_20100223_Portugal_Madeira_flood_damage_assessment_curral_sheet2_high"
       	"wms_name"       "DLR_20100223_Portugal_Madeira_flood_damage_assessment_curral_sheet2_high"
       	"wms_server_version"  "1.1.1"
        "wms_style"           "visual"
    END
   END


  LAYER
    NAME "DLR_20100223_Portugal_Madeira_flood_damage_assessment_curral_sheet3_high"
    STATUS OFF
    TYPE RASTER
    DATA DLR_20100223_Portugal_Madeira_flood_damage_assessment_curral_sheet3_high.jpg.tiff
    METADATA
	"wms_title"    "DLR_20100223_Portugal_Madeira_flood_damage_assessment_curral_sheet3_high"
       	"wms_name"       "DLR_20100223_Portugal_Madeira_flood_damage_assessment_curral_sheet3_high"
       	"wms_server_version"  "1.1.1"
        "wms_style"           "visual"
    END
PROJECTION
     "init=epsg:32628"
END

   END

  LAYER
    NAME "DLR_20100223_Portugal_Madeira_flood_damage_assessment_curral_sheet4_high"
    STATUS OFF
    TYPE RASTER
DEBUG 5
    DATA DLR_20100223_Portugal_Madeira_flood_damage_assessment_curral_sheet4_high.jpg
    METADATA
	"wms_title"    "DLR_20100223_Portugal_Madeira_flood_damage_assessment_curral_sheet4_high"
       	"wms_name"       "DLR_20100223_Portugal_Madeira_flood_damage_assessment_curral_sheet4_high"
       	"wms_server_version"  "1.1.1"
        "wms_style"           "visual"
    END
   END

  LAYER
    NAME "EUSC_20100222_Portugal_Madeira_flood_Funchal09_high"
    STATUS OFF
    TYPE RASTER
    DATA EUSC_20100222_Portugal_Madeira_flood_Funchal09_high.jpg
    METADATA
	"wms_title"    "EUSC_20100222_Portugal_Madeira_flood_Funchal09_high"
       	"wms_name"       "EUSC_20100222_Portugal_Madeira_flood_Funchal09_high"
       	"wms_server_version"  "1.1.1"
        "wms_style"           "visual"
    END
PROJECTION
     "init=epsg:32628"
END

   END


  LAYER
    NAME "EUSC_20100222_Portugal_Madeira_flood_Funchal10_high"
    STATUS OFF
    TYPE RASTER
DEBUG 5
    DATA EUSC_20100222_Portugal_Madeira_flood_Funchal10_high.jpg.tiff
    METADATA
	"wms_title"    "EUSC_20100222_Portugal_Madeira_flood_Funchal10_high"
       	"wms_name"       "EUSC_20100222_Portugal_Madeira_flood_Funchal10_high"
       	"wms_server_version"  "1.1.1"
        "wms_style"           "visual"
    END
   END


  LAYER
    NAME "EUSC_20100222_Portugal_Madeira_lanslide_risk_a_high"
    STATUS OFF
    TYPE RASTER
    DATA EUSC_20100222_Portugal_Madeira_lanslide_risk_a_high.jpg
    METADATA
	"wms_title"    "EUSC_20100222_Portugal_Madeira_lanslide_risk_a_high"
       	"wms_name"       "EUSC_20100222_Portugal_Madeira_lanslide_risk_a_high"
       	"wms_server_version"  "1.1.1"
        "wms_style"           "visual"
    END
PROJECTION
     "init=epsg:32628"
END

   END

  LAYER
    NAME "EUSC_20100222_Portugal_Madeira_lanslide_risk_b_high"
    STATUS OFF
    TYPE RASTER
DEBUG 5
    DATA EUSC_20100222_Portugal_Madeira_lanslide_risk_b_high.jpg
    METADATA
	"wms_title"    "EUSC_20100222_Portugal_Madeira_lanslide_risk_b_high"
       	"wms_name"       "EUSC_20100222_Portugal_Madeira_lanslide_risk_b_high"
       	"wms_server_version"  "1.1.1"
        "wms_style"           "visual"
    END
PROJECTION
     "init=epsg:32628"
END

   END
END