[mapserver-users] Label Annotation and repeatdistance
Stephen Woodbridge
woodbri at swoodbridge.com
Mon Sep 24 08:31:46 PDT 2012
On 9/24/2012 8:42 AM, Andrea Peri wrote:
> >REPEATDISTANCE only works with lines. What is does is to create
> multiple label points
> >along the line. This does not make sense for ANNOTATION layers for two
> reasons:
>
> ok,
> thx for explain.
> I misunderstand the mean of "repeat".
>
> >2. annotation is deprecated in 6.2 and will be going away in the future
>
> This is really interesting to know.
> There is a better choice to write a text on a map?
You can do everything you need to with a POINT layer. There have been a
large number of enhancements to labeling in 6.2
http://mapserver.org/development/rfc/ms-rfc-77.html
http://mapserver.org/development/rfc/ms-rfc-81.html (while this RFC does
not reflect that it was voted on, I believe it was and is part of 6.2 also)
-Steve W
> Thx,
>
>
> 2012/9/24 Stephen Woodbridge <woodbri at swoodbridge.com
> <mailto:woodbri at swoodbridge.com>>
>
> REPEATDISTANCE only works with lines. What is does is to create
> multiple label points along the line. This does not make sense for
> ANNOTATION layers for two reasons:
>
> 1. annotation is a point, you can not repeat along a point
> 2. annotation is deprecated in 6.2 and will be going away in the future
>
> You might try creating a line feature and label that with
> repeatdistance. Or create a grid of points that you can use to
> position you disclaimer labels with.
>
> -Steve W
>
>
> On 9/24/2012 5:17 AM, Andrea Peri wrote:
>
> Hi,
>
> I notice the repeatdistance don't work on a label of a type
> annotation
> layer.
>
> I read the doc.
> Seem the repeatdistance work only with a line layer.
> But I guess it could work also with the annotation.
> When the goal is the put many disclaimers on a map.
>
> Is this an enhancement feature or a bug of the actual repeatdistance
> command. ?
>
> This is my mapfile:
>
> LAYER
> NAME "rt_ofc.10k10.disclaimer"
> STATUS OFF
> TYPE ANNOTATION
> TRANSFORM LL
> FEATURE
> POINTS
> 80 -20
> END
> TEXT 'Disclaimer Map...'
> END
> METADATA
> "wms_title" "...."
> "wms_abstract" "..."
> "wms_layer_group" "..."
> END
> CLASS
> LABEL
> TYPE TRUETYPE
> FORCE true
> COLOR "#FFFFFF60"
> ANTIALIAS false
> PRIORITY 10
> SIZE 10
> ANGLE 0
> FONT "LiberationSans-Regular"
> POSITION UR
> REPEATDISTANCE 100 <--- seem don't work
> END
> END
> END
>
>
> --
> -----------------
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -----------------
>
>
>
> _________________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.__org
> <mailto:mapserver-users at lists.osgeo.org>
> http://lists.osgeo.org/__mailman/listinfo/mapserver-__users
> <http://lists.osgeo.org/mailman/listinfo/mapserver-users>
>
>
> _________________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.__org
> <mailto:mapserver-users at lists.osgeo.org>
> http://lists.osgeo.org/__mailman/listinfo/mapserver-__users
> <http://lists.osgeo.org/mailman/listinfo/mapserver-users>
>
>
>
>
> --
> -----------------
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -----------------
>
More information about the MapServer-users
mailing list