[Mapserver-users] rotating labels

Jon Shorie jshorie at medinaco.org
Fri Jan 24 14:12:51 EST 2003


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




More information about the mapserver-users mailing list