[mapserver-users] labeling streets

Raivo Alla snaperski at gmail.com
Tue Jun 9 02:48:07 EDT 2009


Hi,

I added red box to visualize line vertices
(style
  geomtransform "start"
  symbol "box"
  color 255 0 0
  size 6
 end) and the result is displayed here:

http://picasaweb.google.com/snaperski/Ort#5345215158256974066


Best wishes,
Raivo

On Tue, Jun 9, 2009 at 9:18 AM, Thomas
Bonfort<thomas.bonfort at camptocamp.com> wrote:
> Raivo,
>
> are you sure that your streets only contain one feature?
> If you are using 5.4+, you can check by appending a geomtransform
> style to your street layer, to draw a symbol at the beginning of each
> feature:
>
> style
>  geomtransform "start"
>  symbol "circle"
>  color 255 0 0
>  size 15
> end
>
> regards,
>
> thomas
>
> www.camptocamp.com
> +33 4 79 26 57 97
>
>
>
> On Tue, Jun 9, 2009 at 07:50, Raivo Alla<snaperski at gmail.com> wrote:
>> Thank You,
>>
>> so it should be, but somehow in my case it does not work properly.
>> When i have no declaration of MINFEATURESIZE, then the picture looks fine:
>> http://picasaweb.google.com/snaperski/Ort#5345194219497220482
>> But when I add MINFEATURESIZE AUTO, most labels just disappear, even
>> if they have enough space to fit in:
>> http://picasaweb.google.com/snaperski/Ort#5345195269825705586
>>
>> And those labeled straight streets contain only one feature (line
>> feature) each - so the label should fit in decently.
>>
>> Label is declared this way:
>>                LABEL
>>                        TYPE truetype
>>                        ANTIALIAS true
>>                        FONT "arial"
>>                        COLOR 240 240 240
>>                        OUTLINECOLOR 52 52 52
>>                        SIZE 9
>>                        force false
>>                        MINDISTANCE 250
>>                        MINFEATURESIZE auto
>>                        ANGLE follow
>>                        POSITION cc
>>                        BUFFER 1
>>                END
>>
>> Changing FORCE or POSITION parameters didnt help either....
>>
>>
>> Raivo
>>
>> On Mon, Jun 8, 2009 at 12:55 PM, Christy Nieman<cnieman at dmsolutions.ca> wrote:
>>> Hi,
>>>
>>> You could set MINFEATURESIZE to AUTO and then only the labels that fit on
>>> the lines should be drawn.
>>>
>>> Regards,
>>> Christy
>>>
>>> Raivo Alla wrote:
>>>>
>>>> Hello!
>>>>
>>>> I'm stuck in simple-looking problem, but the solution is just hiding
>>>> somewhere.
>>>>
>>>> The question is: how I can label only those line features, whos label
>>>> does not run over the line like that:
>>>>
>>>> http://picasaweb.google.com/snaperski/Ort#5344831130138846050
>>>>
>>>> As street lengths are very different, I cant solve the problem by
>>>> setting suitable MINFEATURESIZE for
>>>>
>>>> respective MINSCALE,MAXSCALE range.
>>>>
>>>>
>>>> All the best,
>>>> Raivo Alla
>>>> _______________________________________________
>>>> mapserver-users mailing list
>>>> mapserver-users at lists.osgeo.org
>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>>
>>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>


More information about the mapserver-users mailing list