[mapserver-users] roads shields, and street name labels

Lime, Steve D (MNIT) Steve.Lime at state.mn.us
Wed Jul 3 10:40:19 PDT 2013


Version 6.2 allows you to define multiple label blocks for one feature. Combine that with repeating labels and it might be accomplished that way. For example, you define one label that defines a shield and draw it at one interval, and then another text label that uses the road name. If they have different repeat distances then you can probably avoid collisions. Worth a try...

  http://mapserver.org/development/rfc/ms-rfc-77.html

The MINDISTANCE parameter might also be helpful in thinning labels. For example, let's say your repeat distance for the shields is 50 but your min distance is also 50 that should basically remove every other shield. Choose the same repeat distance for the name and in theory every other computed label point should get a shield, and the others names.

Steve

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul)
Sent: Tuesday, June 18, 2013 11:17 AM
To: Mark Volz; mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] roads shields, and street name labels

Mark,

We haven't gone down this road yet ourselves, but I would suggest taking a look at SVG symbols for this type of work.

We're just getting ready to convert our Mapfiles to use the newer versions of MapServer and the SVG symbols are a looking like a good all around solution moving forward.

Bobb



-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz
Sent: Tuesday, June 18, 2013 11:10 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] roads shields, and street name labels

Hello,

I would like to label my roads layer with a highway shield as well as the street name.  What is the best way to accomplish this with MapServer 6.2?  If anyone has an example .map file that would be great.

Thank You

Mark Volz, GISP
GIS Specialist


_______________________________________________
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