Hello Martijn,

I am able to help you on this one.

There is no need to set a transparent line. It is a matter of defining style based upon an attribute.
First you need a definition for a class item:

CLASSITEM 'DRIVING_DIRECTION'

Then you set up classes for the directions:

CLASS
       NAME 'FROM_LEFT'
     _expression_ 'FROM_LEFT'
     MINSCALE 0
     MAXSCALE 100000
       STYLE
         SYMBOL 0
         SIZE 6
         OFFSET -3 0
         WIDTH 3
         COLOR 249 201 139
       END
    END

CLASS
       NAME 'FROM_RIGHT'
     _expression_ 'FROM_RIGHT'
     MINSCALE 0
     MAXSCALE 100000
       STYLE
         SYMBOL 0
         SIZE 6
         OFFSET 3 0
         WIDTH 3
         COLOR 249 201 139
       END
    END

CLASS
       NAME 'SINGLELANE'
     _expression_ 'SINGLELANE'
     MINSCALE 0
     MAXSCALE 100000
       STYLE
         SYMBOL 0
         SIZE 6
         #OFFSET 3 0 #NO OFFSET
         WIDTH 3
         COLOR 249 201 139
       END
    END




Martijn van der Pauw schreef:
If I have right understood, you suggest to add the lines as an attribute/arrowsymbol to a single (transparent) line that represents the highway. I will try to find out how to do something like that. Thank you for your suggestion. It sounds as a possible solution.
 
Martijn


Van: Bob Basques  
 Onderwerp: Re: [mapserver-users] lane presentation of highways

I can't think of a way of doing this, because you physically need to spread the two lines apart for the longer scale views if you want to see both.  I have a couple of ideas about how to label a wide sigle line though that would show both direction if they are attached as attributes.

It might be possible to draw the lines, and then draw the layer again, drawing only with the Symbols on top (no lines), and then offset the arrow symbol locations,  Actually I think that would work.  I have something similar in a address range labeling layer.  It would take a bit of trial and error to do though.

You could still get into trouble though at longer range views, just because there won't physically be enough room to apply the labels.

bobb


Martijn
 
The data is set up with two seperate lines, one for each direction. On the higher zoom levels you can already see the seperate lanes. But, unfortunately, when zoomed out they overlay each other of course.
 
Martijn


Van: Bob Basques [mailto:[EMAIL PROTECTED]]


Is the data for the lines set up as single line layers, or are there two separate lines, one for each direction?

bobb


Martijn wrote:
 
Hello, 
 
I'd like to know how I can plot the 2 seperate directions of a highway (I have the data in the database) in a way that they can be distinguished from each other at all zoomlevels. When you zoomed in a lot, you can always see the different driving directions (lanes), but when you zoom out they overlay each other. Important is that each lane is colored depending the road condition. So, the standard way of plotting a highway doesn't meet our needs. The colors of the 2 seperate driving directions can/will differ.
 
 Regards,
Waver

 


--

This e-mail is from Meteo Consult B.V., a MeteoGroup company. For more information, see www.weer.nl

This e-mail may contain confidential information. Only the addressee is permitted to read, copy, distribute or otherwise use this e-mail or any attachments. If you have received it in error, please contact the sender immediately. Any opinion expressed in this e-mail is personal to the sender and may not reflect the opinion of MeteoGroup.

Any e-mail reply to this address may be subject to interception or monitoring for operational reasons or for lawful business practices.


_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users

_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users

_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users



_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to