[mapserver-dev] Legend not shown

SUSANNE susanne.kalliany at tefis.at
Fri Jul 11 06:07:58 EDT 2008


Hallo,
I am trying to build a legend for classes 'Bloesse', 'AKL I', ... with
following command:

legend "C:\ms4w\Apache\htdocs\ka-map-1.0\TEFprojects\globalPrint.map"       
"C:\ms4w\Apache\htdocs\ka-map-1.0\TEFprojects\legend.png"

A png image is built, but it is only showing one grey panel.

Please could somebody give me a hint.

Thanks a lot for your efforts, Susanne Kalliany

globalPrint.map:

MAP NAME global_map
STATUS ON
SIZE 1000 700		
EXTENT 45445 329943 47590 331562   
UNITS meters
IMAGECOLOR 255 255 255
IMAGETYPE png24
FONTSET "c:/ms4w/apps/gmap-ms46/etc/fonts.txt" 
SYMBOLSET
"c:/ms4w/Apache/htdocs/ka-map-1.0/TEFsource/TEFstylesheet/symbols.sym"
DEBUG ON
CONFIG "MS_ERRORFILE" "/ms4w/Temp/mapserver.log"
PROJECTION
         "init=epsg:31282"
END

##################################### 
# Symbol symbol-layer or annotation
	SYMBOL
	     NAME "poi01"					# Bezirkshauptstaedte			
	     TYPE pixmap
	     IMAGE
"c:/ms4w/Apache/htdocs/ka-map-1.0/TEFsource/TEFicons/poi_01_on.png"
	END
  
LEGEND
  IMAGECOLOR 255 255 255
  KEYSIZE 12 12
  LABEL
    TYPE truetype
    FONT "Arial"
    SIZE 9
    COLOR 0 0 0
  END
  STATUS embed
  POSITION ul
END
  
#####################################
#  Scalebar
	  SCALEBAR
      STATUS EMBED
      POSITION lr
      STYLE 0
      INTERVALS 4
      IMAGECOLOR 255 255 255
      LABEL
         COLOR 0 0 0
         SIZE LARGE
      END
      SIZE 200 3
      TRANSPARENT ON
      COLOR 0 0 0
      BACKGROUNDCOLOR 255 255 255
      OUTLINECOLOR 0 0 0
      UNITS METERS
   END
   
############################################
LAYER
   NAME zobject1
   GROUP zobject1
   STATUS ON
   MAXSCALE 30000
   TYPE POLYGON
   CONNECTIONTYPE postgis
   CONNECTION 'user=postgres password=susi dbname=tefisdb host=localhost
port=5432'
   DATA  'the_geom FROM zobject1'
   PROJECTION
   		'init=epsg:31282'
   END
   LABELITEM 'uabt'
   CLASS
      NAME 'Bloesse'
      EXPRESSION ("[akl]"="Bl")
      STYLE
         COLOR 200 200 200
         OUTLINECOLOR 0 0 0
         WIDTH 2
      END
      LABEL
         TYPE TRUETYPE
         FONT 'sans'
         SIZE 10
         POSITION cc
         Color 0 0 0
      END
   END
   TEMPLATE 'dummy.html'
   CLASS
      NAME 'AKL I'
      EXPRESSION ("[akl]"="I")
      STYLE
         COLOR 255 255 0
         OUTLINECOLOR 0 0 0
         WIDTH 2
      END
      LABEL
         TYPE TRUETYPE
         FONT 'sans'
         SIZE 10
         POSITION cc
         Color 0 0 0
      END
   END
   TEMPLATE 'dummy.html'
   CLASS
      NAME 'AKL II'
      EXPRESSION ("[akl]"="II")
      STYLE
         COLOR 255 0 0
         OUTLINECOLOR 0 0 0
         WIDTH 2
      END
      LABEL
         TYPE TRUETYPE
         FONT 'sans'
         SIZE 10
         POSITION cc
         Color 0 0 0
      END
   END
   TEMPLATE 'dummy.html'
   CLASS
      NAME 'AKL III'
      EXPRESSION ("[akl]"="III")
      STYLE
         COLOR 100 200 100
         OUTLINECOLOR 0 0 0
         WIDTH 2
      END
      LABEL
         TYPE TRUETYPE
         FONT 'sans'
         SIZE 10
         POSITION cc
         Color 0 0 0
      END
   END
   TEMPLATE 'dummy.html'
   CLASS
      NAME 'AKL IV'
      EXPRESSION ("[akl]"="IV")
      STYLE
         COLOR 050 150 250
         OUTLINECOLOR 0 0 0
         WIDTH 2
      END
      LABEL
         TYPE TRUETYPE
         FONT 'sans'
         SIZE 10
         POSITION cc
         Color 0 0 0
      END
   END
END

END


-- 
View this message in context: http://www.nabble.com/Legend-not-shown-tp18400546p18400546.html
Sent from the Mapserver - Dev mailing list archive at Nabble.com.



More information about the mapserver-dev mailing list