<html>
  <head>

  </head>
  <body style="line-height: normal; margin-top: 4px; margin-bottom: 1px; margin-left: 4px; margin-right: 4px; font-variant: normal" text="#000000" bgcolor="#FFFFFF">
    <p style="margin-bottom: 0; margin-top: 0">
      <font face="Comic Sans MS" size="3">Brent&#44; </font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font face="Comic Sans MS" size="3">I was thinking about a template approach where you could build a chunk of the mapfile and using an include &#40;this might be a good spot for that URL call BTW&#44; at least to ask the dev list about&#41; to get at the new chunk.</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font face="Comic Sans MS" size="3">Paul&#39;s idea about using a TTF font is much more elegant a solution&#44; but you would either need to make your own font or find one somewhere. &nbsp;That link sent by Norman leads to a TTF font with the symbols in it already.</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font face="Comic Sans MS" size="3">Another option&#44; that I admit might become time consuming&#44; the first time at least&#44; would be to build the symbol pieces separately&#44; and via thresholding/filtering in the MapFile display the correct pieces on top of each other. &nbsp;This would be very similar to displaying a highway symbol on a road. &nbsp;Which typically has three different symbols on top of one another for display &#40;shield border&#44; shield fill&#44; number&#44; etc&#41;.</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font face="Comic Sans MS" size="3">What increments are you trying to display in initially&#44; 5 knot intervals&#44; singles&#44; or &#63;&#63;</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font face="Comic Sans MS" size="3">bobb</font>    </p>
<br>      <br><br><br><br>
    <p style="margin-bottom: 0; margin-top: 0">
      <br>
      <br>
      &gt;&gt;&gt; Brent Fraser &lt;bfraser@geoanalytic.com&gt; wrote:<br>    </p>
    <table border="0" style="font-size: 1em; margin-top: 0; margin-bottom: 0; margin-left: 15px; margin-right: 0" bgcolor="#f3f3f3">
      <tr>
        <td>
          <div style="border-left: solid 1px #050505; padding-left: 7px">
            <p style="margin-bottom: 0; margin-top: 0">
              Bob&#44;<br><br>&#160;&#32;Maybe.&#160;&#32;I had considered some kind of programmed CGI-based URL function to create the wind barb &#40;hence the interest in UCAR&#39;s NCL&#41;&#44; but I don&#39;t think mapserver has the capability to use a URL as a symbol reference &#40;would be a nice enhancement&#41;.<br><br>&#160;&#160;&#32;I don&#39;t know how to procedurally add components within a map file using CLASS&#44; STYLE&#44; and SYMBOL.&#160;&#32;Could be done with MapScript I suppose....<br><br>            </p>
            <pre class="moz-signature" cols="72"><p style="margin-top: 0; margin-bottom: 0; white-space: pre" class="moz-signature" cols="72">
Best Regards&#44;</p>
          <p style="margin-bottom: 0; margin-top: 0; white-space: pre">
