[mapserver-users] label placement problem

Raivo Alla snaperski at gmail.com
Thu Apr 14 11:02:08 EDT 2011


Hey,

is it possible that the reason why this feature is not implemented in
Mapserver is cause it demands too much computation resource and Mapserver
assumes that those kind of issues will be dealt before... modifying data
structure maybe?
Deleting all the duplicate address points for each building complex and
leaving only one (I do not prefer that)?

Cause for me it seems quite a common problem one should face in case he
needs to display building numbers.
Since there could be many buildings closely together at the crossings of the
streets, I seek some way to display them decently -
ie. showing label ("2") for buildings that are located at the street "Mündi"
and other label "2" for buildings at the street "Saiakangi"
so that Mapserver does not "see" the labels being identical.


Still full of hope,
Raivo

On Wed, Apr 13, 2011 at 1:33 PM, Raivo Alla <snaperski at gmail.com> wrote:

> Thank You !
>
> The situation is illustrated here:
> https://picasaweb.google.com/105062450878416453583/Ort#5595010970050628162
> I got three different streets that have same label "2", and I would like to
> display the labels so that for the same street address points
> I could use declaration like MINDISTANCE 40, but if the same label "2"
> appears on the address point that belongs to other street, then
> it will not use MINDISTANCE and should display that label.
>
> I have shapefile, whre one attribute "REFERENCEPOINT" holds the same
> numerical value for the same address points (ie those
> points which have label "2" on the screenshot and belong to the same street
> have same "REFERENCEPOINT" value). Can I
> somehow use it to render them differently?
>
> I hope I expressed myself correctly :)
>
>
> With regards,
> Raivo
>
>
> On Tue, Apr 12, 2011 at 1:18 AM, Lime, Steve D (DNR) <
> steve.lime at state.mn.us> wrote:
>
>> Can you share some pictures that illustrate the issue?
>>
>>
>>
>> *From:* mapserver-users-bounces at lists.osgeo.org [mailto:
>> mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Raivo Alla
>> *Sent:* Wednesday, April 06, 2011 6:34 AM
>> *To:* mapserver-users at lists.osgeo.org
>> *Subject:* [mapserver-users] label placement problem
>>
>>
>>
>> Hello!
>>
>> I am using MapServer 5.4 and right now I'm facing with label positioning
>> problem.
>> Any help solving that would really be appreciated.
>>
>> 1. I have lots of buildings address points... so for example if two nearby
>> located buildings at the crossing of "Some_street" and "Some_other_street"
>> have both same house numbers (for example "1") then the MINDISTANCE 30
>> declaration will cancel one label out.
>> 2. I cannot remove MINDISTANCE neither since in many cases I have large
>> building complexes where multiple buildings share same address label.
>> And I want mapfile to declare some distance between those addresses that
>> logically will mark the same address object.
>> 3. In my buildings_addresses (points) file I do have attribute, which I
>> could use to separate those two kinds of duplicate labels,
>> but MapServer doent seem to support rendering them differently in a such
>> way.... Or am I wrong?
>>
>>
>> My LABEL definition:
>>             LABEL
>>                 TYPE truetype
>>                 ANTIALIAS true
>>                 FONT "arial"
>>                 COLOR 50 50 50
>>                 SIZE 9
>>                 priority 1
>>                 ANGLE [POORDENURK]
>>                 MINDISTANCE 30
>>                 OUTLINECOLOR 220 220 220
>>                 POSITION cc
>>                 BUFFER 2
>>             END
>>
>>
>> Hope that there will be some kind of solution here.
>>
>>
>> Sincerely,
>> Raivo Alla
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110414/9ed8057a/attachment.html


More information about the mapserver-users mailing list