[mapserver-users] Unknown identifier: LABELSIZEITEM

Rainer Spittel rainer.spittel at terralink.co.nz
Mon Jun 9 00:32:28 EDT 2008


Hi guys,

  I am using Mapserver 5.0.2 and 5.0.3 and wanted to test LIBELSIZEITEM
for my annotation layers. The mapfile can not be loaded with that
attribute, I get following error:

   loadLayer(): Unknown identifier. Parsing error near
(LABELSIZEITEM):(line 699)

The Layer definition is like this:

LAYER
  NAME "annotation_layer_forced"
  GROUP "annotation_layer_forced"
  STATUS OFF
    
  CONNECTIONTYPE POSTGIS
  CONNECTION "..."
  DATA "the_geom from (select label_priority, gid, the_geom, anno from
parcel) as foo USING UNIQUE gid USING srid=27200"
  TYPE ANNOTATION

  PROJECTION
    "init=epsg:27200"
    "resize4Print"  "true"
  END
    
  LABELITEM "anno"
  LABELCACHE ON
  LABELSIZEITEM [label_priority]
  MAXSCALE 32000
 
  CLASS
    LABEL
      PRIORITY [label_priority]
      TYPE TRUETYPE
      FONT "META"
      COLOR 0 0 0
      WRAP '#'
      FORCE FALSE
    END    
  END   	
END

Any idea what I do wrong??? ;-)

Thx, 
Rainer


More information about the mapserver-users mailing list