Hi,

No problem at all, this I have captured sometimes from the mailing list:

LAYER
  NAME "copyright"                      # we should always have one layer "base"
  METADATA
    "wms_title"     "copyright"
  END
  STATUS DEFAULT
  TYPE ANNOTATION
  
  TRANSFORM ll #set the image origin to be lower left
  FEATURE
    POINTS
      70 -10 #set the offset from lower left position in pixels
    END
    TEXT " (c) 2009 Image providers" #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
      FORCE TRUE

    END
  END
  UNITS PIXELS #sets the units for the feature object
END

The layer comes to WMS layer list as any other layer, but it will be always 
burnt to images sent by WMS even it is not selected.

-Jukka Rahkonen-


> -----Alkuperäinen viesti-----
> Lähettäjä: [email protected] 
> [mailto:[email protected]] Puolesta 
> Travis Kirstine
> Lähetetty: 23. lokakuuta 2009 15:44
> Vastaanottaja: paalkr
> Kopio: [email protected]
> Aihe: Re: [mapserver-users] add watermark to wms service
> 
> If I use a layer the end user will have the option to disable it.
> Unless there is a method for forcing layers to be always 
> active that I don't know about.
> 
> Thanks
> 
> 2009/10/23 paalkr <[email protected]>:
> >
> > Hi!
> >
> > What's the reason you don't want to use a layer with a 
> label? Anyway I 
> > think that it's doable by intercepting the WMS request in MapScript 
> > and adding the watermark before delivering the final image 
> back to the client.
> >
> >
> >
> > Travis Kirstine wrote:
> >>
> >> Is there a method for adding a watermark to a wms service 
> (not using 
> >> a layer w/ label).
> >>
> >> --
> >> Travis K.
> >>
> >> Toronto, Canada
> >> ------------------------------------------------------------
> >> "She knows there's no success like failure and that failure's no 
> >> success at all."
> >> -Bob Dylan-
> >> ------------------------------------------------------------
> >> _______________________________________________
> >> mapserver-users mailing list
> >> [email protected]
> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >>
> >>
> >
> >
> > -----
> >
> > Regards,
> > Pål Kristensen
> > --
> > View this message in context: 
> > 
> http://n2.nabble.com/add-watermark-to-wms-service-tp3875987p3878392.ht
> > ml Sent from the Mapserver - User mailing list archive at 
> Nabble.com.
> > _______________________________________________
> > mapserver-users mailing list
> > [email protected]
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
> 
> 
> 
> --
> Travis K.
> 
> Toronto, Canada
> ------------------------------------------------------------
> "She knows there's no success like failure and that failure's 
> no success at all."
> -Bob Dylan-
> ------------------------------------------------------------
> _______________________________________________
> mapserver-users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to