[mapserver-users] Rendering of adjacent dashed lines

2016-06-17 Thread Ziegler Stefan
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

Re: [mapserver-users] Rendering of adjacent dashed lines

2016-06-17 Thread thomas bonfort
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

Re: [mapserver-users] Rendering of adjacent dashed lines

2016-06-17 Thread Ziegler Stefan
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 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 aim

Re: [mapserver-users] Rendering of adjacent dashed lines

2016-06-17 Thread thomas bonfort
Jukka, The overlapping case has a technical solution (which is not implemented in mapserver) if you are willing to eventually offset your dash pattern at every line vertice. The adjacent case has no solution I can think of (draw two adjacent concentric circles on a whiteboard and try to dash them i

Re: [mapserver-users] Rendering of adjacent dashed lines

2016-06-17 Thread Ziegler Stefan
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 wrote: > > Hi Stefan, > Unfortunately no. Whe

Re: [mapserver-users] Rendering of adjacent dashed lines

2016-06-17 Thread Rahkonen Jukka (MML)
Hi, The only method that really works is to remove adjacent lines. Your trick seems to be the same as this https://knowledge.autodesk.com/support/autocad-map-3d/troubleshooting/caas/sfdcarticles/sfdcarticles/Using-a-dashed-line-symbol-with-adjacent-polygons-masking.html but they used a wider whi

Re: [mapserver-users] Rendering of adjacent dashed lines

2016-06-17 Thread thomas bonfort
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 wrote: > Hi Thomas > > Would it be possible to fund such a feature? > > Stefan > > Sent from my iPhone > >> On 17 Jun 2

Re: [mapserver-users] Rendering of adjacent dashed lines

2016-06-17 Thread Fawcett, David (MNIT)
separation between the lines. David. -Original Message- From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of thomas bonfort Sent: Friday, June 17, 2016 9:21 AM To: Ziegler Stefan Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Rendering of

Re: [mapserver-users] Rendering of adjacent dashed lines

2016-06-17 Thread thomas bonfort
Can you post a screenshot? On 17 June 2016 at 16:27, Ziegler Stefan 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

Re: [mapserver-users] Rendering of adjacent dashed lines

2016-06-17 Thread Ziegler Stefan
Sure, when I'm back home. Stefan Sent from my iPhone > On 17 Jun 2016, at 16:41, thomas bonfort wrote: > > Can you post a screenshot? > >> On 17 June 2016 at 16:27, Ziegler Stefan wrote: >> Then I wasn't propably clear about the problem. I can get the desired effect >> in QGIS. The line sym

Re: [mapserver-users] Rendering of adjacent dashed lines

2016-06-17 Thread Ziegler Stefan
tefan > -Ursprüngliche Nachricht- > Von: thomas bonfort [mailto:thomas.bonf...@gmail.com] > Gesendet: Freitag, 17. Juni 2016 16:41 > An: Ziegler Stefan > Cc: mapserver-users@lists.osgeo.org > Betreff: Re: [mapserver-users] Rendering of adjacent dashed lines > > Can you

Re: [mapserver-users] Rendering of adjacent dashed lines

2016-06-17 Thread Ziegler Stefan
Hi Jukka Yes. Seems similar to what you can do with QGIS. Regards Stefan > -Ursprüngliche Nachricht- > Von: Rahkonen Jukka (MML) [mailto:jukka.rahko...@maanmittauslaitos.fi] > Gesendet: Freitag, 17. Juni 2016 16:20 > An: Ziegler Stefan; 'mapserver-users@lists.osgeo.org' > Betreff: Re: Re

Re: [mapserver-users] Rendering of adjacent dashed lines

2016-06-19 Thread Richard Greenwood
As others have suggested, you need to "preprocess your data to merge adjacent lines into one". This can be done with topology. PostGIS has topology support. You would have to convert (and maintain) your simple features polygons as a PostGIS topology and then render them as lines (not polygons) in M

Re: [mapserver-users] Rendering of adjacent dashed lines

2016-06-19 Thread Rahkonen Jukka (MML)
Hi, I would like to know why it does not work by painting solid white line underneath and dashed line above it. If the totally overlapping lines were painted one by one, the last line would cover the dashes of the previously rendered line with total white and the result would look like it does

Re: [mapserver-users] Rendering of adjacent dashed lines

2016-06-19 Thread Rahkonen Jukka (MML)
Hi, Trying to guess the answer myself. Generally it may not give good results at all to render features and styles one by one: feature 1 - style 1 feature 1 - style 2 feature 2 - style 1 feature 2 - style 2 The result could look something like the “Unexpected results” in http://www.mapgears.co