[ka-Map-users] Legend display problem

Kumar kumar at newfields.com
Thu Sep 28 23:54:23 EDT 2006


Hi,
I am having problems displaying my legends for all the layers. For some
reason some layers draw the legend and some don't. I don't have problems
displaying the layers, except for the legend. I have attached my layer
definition below. Hope someone can point me in the right direction. Thanks
in advance.

- kumar


  #------------ This works with legend---------     
  LAYER
  	NAME "KCSL"
    Group "Known Contaminated Site Location"
    STATUS OFF
    DATA "the_geom from (select pi_name,status,the_geom from public.kcsl) as
foo using SRID=32111 using unique the_geom"
    TYPE POINT
    CONNECTIONTYPE POSTGIS
    CONNECTION "user=xxx password=xxx dbname=test host=localhost port=5432"
    UNITS feet
    SIZEUNITS PIXELS
    TOLERANCE 0
	LABELMAXSCALE 5000
	LABELITEM "pi_name"
    TOLERANCEUNITS PIXELS
    METADATA
    END
    CLASS
      NAME "Active"
	  EXPRESSION ('[status]'='Active') 
      LABEL
        TYPE TRUETYPE
        FONT "Lucida-Console"
        SIZE 8
        MINSIZE 4
        MAXSIZE 256
        POSITION AUTO
        OFFSET 0 0 
        ANGLE AUTO
        BUFFER 0
        MINDISTANCE -1
        MINFEATURESIZE -1
        COLOR 10 200 55
		OUTLINECOLOR 255 255 255
        ANTIALIAS TRUE
        PARTIALS TRUE
        FORCE FALSE
      END
      STYLE
        SYMBOL 2
        COLOR 10 200 55
        SIZE 9
		MAXSIZE 100
      END
    END
    CLASS
      NAME "NFA-A (Restricted Use)"
	  EXPRESSION ('[status]'='NFA-A (Restricted Use)') 
      LABEL
        TYPE TRUETYPE
        FONT "Lucida-Console"
        SIZE 8
        MINSIZE 4
        MAXSIZE 256
        POSITION AUTO
        OFFSET 0 0 
        ANGLE AUTO
        BUFFER 0
        MINDISTANCE -1
        MINFEATURESIZE -1
        COLOR 200 0 55
		OUTLINECOLOR 255 255 255		
        ANTIALIAS TRUE
        PARTIALS TRUE
        FORCE FALSE
      END
      STYLE
        SYMBOL 2
        COLOR 200 0 55
        SIZE 9
		MAXSIZE 100
      END
    END
  END   
  #------------ This doesn't work with the legend --------     
  LAYER
  	NAME "njpdes"
    Group "New Jersey - NJPDES"
    STATUS OFF
    DATA "the_geom from (select facname,distype,the_geom from
public.vw_nj_npdes) as foo using SRID=32111 using unique the_geom"
    TYPE POINT
    CONNECTIONTYPE POSTGIS
    CONNECTION "user=xxx password=xxx dbname=test host=localhost port=5432"
    UNITS feet
    SIZEUNITS PIXELS
    TOLERANCE 0
	LABELMAXSCALE 5000
	LABELITEM "facname"
    TOLERANCEUNITS PIXELS
    METADATA
    END
    CLASS
      NAME "Petroleum hydrocarbon remediation"
	  EXPRESSION ('[distype]'='B4B')
      LABEL
        TYPE TRUETYPE
        FONT "Lucida-Console"
        SIZE 8
        MINSIZE 4
        MAXSIZE 256
        POSITION AUTO
        OFFSET 0 0 
        ANGLE AUTO
        BUFFER 0
        MINDISTANCE -1
        MINFEATURESIZE -1
        COLOR 0 200 0
		OUTLINECOLOR 255 255 255
        ANTIALIAS TRUE
        PARTIALS TRUE
        FORCE FALSE
      END
      STYLE
        SYMBOL 7
        COLOR 0 200 0
        SIZE 9
		MAXSIZE 100
      END
    END
    CLASS
      NAME "Undefined - BGR"
	  EXPRESSION ('[distype]'='BGR') 
      LABEL
        TYPE TRUETYPE
        FONT "Lucida-Console"
        SIZE 8
        MINSIZE 4
        MAXSIZE 256
        POSITION AUTO
        OFFSET 0 0 
        ANGLE AUTO
        BUFFER 0
        MINDISTANCE -1
        MINFEATURESIZE -1
        COLOR 200 0 0
		OUTLINECOLOR 255 255 255		
        ANTIALIAS TRUE
        PARTIALS TRUE
        FORCE FALSE
      END
      STYLE
        SYMBOL 7
        COLOR 200 0 0
        SIZE 9
		MAXSIZE 100
      END
    END
  END   



More information about the ka-Map-users mailing list