Using mapsize in variable substitution

Bob Basques bob.basques at CI.STPAUL.MN.US
Tue Mar 7 19:16:33 EST 2006


Ian,

Hmmm,  I was told you couldn't do this when I asked about the same thing 
a couple of months ago.

I had asked about a way to label arbitrarily just like inserting a SCALE 
in the lower Right corner, but there didn't seem to be a way to do it at 
the time.  I recall putting in a bug I think.

I would be interested in the results if you find a way to do this.

bobb


Ian wrote:
> How do you dynamically place text (eg. a copyright notice) in the bottom
> left corner of the map using the mapsize attributes? For the copyright I am
> using:
>
> LAYER
>   #
>   # COPYRIGHT
>   #
>   NAME copyright
>   STATUS DEFAULT
>   TRANSFORM FALSE
>   TYPE ANNOTATION
>   FEATURE
>     POINTS
>       10 600
>     END
>     TEXT '© 2006 Me'
>   END
>   CLASS
>     LABEL
>       TYPE TRUETYPE
>       FONT tahoma_bold
>       SIZE 8
>       ANTIALIAS TRUE
>       COLOR 255 255 255
>       FORCE TRUE
>     END
>   END
> END # LAYER
>
> So in the FEATURE POINTS section I need something like 10 %mapsize.height%-5
> but haven't found any examples of people doing this. Thank you.
>
>   



More information about the mapserver-users mailing list