[Mapserver-users] rotating labels

Martin, Daniel DMartin at erac.com
Fri Jan 24 15:04:24 EST 2003


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_000_01C2C3E3.CA6846E0
Content-Type: text/plain

The first thing you must do is enable Truetype Fonts.  This might require a
recompile or different binary depending on what binary you are using.

Then you must create a fontset.  Read here:
http://mapserver.gis.umn.edu/doc36/fontset.html
If you are on Windows, you can use the fontset.txt I've attached with the
fonts from C:\WINNT\Fonts to save you some time.  It took entirely too long
to write it the first time, and I hate the idea that other people are having
to do it too.

After that, it's a simple matter of adding this to your LABEL object:
      ANGLE auto
      TYPE TRUETYPE
      FONT arial

-Dan Martin

-----Original Message-----
From: Jon Shorie [mailto:jshorie at medinaco.org]
Sent: Friday, January 24, 2003 1:27 PM
To: mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] rotating labels


I have a project where I am trying to get the roadnames to follow the road
(in 
other words be rotated in the same direction as the road).  Is such a thing 
possible.  Here is the relevant section of my .map file

LAYER
  NAME medcocel
  TYPE LINE
  STATUS DEFAULT
  DATA medcocel
  GROUP roads
  CLASS
    NAME "Medina County Centerlines"
    TEMPLATE "medcocel.html"
    COLOR 208 159 145
  END

  HEADER "medcocel_header.html"
  FOOTER "medcocel_footer.html"

  TOLERANCE 5

  DUMP TRUE # allow GML export

  METADATA
    WMS_TITLE "Centerlines"
    WMS_ABSTRACT "Medina County Centerlines"
    WMS_SRS "EPSG:26915"
  END
END # medcocel

LAYER
  NAME medcocel_anno
  GROUP roads
  MAXSCALE 300000
  STATUS DEFAULT
  DATA medcocel
  TYPE ANNOTATION
  LABELITEM "ROADNAME"
  CLASS
    COLOR 255 255 255
    LABEL
      POSITION cc
      WRAP " "
      SIZE MEDIUM
      COLOR 0 0 0
    END
  END

  METADATA
    WMS_TITLE "County Roads"
    WMS_ABSTRACT "County roads. (shields only)  Derived from MNDOT roads 
layer, see http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html for more 
information."
    WMS_SRS "EPSG:26915"
  END
END # county road annotation


_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users


------_=_NextPart_000_01C2C3E3.CA6846E0
Content-Type: text/plain;
	name="fontset.txt"
Content-Disposition: attachment;
	filename="fontset.txt"

3o_f_9_barcode 									3of9barcode1.ttf
arial 													arial.ttf
arial_black											ariblk.ttf
arial_black-italic							arbli___.ttf
arial-bold											arialbd.ttf
arial-bold-italic								arialbi.ttf
arial-italic										ariali.ttf
arial_narrow										arialn.ttf
arial_narrow-bold								arialnb.ttf
arial_narrow-bold-italic				arialnbi.ttf
arial_narrow-italic							arialni.ttf
arial_unicode_MS								arialuni.ttf
batang													batang.ttf
book_antiqua										bkant.ttf
book_antiqua-bold								antquab.ttf
book_antiqua-bold-italic				antquabi.ttf
book_antiqua-italic							antquai.ttf
bookman_old_style								bookos.ttf
bookman_old_style-bold 					bookosb.ttf
bookman_old_style-bold-italic		bookosbi.ttf
bookman_old_style-italic				bookosi.ttf
century_gothic									gothic.ttf
century_gothic-bold							gothicb.ttf
century_gothic-bold-italic			gothicbi.ttf
century_gothic-italic						gothici.ttf
century_schoolbook							schlbk.ttf
century_schoolbook-bold					schlbkb.ttf
century_schoolbook-bold-italic	schlbkbi.ttf
century_schoolbook-italic				schlbki.ttf
comic_sans											comic.ttf
comic_sans-bold									comicbd.ttf
courier													cour.ttf
courier-bold										courbd.ttf
courier-bold-italic							courbi.ttf
courier-italic									couri.ttf
garamond												gara.ttf
garamond-bold										garabd.ttf
garamond-italic									garait.ttf
georgia													georgia.ttf
georgia-bold										georgiab.ttf
georgia-bold-italic							georgiaz.ttf
georgia-italic									georgiai.ttf
hatten													hatten.ttf
impact													impact.ttf
letter_gothic										lc______.ttf
letter_gothic-bold							lcb_____.ttf
letter_gothic-bold-italic				lcbi____.ttf
letter_gothic-italic						lci_____.ttf
lucida_console									lucon.ttf
lucida_sans_unicode							l_10646.ttf
ms_sans_serif										micross.ttf
monotype_corsova								mtcorsva.ttf
ms_outlook											outlook.ttf
palatino_linotype								pala.ttf
palatino_linotype-bold					palab.ttf
palatino_linotype-bold-italic		palabi.ttf
palatino_linotype-italic				palai.ttf
r_ansi													r_ansi.ttf
r_apl														r_apl.ttf
r_thai													r_thai.ttf
r_thai-bold											r_thaibd.ttf
r_thai-bold-italic							r_thaibi.ttf
r_thai-italic										r_thaii.ttf
sybol														symbol.ttf
tahoma													tahoma.ttf
tahoma-bold											tahomabd.ttf
times_new_roman									times.ttf
times_new_roman-bold						timesbd.ttf
times_new_roman-bold-italic			timesbi.ttf
times_new_roman-italic					timesi.ttf
times_new_roman_MT-extrabold		timnreb.ttf
trebuchet												trebuc.ttf
trebuchet-bold									trebucbd.ttf
trebuchet-bold-italic						trebucbi.ttf
trebuchet-italic								trebucit.ttf
verdana													verdana.ttf
verdana-bold										verdanab.ttf
verdana-bold-italic							verdanaz.ttf
verdana-italic									verdanai.ttf
webdings												webdings.ttf
webdings1												wingding.ttf
webdings2												wingdng2.ttf
webdings3												wingdng3.ttf

------_=_NextPart_000_01C2C3E3.CA6846E0--



More information about the mapserver-users mailing list