<html>
<head>
<style type="text/css">
<!--
body { font-variant: normal; margin-bottom: 1px; line-height: normal; margin-top: 4px; margin-right: 4px; margin-left: 4px }
p { margin-bottom: 0; margin-top: 0 }
-->
</style>
</head>
<body>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Comic Sans MS">All,</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Comic Sans MS">I'm playing around with generating a map collar image by labeling some lines with MapServer.</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Comic Sans MS">I get the labels looking about what I would like them to look like, but the alignment vertically ( and this applies to horizontal alignment as well ) is not playing nice.</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Comic Sans MS">See this link: </font><i><u><a href="http://gis.ci.stpaul.mn.us/datasets/SHP/FED/USGS/USNG/mn_usng_lines_labels_public_2.map?mapext=503179.6728349806%20111379.8994326578%20508281.0020239575%20135621.41573867595&mapsize=70%20600&mode=map&MOOSETIME=1241653121858"><font color="#0000ff" face="Comic Sans MS" size="3">http://gis.ci.stpaul.mn.us/datasets/SHP/FED/USGS/USNG/mn_usng_lines_labels_public_2.map?mapext=503179.6728349806%20111379.8994326578%20508281.0020239575%20135621.41573867595&mapsize=70%20600&mode=map&MOOSETIME=1241653121858</font></a></u></i><font size="3" face="Comic Sans MS"></font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Comic Sans MS">I'm thinking that the labels are moving back and forth horizontally because of the underlying line work, It's not strictly horizontal but curved slightly, and there may or may not be a vertice visible within a view. (Can a vertice be marked somehow?) So I think MapServer is using the longest straight segment within the view to center on for labeling.</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Comic Sans MS">Question, how do I get these to line up vertically (and horizontally)? I know there was some recent justification work going on, but didn't follow it in detail.</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Comic Sans MS">Thanks</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Comic Sans MS">bobb</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Comic Sans MS">Pertinent mapfile chunks:</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> LAYER</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> METADATA </font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> "ows_title" "layer_0"</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> "gml_include_items" </font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> "all"</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> END</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> NAME 'usng'</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> DATA '0000_00/MN_Line_Experiments/MN_USNG_Ramsey_Line_Northing_Beta'</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> STATUS DEFAULT</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> TYPE LINE </font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> LABELITEM 'NORTHING' </font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> CLASS</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> LABEL</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> TYPE TRUETYPE</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> FONT bluehigh</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> SIZE 10</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> COLOR 25 25 25</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> OUTLINECOLOR 255 255 254</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> ANGLE 0</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> OFFSET -15 -1</font> </p>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> FORCE true</font> </p>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> END</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> END</font> </p>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> END</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> LAYER</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> METADATA </font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> "ows_title" "layer_0"</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> "gml_include_items" </font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> "all"</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> END</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> NAME 'usng'</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> DATA '0000_00/MN_Line_Experiments/MN_USNG_Ramsey_Line_Northing_Beta'</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> STATUS DEFAULT</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> TYPE LINE </font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> LABELITEM 'NORTHING' </font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> CLASS</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> LABEL</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> TYPE TRUETYPE</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> FONT bluehigh</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> SIZE 15</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> COLOR 25 25 25</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> OUTLINECOLOR 255 255 254</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> ANGLE 0</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> FORCE true</font> </p>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> END</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> END</font> </p>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> END</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> LAYER</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> METADATA </font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> "ows_title" "layer_0"</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> "gml_include_items" </font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> "all"</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> END</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> NAME 'usng'</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> DATA '0000_00/MN_Line_Experiments/MN_USNG_Ramsey_Line_Northing_Beta'</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> STATUS DEFAULT</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> TYPE LINE </font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> LABELITEM 'NORTHING' </font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> CLASS</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> LABEL</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> TYPE TRUETYPE</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> FONT bluehigh</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> SIZE 10</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> COLOR 25 25 25</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> OUTLINECOLOR 255 255 254</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> ANGLE 0</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> OFFSET 14 -1</font> </p>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> FORCE true</font> </p>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> END</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> END</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> MAXSCALE 5000000</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Courier"> END</font> </p>
<br>
</body>
</html>