#
# Start of map file
#
NAME WCms
STATUS ON
SIZE 600 600
SCALE 10000
EXTENT 1831330.000000 470250.000000 2343330.000000 982250.000000
UNITS FEET
SHAPEPATH "data"
IMAGECOLOR 255 255 255

IMAGETYPE PNG

WEB
  HEADER WCms_header.html
  TEMPLATE WCms.html
  FOOTER WCms_footer.html
  MINSCALE 1000
  MAXSCALE 1550000
  IMAGEPATH "/var/www/html/tmp/"
  IMAGEURL "/tmp/"
  METADATA
    WMS_TITLE "WebInsights Mapping Tool"
    WMS_ABSTRACT "This is the UMN MapServer demonstration application for Wake County located in North Carolina."
    WMS_ACCESSCONSTRAINTS none

    # change this value to match your setup
    WMS_ONLINERESOURCE "http://localhost/mapserver/wc/WCms.html"

    WMS_SRS "EPSG:26915"
  END
END

QUERYMAP
  SIZE 600 600
  STATUS ON
  STYLE HILITE
  COLOR 200 200 160
 # COLOR 255 0 0
  #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 MILES
  INTERVALS 1
  TRANSPARENT TRUE
  STATUS TRUE
END

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

SYMBOL
  NAME 'triangle'
  TYPE vector
  POINTS
	0 6
	3 0
	6 6
	0 6
    	END
  FILLED TRUE
END

SYMBOL
  NAME 'cross'
  TYPE vector
  POINTS
	2 0
	2 4
	-99 -99
	0 2
	4 2
  END
END
#
# Start of layer definitions
#

LAYER
    NAME "nodes"
    GROUP gp_nodes
    CONNECTIONTYPE postgis
	CONNECTION "user=dblasby dbname=postgis_delme host=localhost port=5432"
    DATA "the_geom from nodescomb_2003"
    STATUS OFF
    TYPE POLYGON
	CLASSITEM "nodeid"
	LABELITEM "nodeid"
    LABELMAXSCALE 50000
   
    CLASS
      EXPRESSION /./  
      NAME "nodes"
      TEMPLATE "WCms_nodes.html"
      OUTLINECOLOR 0 225 0
	  LABEL
		TYPE TRUETYPE
		FONT lucidaSans_regular		
        COLOR 0 225 0	
		SIZE 7
		#MINSIZE 4
		#MAXSIZE 8
		POSITION CC
		#MINFEATURESIZE 100
		#MINFEATURESIZE AUTO
		#MINDISTANCE 200
		BUFFER 2	
    	END
    END
    HEADER "WCms_nodes_header.html"
    FOOTER "WCms_nodes_footer.html"
  
END # Nodes DB

END # Map File
