<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-15">
<META content="MSHTML 6.00.2800.1505" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Comic Sans MS">
<DIV>All,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I've (we've) been messing with this GRID object and Labeling while trying to get a USNG grid output with labels</DIV>
<DIV>&nbsp;</DIV>
<DIV>The results are meant to look like the left edge of the attached image.&nbsp; The other three sides are being repositioned by some semi-known process.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Essentially the labels should be:</DIV>
<DIV>&nbsp;</DIV>
<DIV>First two characters are super-scripted, the next two characters are Normal, and the last four are also super-scripted.&nbsp;&nbsp; We've mussed with MapServer code and come up with a method for handling the different styling via a layer in the MAPFILE, using&nbsp; a LABELFORMAT option of NG1(1st 2 chars), NG2 (2nd 2 chars) and NG3 (the last 4 chars).&nbsp; This is set up along the lines of the DDMMSS options for LAT/LON.</DIV>
<DIV>&nbsp;</DIV>
<DIV>You can see that there is something wonky about the justification of the labels.&nbsp; Right now we have space padding in front of and behind the superscripted items, we'll address that separately once we get past this label justification thing.</DIV>
<DIV>&nbsp;</DIV>
<DIV>So the question is, what is the sequence of events for a GRID with labels, being applied to the result?&nbsp; Where in the Code could/should the justifications be eliminated for&nbsp;the GRID writing process (I understand that there needs to be a process for aligning along the edges) so that the regular Labeling parameters, specifically, the OFFSET param, are adhered to.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I've tried all sorts of different combinations of settings to get the right output, and I can only seem to get one edge to display properly.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Furthering this output option a little more, anyone done any work with labeling along the outside of a map image?&nbsp; I could use an option like this for printing for example.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks</DIV>
<DIV>&nbsp;</DIV>
<DIV>bobb</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>The image results are from using this MapFile:</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Monospac821 BT">MAP<BR>&nbsp; NAME 'USNG'<BR>&nbsp; SIZE 800 650<BR>&nbsp; STATUS ON<BR>&nbsp; ##IMAGECOLOR 254 254 254<BR>&nbsp; ##EXTENT 540000 135000 600000 175000<BR>&nbsp; EXTENT 593133.398829 170094.734526 593893.148973 170712.010326<BR>&nbsp; UNITS FEET</FONT></DIV>
<DIV><FONT face="Monospac821 BT"></FONT>&nbsp;</DIV>
<DIV><FONT face="Monospac821 BT">&nbsp; FONTSET ./0000_00/MN_Line_Experiments/fonts/font.list<BR>&nbsp; SYMBOLSET ./0000_00/MN_Line_Experiments/symbols/symbol.list</FONT></DIV>
<DIV><FONT face="Monospac821 BT"></FONT>&nbsp;</DIV>
<DIV><FONT face="Monospac821 BT">&nbsp; TRANSPARENT TRUE<BR>&nbsp; IMAGETYPE PNG</FONT></DIV>
<DIV><FONT face="Monospac821 BT"></FONT>&nbsp;</DIV>
<DIV><FONT face="Monospac821 BT">&nbsp; WEB<BR>&nbsp;&nbsp;&nbsp; IMAGEPATH "/mnt/VECTOR00/output/"<BR>&nbsp;&nbsp;&nbsp; IMAGEURL "/tmp/"<BR>&nbsp; END</FONT></DIV>
<DIV><FONT face="Monospac821 BT"></FONT>&nbsp;</DIV>
<DIV><FONT face="Monospac821 BT"># EPSG:26915</FONT></DIV>
<DIV><FONT face="Monospac821 BT"></FONT>&nbsp;</DIV>
<DIV><FONT face="Monospac821 BT">&nbsp; LAYER<BR>&nbsp;&nbsp;&nbsp; NAME "grid"<BR>&nbsp;&nbsp;&nbsp; TYPE LINE<BR>&nbsp;&nbsp;&nbsp; STATUS DEFAULT<BR>&nbsp;&nbsp;&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME "Graticule"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 0 0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL 'circle'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 1<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; PROJECTION<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "init=epsg:26915"<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; GRID<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LABELFORMAT "NG1"<BR>&nbsp;&nbsp;&nbsp; END&nbsp; <BR>&nbsp; END<BR>&nbsp; <BR>&nbsp; LAYER<BR>&nbsp;&nbsp;&nbsp; NAME "ng1"<BR>&nbsp;&nbsp;&nbsp; TYPE LINE<BR>&nbsp;&nbsp;&nbsp; STATUS DEFAULT<BR>&nbsp;&nbsp;&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LABEL<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR&nbsp; 0 0 0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FONT mono<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE truetype<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 6<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 255 255 254&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FORCE true<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POSITION cl<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #OFFSET 0 0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END <BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; PROJECTION<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "init=epsg:26915"<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; GRID<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LABELFORMAT "NG1"<BR>&nbsp;&nbsp;&nbsp; END&nbsp; <BR>&nbsp; END<BR>&nbsp; <BR>&nbsp; LAYER<BR>&nbsp;&nbsp;&nbsp; NAME "ng2"<BR>&nbsp;&nbsp;&nbsp; TYPE LINE<BR>&nbsp;&nbsp;&nbsp; STATUS DEFAULT<BR>&nbsp;&nbsp;&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LABEL<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR&nbsp; 0 0 0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FONT mono<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE truetype<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 12<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 255 255 254&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FORCE true<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POSITION cl<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END <BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; PROJECTION<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "init=epsg:26915"<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; GRID<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LABELFORMAT "NG2"<BR>&nbsp;&nbsp;&nbsp; END&nbsp; <BR>&nbsp; END<BR>&nbsp; <BR>&nbsp; LAYER<BR>&nbsp;&nbsp;&nbsp; NAME "ng3"<BR>&nbsp;&nbsp;&nbsp; TYPE LINE<BR>&nbsp;&nbsp;&nbsp; STATUS DEFAULT<BR>&nbsp;&nbsp;&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LABEL<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR&nbsp; 0 0 0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FONT mono<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE truetype<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 6<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 255 255 254&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FORCE true<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #OFFSET 0 0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POSITION cl<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END <BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; PROJECTION<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "init=epsg:26915"<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; GRID<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LABELFORMAT "NG3"<BR>&nbsp;&nbsp;&nbsp; END&nbsp; <BR>&nbsp; END<BR>&nbsp; <BR>&nbsp; <BR>END ## end Map</FONT></DIV></BODY></HTML>