[mapserver-users] Rendering bridges

Lime, Steve D (DNR) Steve.Lime at state.mn.us
Wed Feb 3 13:23:21 EST 2010


Good idea. The width of the bridge would have to  be larger than the road so it sticks out a bit at well...

From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Christy Nieman
Sent: Wednesday, February 03, 2010 12:13 PM
To: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Rendering bridges

Hi,

If you draw it in two layers, one with the colour and width you want for the bridges, and the other with the road line to go on top, you will essentially cover up the end caps.  The bridges layer would have to come first in the mapfile, followed by the road line layer.

Christy
--
Christy Nieman
GIS Technician
DM Solutions Group, Inc.
Email: cnieman at dmsolutions.ca<mailto:cnieman at dmsolutions.ca>
Web: http://dmsolutions.ca
Web: http://research.dmsolutions.ca

On 02/03/2010 12:52 PM, Lime, Steve D (DNR) wrote:

I don't believe this will get you the desired effect. You'll get the lines but you'll also get the line end caps. That's the real trick, turning those off. I'm not sure that you can.



Steve



-----Original Message-----

From: Fawcett, David (MPCA)

Sent: Wednesday, February 03, 2010 10:13 AM

To: Lime, Steve D (DNR); tommasodb; mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>

Subject: RE: [mapserver-users] Rendering bridges



The feature that he is referencing is just a line segment with an additional attribute of 'bridge=yes'.



    * bridge: yes

    * highway: trunk

    * layer: 1

    * name: Manchester Road

    * ref: A56



If you just wanted to use the road data and not create an additional bridges data set, you would likely need to split up the road features so that the segment that is a bridge is an individual feature.



I haven't worked with any shapefile extracts from OSM, so the data may already be like this.



Assuming that you have a line shapefile that has a column called 'bridge', you could set up two classes in your roads layer.  The first one would have an expression like ('[bridge] = 'yes') and the second class wouldn't have an expression so it would catch the rest of the lines.



In the first class, you would stack two lines, the bottom one being the color of your bridge and wider than the roads line that will go on top of it.



David.



-----Original Message-----

From: mapserver-users-bounces at lists.osgeo.org<mailto:mapserver-users-bounces at lists.osgeo.org> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lime, Steve D (DNR)

Sent: Wednesday, February 03, 2010 9:50 AM

To: tommasodb; mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>

Subject: RE: [mapserver-users] Rendering bridges



What feature type are bridges represented with in OpenStreetMap?



-----Original Message-----

From: mapserver-users-bounces at lists.osgeo.org<mailto:mapserver-users-bounces at lists.osgeo.org> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of tommasodb

Sent: Wednesday, February 03, 2010 6:08 AM

To: mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>

Subject: [mapserver-users] Rendering bridges



Hallo list,



how can I render road bridges, like in mapnik?

(Example:

http://www.openstreetmap.org/?lat=53.398022&lon=-2.352222&zoom=18&layers=null)

Which symbol can I use?



Greets,

Tom

_______________________________________________

mapserver-users mailing list

mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>

http://lists.osgeo.org/mailman/listinfo/mapserver-users

_______________________________________________

mapserver-users mailing list

mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>

http://lists.osgeo.org/mailman/listinfo/mapserver-users

_______________________________________________

mapserver-users mailing list

mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>

http://lists.osgeo.org/mailman/listinfo/mapserver-users



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100203/b4b6984f/attachment.html


More information about the mapserver-users mailing list