[mapserver-users] Line labeling

Paul Ramsey pramsey at refractions.net
Wed Nov 7 08:17:12 PST 2001


It is not a pleasant solution, but it works very well. I processed my
road network so roads were not broken by intersection, and roads of a
certain name were made up of as few segments as possible. So rather than
having 12 "Main St" segments, broken at cross streets, I just had one.
This made the labelling much more aesthetically pleasing, since I would
only ever get one instance of a particular name on the map at any time.
Sorting the dataset by road length then should also give you a "by
importance" order as well, sort of.

Alexander Pucher wrote:
> 
> Hi,
> 
> in one of our mapserver-applications, we tried to label line objects of
> a city map - no problem. We use a truetype font, autorotate and a
> minFeatureSize. The problem is, that the line segments of main streets
> between 2 side streets are often too short, so the main street is not
> labeled at all. Small side streets, which are longer than minFeatureSize
> get labeled!
> 
> Any idea, how we get the streets labeled in a correct way, let's say by
> importance??
> 
> mfg
> ALEX
> 
> --
> ________________________________________________________
> 
> Institut fuer Geographie und Regionalforschung
> Universität Wien
> Kartografie und Geoinformation
> 
> Departement of Geography and Regional Research
> University of Vienna
> Cartographie and GIS
> 
> Universitaetstr. 7, A-1010 Wien, AUSTRIA
> 
> Tel: (+43 1) 4277 48644
> Fax: (+43 1) 4277 48649
> E-mail: pucher at atlas.gis.univie.ac.at
> 
> FTP: ftp://ftp.gis.univie.ac.at
> WWW: http://www.gis.univie.ac.at/karto
> ________________________________________________________
> 
> "He that will not apply new remedies must expect new evils; for time is the greatest innovator"--Francis Bacon
> 
> 

-- 
      __
     /
     | Paul Ramsey
     | Refractions Research
     | Email: pramsey at refractions.net
     | Phone: (250) 885-0632
     \_



More information about the MapServer-users mailing list