[mapserver-users] Re: annotations in mapserver 5.4

Steve Lime Steve.Lime at dnr.state.mn.us
Mon Aug 31 11:16:30 PDT 2009


If you get rid of the class min/max scales do the problems go away? What if you put those constraints
at the layer level (with only one class that should work). Also, the layer defn is confusing since it doesn't 
hint at a marker yet the images missing labels definitely do have a marker accompanying the text.

Steve

>>> On 8/31/2009 at 5:23 AM, in message
<49dc012b0908310323j7868aed2gea5cf8528a23e0f at mail.gmail.com>, Raivo Alla
<snaperski at gmail.com> wrote:
> This is a bit old problem (still got that bug), but I found that I
> typed the second link not right, the right link to
> the problematic output is that:
> http://picasaweb.google.com/snaperski/Ort#5365984697960162578 
> I assume this is some 5.4 version bug?
> 
> Sincerely,
> Raivo
> 
> On Tue, Aug 4, 2009 at 9:12 AM, Raivo Alla<snaperski at gmail.com> wrote:
>> Hey,
>>
>> I got some weird behavior while trying to display labels with mapserver 5.4.
>> With mapserver 5.0.3 these labels show up nicely:
>> http://picasaweb.google.com/snaperski/Ort#5365984694609689634 
>> But with mapserver 5.4, these layers are shown at scale about
>> 350000-200000, but they will disappear at higher scales, so nothing
>> can be seen:
>> http://picasaweb.google.com/snaperski/Ort#5365984694609689634 
>> This could'nt be collision conflict either as they have enough space to fit 
> in.
>> Is something changed in the way mapserver treats annotations elements?
>>
>> Data source is a polygon shapefile: I hope that (polygon type) is not
>> the problem?
>> The layer itself in the mapfile:
>>
>>        LAYER
>>                NAME alevikAnno_1
>>                GROUP HYBRID
>>                METADATA
>>                        "wms_title" "alevikAnno"
>>                        "wms_srs" "EPSG:3301"
>>                        "wms_extent" "355000 6360000 754000 6660000"
>>                END
>>                STATUS default
>>                TYPE annotation
>>                DATA "kohanimed/alevikud_1"
>>                LABELITEM "TEXTSTRING"
>>                CLASS
>>                MAXSCALE 1333333
>>                MINSCALE 200000
>>                        LABEL
>>                                TYPE truetype
>>                                ANTIALIAS true
>>                                FONT "arial"
>>                                COLOR 255 255 255
>>                                SIZE 9
>>                                priority 6
>>                                force false
>>                                ANGLE auto
>>                                OUTLINECOLOR 25 25 25
>>                                POSITION cr
>>                                BUFFER 1
>>                        END
>>                END
>>        END
>>
>>
>>
>> Raivo Alla
>> Estonian Land Board
>>
> _______________________________________________
> 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