[mapserver-users] Rendering of adjacent dashed lines

Ziegler Stefan Stefan.Ziegler at bd.so.ch
Fri Jun 17 07:56:23 PDT 2016


Sure, when I'm back home.

Stefan

Sent from my iPhone

> On 17 Jun 2016, at 16:41, thomas bonfort <thomas.bonfort at gmail.com> wrote:
> 
> Can you post a screenshot?
> 
>> On 17 June 2016 at 16:27, Ziegler Stefan <Stefan.Ziegler at bd.so.ch> wrote:
>> Then I wasn't propably clear about the problem. I can get the desired effect in QGIS. The line symbol is a combination of two line symbols. One is dashed, one is solid.
>> 
>> Regards
>> Stefan
>> 
>> Sent from my iPhone
>> 
>>> On 17 Jun 2016, at 16:20, thomas bonfort <thomas.bonfort at gmail.com> wrote:
>>> 
>>> Hi Stefan,
>>> Unfortunately no. When I said "impossible" I meant it in the general
>>> case, not for MapServer specifically.
>>> Regards,
>>> --
>>> thomas
>>> 
>>>> On 17 June 2016 at 16:17, Ziegler Stefan <Stefan.Ziegler at bd.so.ch> wrote:
>>>> Hi Thomas
>>>> 
>>>> Would it be possible to fund such a feature?
>>>> 
>>>> Stefan
>>>> 
>>>> Sent from my iPhone
>>>> 
>>>>> On 17 Jun 2016, at 16:05, thomas bonfort <thomas.bonfort at gmail.com> wrote:
>>>>> 
>>>>> Stefan,
>>>>> There is no trick/workaround for this aside from preprocessing your
>>>>> data to merge adjacent lines into one. In the general case what you
>>>>> are aiming for is impossible as your adjacent lines will have
>>>>> different lengths but will be using a fixed length dash pattern.
>>>>> 
>>>>> --
>>>>> thomas
>>>>> 
>>>>>> On 17 June 2016 at 12:38, Ziegler Stefan <Stefan.Ziegler at bd.so.ch> wrote:
>>>>>> Hi
>>>>>> 
>>>>>> I'm trying to render some lines with a pattern. This works and looks great as long as the lines are not adjacent. When the lines share a common border the dashed lines may look ugly since one dashed line is rendered on top of the other rendered dashed line. I tried to add a white solid line under the dashed line:
>>>>>> 
>>>>>>  CLASS
>>>>>>    STYLE
>>>>>>      COLOR 255 255 255
>>>>>>      WIDTH 2
>>>>>>      LINECAP BUTT
>>>>>>    END
>>>>>>    STYLE
>>>>>>      COLOR 0 0 0
>>>>>>      WIDTH 2
>>>>>>      LINECAP BUTT
>>>>>>      PATTERN 20 4 2 4 2 4 END
>>>>>>    END
>>>>>>  END
>>>>>> 
>>>>>> 
>>>>>> But the behaviour is still the same. Is there a trick/workaround for this? I'm using MapServer 7.0.1.
>>>>>> 
>>>>>> Best regards
>>>>>> Stefan Ziegler
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> Freundliche Grüsse
>>>>>> Stefan Ziegler
>>>>>> Kantonsgeometer / Leiter Amt für Geoinformation
>>>>>> 
>>>>>> Amt für Geoinformation
>>>>>> Rötistrasse 4
>>>>>> 4500 Solothurn
>>>>>> 
>>>>>> Telefon +41 32 627 75 96
>>>>>> Telefax +41 32 627 75 98
>>>>>> stefan.ziegler at bd.so.ch
>>>>>> http://www.so.ch
>>>>>> 
>>>>>> _______________________________________________
>>>>>> 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