#
# Start of map file
#
NAME DEMO
STATUS ON
SIZE 600 600
#EXTENT -565918.875607 55035.833974 506926.040335 1264723.213684
EXTENT -180 -90 180 90
UNITS METERS
SHAPEPATH "data"
IMAGECOLOR 255 255 255


# you may need to change this to match your MapServer build
#IMAGETYPE PNG

#
# Projection definition, consult the PROJ.4 documentation for parameter discussion
#
PROJECTION
  "proj=lcc"
  "ellps=GRS80"
  "lat_0=60"
  "lon_0=-105"
  "lat_1=61.666666700"
  "lat_2=63.333333300"  
  "datum=NAD83"
  "units=m"
END

#
# Start of web interface definition (including WMS enabling metadata)
#
WEB
  HEADER demo_header.html
  TEMPLATE demo.html
  FOOTER demo_footer.html
  #MINSCALE 1000
  #MAXSCALE 1550000
  IMAGEPATH "d:\virtual\Mapserver\tmp\"
  IMAGEURL "/tmp/"
  LOG "c:\temp\DemoApp.log"
  METADATA
    WMS_TITLE "Server Demo"
    WMS_ABSTRACT "Sample Data"
    WMS_ACCESSCONSTRAINTS none

    # change this value to match your setup
    WMS_ONLINERESOURCE "http://192.168.1.22/demo/demo_init.html"
    WMS_SRS "EPSG:26915"
	
   END
END

QUERYMAP
  SIZE 200 200
  STATUS ON
  STYLE HILITE
  COLOR 255 0 0
END

#
# Start of reference map
#
REFERENCE
  IMAGE graphics/reference.gif
  #EXTENT 393234.393701263 5205405.16440722 495769.579718949 5307959.02579127
  EXTENT -180 -90 180 90
  SIZE 120 120
  STATUS ON
  COLOR -1 -1 -1
  OUTLINECOLOR 255 0 0
END


#
# Start of legend
#
LEGEND
  KEYSIZE 18 12
  LABEL
    TYPE BITMAP
    SIZE MEDIUM
    COLOR 0 0 89
  END
  STATUS ON
END

#
# Start of scalebar
#
SCALEBAR
  IMAGECOLOR 255 255 255
  LABEL
    COLOR 255 255 255
    SIZE tiny    
  END
  STYLE 1
  SIZE 80 2
  COLOR 255 255 255
  UNITS METERS
  INTERVALS 1
  TRANSPARENT TRUE
  STATUS TRUE
END


#
# Start of symbol definitions (we're only using a few)
#
SYMBOL
  NAME 'circle'
  TYPE ELLIPSE
  POINTS 1 1 END
  FILLED TRUE
END


#
# Start of layer definitions
#

# *************************************************************
# Layer 1
# *************************************************************
LAYER
  NAME Canada
  TYPE POLYGON
  STATUS ON
  CONNECTIONTYPE OGR
  CONNECTION "d:\MapserverData\eq\CANADA.TAB"
#  STYLEITEM "AUTO"

  CLASSITEM Province_Name
  CLASSITEM Pop_1990
  LABELITEM Province


 CLASS
    NAME "Ontario"
	EXPRESSION 'Ontario'
    COLOR 255 127 92
    OUTLINECOLOR  200 200 200 
    TEMPLATE "resultL1.html"	
  END

   CLASS
    NAME "Quebec"
	EXPRESSION 'Quebec'
	COLOR 195 209 186
    OUTLINECOLOR  200 200 200 
    TEMPLATE "resultL1.html"	
  END  

   CLASS
    NAME "1990 Pop (0 - 1M)"
	EXPRESSION ( ([Pop_1990] >= 0) and ([Pop_1990] < 1000000))
    COLOR 127 0 10
    OUTLINECOLOR  200 200 200 
    TEMPLATE "resultL1.html"	
  END

   CLASS
    NAME "1990 Pop (1M - 2M)"
	EXPRESSION ( ([Pop_1990] >= 1000000 ) and ([Pop_1990] < 2000000))
    COLOR 127 100 50
    OUTLINECOLOR  200 200 200 
    TEMPLATE "resultL1.html"	
  END

   CLASS
    NAME "1990 Pop (2M - 3M)"
	EXPRESSION ( ([Pop_1990] >= 2000000 ) and ([Pop_1990] < 3000000))
    COLOR 0  30 255
    OUTLINECOLOR  200 200 200 
    TEMPLATE "resultL1.html"	
  END

  
   CLASS
    NAME "Canada"
    COLOR 0 127 92
    OUTLINECOLOR  200 200 200 
    TEMPLATE "resultL1.html"	
  END
  
  

  
  HEADER "resultL1_header.html"
  FOOTER "resultL1_footer.html"	  

PROJECTION
	"AUTO"
END
  
END # Layer



# *************************************************************
# Layer 2
# *************************************************************
LAYER
  NAME Canhiway
  TYPE Line
  STATUS ON
  CONNECTIONTYPE OGR
  CONNECTION "d:\MapserverData\eq\Canhiway.TAB"
  STYLEITEM "AUTO"

  CLASSITEM Highway
  CLASS
    NAME "Canhiway"
    TEMPLATE "resultL2.html"	
  END

  HEADER "resultL2_header.html"
  FOOTER "resultL2_footer.html"	  

PROJECTION
	"AUTO"
END
  
END # Layer


# *************************************************************
# Layer 3
# *************************************************************
LAYER
  NAME Can_caps
  TYPE point
  STATUS ON
  CONNECTIONTYPE OGR
  CONNECTION "d:\MapserverData\eq\Can_caps.TAB"
  STYLEITEM "AUTO"

  CLASSITEM Capital
  CLASS
    NAME "Can_caps"
    TEMPLATE "resultL3.html"	
  END
	
  HEADER "resultL3_header.html"
  FOOTER "resultL3_footer.html"	  

PROJECTION
	"AUTO"
END
END

END # Map File
