[mapserver-users] Label Annotation and repeatdistance
Andrea Peri
aperi2007 at gmail.com
Mon Sep 24 05:42:20 PDT 2012
>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?
Thx,
2012/9/24 Stephen Woodbridge <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 <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 <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 àèìòù
-----------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120924/09e404a9/attachment.htm>
More information about the MapServer-users
mailing list