Brent Fraser</p>
</pre>
        <p style="margin-bottom: 0; margin-top: 0">
          <br>
          On 9/27/2011 11:54 AM&#44; Bob Basques wrote:        </p>
        <blockquote type="cite" cite="mid:4E81C783020000A80002E797@heckle">
          <p style="margin-bottom: 0; margin-top: 0">
            <font face="Comic           Sans MS" size="3">Could the barb class be built up from primitives&#44; stem anddifferent flags on the tail&#44; based on the numbers passed in.&#32;&#160;Basically you would be writing the barb symbol out for each label location needed&#44; instead of sampling from a list of many&#63;&#32;&#160;Just use a max/min thresholding to decide when the symbol has something added to it or not.&#32;&#160;Still a bit laborious to setup&#44; but I think it gets you there.</font>          </p>
          <p style="margin-bottom: 0; margin-top: 0">
            <br>
                      </p>
          <p style="margin-bottom: 0; margin-top: 0">
            <font face="Comic           Sans MS" size="3">bobb</font>          </p>
          <p style="margin-bottom: 0; margin-top: 0">
            <br>
            <br>
            <br>
                      </p>
          <p style="margin-bottom: 0; margin-top: 0">
            <br>
            <br>
            &gt;&gt;&gt; Brent Fraser <a href="mailto:bfraser@geoanalytic.com" class="moz-txt-link-rfc2396E">&lt;bfraser@geoanalytic.com&gt;</a>&nbsp;wrote:<br>          </p>
          <table border="0" style="font-size: 1em; margin-top: 0; margin-bottom: 0; margin-left: 15px; margin-right: 0" bgcolor="#f3f3f3">
            <tr>
              <td>
                <div style="border-left: solid 1px #050505; padding-left: 7px">
                  <p style="margin-bottom: 0; margin-top: 0">
                    &#160;&#160;&#160;&#160;&#32;At FOSS4G I was struck by the number of presentations involving<br>weather data and time series display.&#160;&#32;Maybe I noticed because I have a<br>need to render wind velocity in KML&#44; and while I haven&#39;t settled on<br>mapserver to do the rendering I&#39;ve been wondering how to render wind<br>barb symbols &#40;see attached graphics&#41; efficiently.<br><br>&#160;&#160;&#32;One problem is the source data: the magnitude is in one raster file<br>&#40;GRIB format&#44; float64&#41;&#160;&#32;and the direction in another.&#160;&#32;GDAL&#39;s OGR<br>library will read the GRIB files&#44; but I don&#39;t know of any way to use two<br>rasters to define a vector layer.&#160;&#32;I think there is some work going on<br>with respect to displaying vector field data in mapserver&#44; so maybe this<br>will be solved by that work.&#160;&#32;Otherwise pre-processing the two rasters<br>into a point datasource containing lon&#44;lat&#44;speed&#44;direction attributes<br>may be the way to go.<br><br>&#160;&#160;&#32;The other issue of wind barb symbol rendering may have to be solved<br>by hand constructing a barb for 0 knots&#44; 5 knots&#44; etc &#40;50-ish symbols&#63;&#41;<br>&#44; and having 50-ish corresponding classes &#40;this could be a performance<br>problem for mapserver&#41;.&#160;&#32;But I&#39;m open to better ideas...&#160;&#32;SLD&#63;&#160;&#32;HTTP/CGI<br>request&#63;&#44; something like one class of:<br><br>&#160;&#160;&#32;CLASS<br>&#160;&#160;&#160;&#160;&#32;STYLE<br>&#160;&#160;&#160;&#160;&#160;&#160;&#32;GEOMTRANSFORM &quot;start&quot;<br>&#160;&#160;&#160;&#160;&#160;&#160;&#32;COLOR 0 255 0<br>&#160;&#160;&#160;&#160;&#160;&#160;&#32;SIZE 15.0<br>&#160;&#160;&#160;&#160;&#160;&#160;&#32;SYMBOL <a href="http://localhost/symbolgen?[speed]" class="moz-txt-link-rfc2396E">&quot;http://localhost/symbolgen&#63;&#91;speed&#93;&quot;</a><br>&#160;&#160;&#160;&#160;&#160;&#160;&#32;ANGLE &#91;direction&#93;<br>&#160;&#160;&#160;&#160;&#32;END<br>&#160;&#160;&#32;END<br><br>&#160;&#160;&#32;but likely the cost of getting the symbol would be greater that<br>creating 50 separate class objects.<br><br>And for those interested in mapping and graphing weather data&#44; have a<br>look at <a href="http://www.ncl.ucar.edu/Applications/" moz-do-not-send="true">http://www.ncl.ucar.edu/Applications/</a><br>especially <a href="http://www.ncl.ucar.edu/Applications/barb.shtml" moz-do-not-send="true">http://www.ncl.ucar.edu/Applications/barb.shtml</a><br><br>--<br>Best Regards&#44;<br>Brent Fraser<br><br>
                  </p>
                </div>
              </td>
            </tr>
          </table>
        </blockquote>
      </div>
    </td>
  </tr>
</table>
</body>
</html>