It worked! Thanks!
I thought POSTLABELCACHE was only for scalebar since documentations says
"For use with embedded scalebars only."
You have saved me a lot of headaches.
Regards,
Paco
On 07/06/10 20:43, thomas bonfort wrote:
POSTLABELCACHE at the layer level is the keyword you are looking for.
regards,
thomas
On Mon, Jun 7, 2010 at 19:52, Rahkonen Jukka<[email protected]> wrote:
Hi,
This is what I have been using:
LAYER
NAME "copyright"
METADATA
"wms_title" "copyright"
END
STATUS DEFAULT
REQUIRES "[aerial_images]" # this text appears always with aerial images
in WMS
TYPE ANNOTATION
TRANSFORM ll #set the image origin to be lower left
FEATURE
POINTS
85 -8 #set the offset from lower left position in pixels
END
TEXT " © 2010 aerial image provider" #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 200 100 50
BACKGROUNDCOLOR 255 255 255
FORCE TRUE
END
END
UNITS PIXELS #sets the units for the feature object
END
LAYER
NAME "copyright2"
METADATA
"wms_title" "copyright2"
END
STATUS DEFAULT
REQUIRES "![aerial_images]" #this layer appears with all WMS layers
except aerials
TYPE ANNOTATION
TRANSFORM lr #set the image origin to be lower right
FEATURE
POINTS
-75 -10 #set the offset
END
TEXT " © 2010 raster map provider" #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 200 100 50
BACKGROUNDCOLOR 255 255 255
FORCE TRUE
END
END
UNITS PIXELS #sets the units for the feature object
END
-Jukka Rahkonen-
________________________________
Lähettäjä: [email protected]
[mailto:[email protected]] Puolesta
[email protected]
Lähetetty: 7. kesäkuuta 2010 20:19
Vastaanottaja: [email protected]
Aihe: [mapserver-users] WMS layers order and copyright
Hi,
How can i force our copyright-logo layer to appear above the other layers
when serving WMS? Our logo/copyright layer is the last one in the mapfile,
and we're using "STATUS DEFAULT" but it seems mapserver ignores order and
draws this layer below the others.
We have no problems when caling mapserser cgi directly with its own
protocol, only when calling it using wms parameters.
Is it a bug?
Thanks,
Paco
_______________________________________________
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