<div dir="ltr">There is no such support that I know of in mapserver.<div>Your first use-case could be implemented by extending the grid labelling function to get it's text from a mapserver expression, and extending the expression syntax to include integer division and modulo operators.</div><div>Your second use-case is more involved and would require multiple label blocks along with the aforementioned enhancements.</div><div><br></div><div>Both cases are not trivial and would require funding.</div><div><br></div><div>regards,</div><div>thomas </div></div><div class="gmail_extra"><br><div class="gmail_quote">On 13 October 2015 at 05:59, Matt McClelland <span dir="ltr"><<a href="mailto:matt@wildwalks.com" target="_blank">matt@wildwalks.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div dir="ltr"><div><div style="font-size:12.8px">Hi All</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I am wanting to truncate (simplify) the grid numbering to match the grid reference users would use in the field.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Looking at the top right (of the attached example) I would like</div><div style="font-size:12.8px">236000 to just display as 36 and</div><div style="font-size:12.8px">6263000 to just display as 63</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">In a perfect world I would love it to display like this</div><div style="font-size:12.8px">a subscript (little) 2 followed by standard 36 =  <font size="1">2</font>36  and</div><div style="font-size:12.8px">a subscript (little) 62 followed by standard 63 =  <font size="1">62</font>63<br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Any suggestions ??</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks :)</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">The attache map I generated using mapserver 7.0</div><div style="font-size:12.8px">The Grid map file is<br></div><div style="font-size:12.8px"><div>LAYER</div><div>  GROUP "default"</div><div>  NAME "grid"</div><div>  METADATA</div><div>    "DESCRIPTION" "Grid"</div><div>  END</div><div>  TYPE LINE</div><div>  STATUS ON</div><div>  CLASS</div><div>    NAME "Graticule"</div><div>    COLOR 100 100 100</div><div>    LABEL</div><div>      COLOR  255 0 0</div><div>      FONT sc</div><div>      TYPE truetype</div><div>      SIZE 8</div><div>      POSITION AUTO</div><div>      PARTIALS FALSE</div><div>      FORCE TRUE</div><div>      BUFFER -10</div><div>      OUTLINECOLOR 255 255 255</div><div>    END</div><div>  END</div><div>  PROJECTION</div><div>    "init=epsg:28356"</div><div>  END</div><div>  GRID</div><div>    LABELFORMAT '%.0f'</div><div>    MININTERVAL 1000</div><div>  END</div><div>END # Layer</div><div><br></div><div>Matt :)<img src="cid:ii_1505f5429bc5f977" alt="Inline image 1" width="516" height="334"></div></div></div><a href="http://www.wildwalks.com/office/newsletters/" target="_blank"></a></div></div></div>
</div>
<br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br></blockquote></div><br></div>