Hi all

A notice can be defined as follows (see http://mapserver.org/faq.html):

LAYER
  NAME "copyright"
  STATUS ON
  TYPE annotation
  TRANSFORM ll #set the image origin to be lower left
  FEATURE
    POINTS
      60 -10 #set the offset from lower left position in pixels
    END
    TEXT "© xyz company 2006" #this is your displaying text
  END
  CLASS
    LABEL #defines the font, colors etc. of the text
      FONT "sans"
      TYPE TRUETYPE
      SIZE 8
      BUFFER 1
      COLOR 0 0 0
      BACKGROUNDCOLOR 255 255 255
      FORCE TRUE
    END
  END
  UNITS PIXELS #sets the units for the feature object
END

BACKGROUNDCOLOR on labels is deprecated in V6 (who knows why ..., love this backward compatibility) ... and replaced by "GEOMTRANSFORM", therefore the new syntax is:

LAYER
  NAME "copyright"
  STATUS ON
  TYPE annotation
  TRANSFORM ll #set the image origin to be lower left
  FEATURE
    POINTS
      60 -10 #set the offset from lower left position in pixels
    END
    TEXT "© xyz company 2006" #this is your displaying text
  END
  CLASS
    LABEL #defines the font, colors etc. of the text
      FONT "sans"
      TYPE TRUETYPE
      SIZE 8
      BUFFER 1
      COLOR 0 0 0
        STYLE
        GEOMTRANSFORM 'labelpoly'
        COLOR 255 255 255
        OUTLINECOLOR 255 0 0
        WIDTH 10
        END
      FORCE TRUE
    END
  END
  UNITS PIXELS #sets the units for the feature object
END

However, it does not work .....

Mit freundlichem Gruss / Best regards
Flavio Hendry

----------------------------------------------------------------
TYDAC Inc.  - http://www.tydac.ch
Web Mapping - http://www.mapserver.ch
Swiss Maps  - http://www.mapplus.ch
----------------------------------------------------------------
############      Mit freundlichen Gruessen / Kind Regards
############     Flavio Hendry, CEO - mailto:[email protected]
############         TYDAC AG - http://www.tydac.ch
####    ####        Geographic Information Solutions
####    ####       Optingenstrasse 27 -- CH-3013 Bern
############   Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860
----------------------------------------------------------------
   Location: http://www.mapplus.ch/adr/bern/optingenstrasse/27
----------------------------------------------------------------

_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to