[mapserver-users] Rendering of adjacent dashed lines
Fawcett, David (MNIT)
David.Fawcett at state.mn.us
Fri Jun 17 07:28:53 PDT 2016
This is a pretty common case. I run into it a lot when mapping adjacent counties in a US state. As Thomas says, the solution is to process the data so that the shared borders are only represented by one line.
Depending on what you are mapping, you could try using OFFSET to provide some separation between the lines.
David.
-----Original Message-----
From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of thomas bonfort
Sent: Friday, June 17, 2016 9:21 AM
To: Ziegler Stefan
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Rendering of adjacent dashed lines
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
_______________________________________________
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