[mapserver-users] Repeating annotation,	using LABEL_NO_CLIP=1 with Open Layers
    Ted Spradley 
    tspradley at snoogems.com
       
    Tue Jan 26 15:51:05 PST 2010
    
    
  
Hi everyone,
I recently added a copyright notice via an annotation layer.  When the
mapfile is accessed as a WMS 
via OpenLayers, the annotation repeats on every tile.  I am using the
directive:
     PROCESSING 'LABEL_NO_CLIP=1' 
Setting the OL WMS call to Untiled did cause the annotation to disappear
altogether.  Any thoughts?
Thank you!
Ted S.
/* The layer */
  LAYER
    NAME "copyright"
    STATUS ON
    TYPE annotation
    PROCESSING 'LABEL_NO_CLIP=1'
    TRANSFORM ll #set the image origin to be lower left
    FEATURE
      POINTS
        100 -20 #set the offset from lower left position in pixels
      END
      TEXT "copyright text" #this is your displaying text
    END
    CLASS
      LABEL #defines the font, colors etc. of the text
        FONT "ARIAL"
        TYPE TRUETYPE
        SIZE 8
        BUFFER 1
        COLOR 0 0 0
        BACKGROUNDCOLOR 255 255 255
      END
    END
    UNITS PIXELS #sets the units for the feature object
  END
-----
Thank you,
Ted S
MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS
INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
Linux/Fedora7
-- 
View this message in context: http://n2.nabble.com/Repeating-annotation-using-LABEL-NO-CLIP-1-with-Open-Layers-tp4464229p4464229.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
    
    
More information about the MapServer-users
mailing list