Labels in 5.0 was: Can I export MapInfo "styleitem" info to PostGIS?

Daniel Morissette dmorissette at MAPGEARS.COM
Wed Oct 10 12:16:41 PDT 2007


Richard Greenwood wrote:
> On 10/10/07, Daniel Morissette <dmorissette at mapgears.com> wrote:
> 
>> That is the reason why LABELITEM, ANGLEITEM, etc were dropped in 5.0.
>> e.g. LABELITEM was replaced by "LABEL [mylabelitem]", etc.
> 
> The above doesn't work for me. My layer definition is:
> 

OOpps.. sorry I was wrong. LABELITEM is still there. It's the following 
that are gone:

* Layer: LABELANGLEITEM, LABELSIZEITEM
* Style: ANGLEITEM, SIZEITEM

... and replaced by attribute binding, e.g.

LAYER
    NAME "water"
    STATUS ON
    DATA "Hydro/Water"
    TYPE LINE
    LABELITEM "Name"
    LABELMAXSCALE 50000
    CLASS
       COLOR 0 0 255
       SYMBOL 'solid'
       SIZE [mySize]
       LABEL
          ANGLE AUTO
          TYPE truetype
          antialias true
          POSITION CC
          SIZE [myLabelSize]
          COLOR 0 0 255
          FONT arial
          OUTLINECOLOR 255 255 255
       END # label
    END # class
END # water layer


Sorry about this.

Daniel
-- 
Daniel Morissette
http://www.mapgears.com/



More information about the MapServer-users mailing list