[Mapserver-users] rotating labels
Lowell Filak
lfilak at medinaco.org
Fri Jan 24 11:58:10 PST 2003
Specify LABEL -> TYPE as TRUETYPE & ANGLE AUTO, set LABEL -> FONT to an available truetype font, change LABEL -> SIZE to a numeric as opposed to a named size, and make sure MS is compiled with truetype 1.x along with GD being compiled with truetype 1.x.
The following message was sent by Jon Shorie <jshorie at medinaco.org> on Fri, 24 Jan 2003 14:26:32 -0500.
> 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
More information about the MapServer-users
mailing list