Daniel,<br><br>Not sure if that fully satisfy with your requirements but I&#39;ve already done a similar task with the following steps:<br><br>1. Create a point data source (with attributes) from your points for example by using <a href="http://www.gdal.org/ogr/drv_vrt.html">ogr_vrt</a>, something like:<br>
<br>&lt;OGRVRTDataSource&gt;<br>    &lt;OGRVRTLayer name=&quot;mypoints&quot;&gt;<br>        &lt;SrcDataSource&gt;ponts.csv&lt;/SrcDataSource&gt; <br>    &lt;GeometryType&gt;wkbPoint25D&lt;/GeometryType&gt; <br>    &lt;GeometryField encoding=&quot;PointFromColumns&quot; useSpatialSubquery=&quot;TRUE&quot; x=&quot;lon83&quot; y=&quot;lat83&quot; z=&quot;attribute&quot;/&gt; <br>
    &lt;/OGRVRTLayer&gt;<br>&lt;/OGRVRTDataSource&gt;<br><br>2. Use <a href="http://www.gdal.org/gdal_grid.html">gdal_grid </a>to create an interpolated grayscale image from the point data dource.<br><br>3. To colorize the raster create (or compute) a LUT for each color band by containing the following information:<br>
<br>&lt;LUT&gt;[src value 1]:[dest value 1],[src value 2]:[dest value 2],...&lt;/LUT&gt;<br><br>A template of this vrt should look like this:<br><br>&lt;VRTDataset rasterXSize=&quot;{RASTERXSIZE}&quot; rasterYSize=&quot;{RASTERYSIZE}&quot;&gt;<br>
  &lt;VRTRasterBand dataType=&quot;Byte&quot; band=&quot;1&quot;&gt;<br>    &lt;ColorInterp&gt;Red&lt;/ColorInterp&gt;<br>    &lt;ComplexSource&gt;<br>      &lt;LUT&gt;{LUT_RED}&lt;/LUT&gt;<br>      &lt;SourceFilename&gt;{SOURCEFILE}&lt;/SourceFilename&gt;<br>
      &lt;SourceBand&gt;1&lt;/SourceBand&gt;<br>      &lt;SrcRect xOff=&quot;{SRCXOFFSET}&quot; yOff=&quot;{SRCYOFFSET}&quot; xSize=&quot;{SRCXSIZE}&quot; ySize=&quot;{SRCYSIZE}&quot;/&gt;<br>      &lt;DstRect xOff=&quot;0&quot; yOff=&quot;0&quot; xSize=&quot;{RASTERXSIZE}&quot; ySize=&quot;{RASTERYSIZE}&quot;/&gt;<br>
    &lt;/ComplexSource&gt;<br>  &lt;/VRTRasterBand&gt;<br>  &lt;VRTRasterBand dataType=&quot;Byte&quot; band=&quot;2&quot;&gt;<br>    &lt;ColorInterp&gt;Green&lt;/ColorInterp&gt;<br>    &lt;ComplexSource&gt;<br>      &lt;LUT&gt;{LUT_GREEN}&lt;/LUT&gt;<br>
      &lt;SourceFilename&gt;{SOURCEFILE}&lt;/SourceFilename&gt;<br>      &lt;SourceBand&gt;1&lt;/SourceBand&gt;<br>      &lt;SrcRect xOff=&quot;{SRCXOFFSET}&quot; yOff=&quot;{SRCYOFFSET}&quot; xSize=&quot;{SRCXSIZE}&quot; ySize=&quot;{SRCYSIZE}&quot;/&gt;<br>
      &lt;DstRect xOff=&quot;0&quot; yOff=&quot;0&quot; xSize=&quot;{RASTERXSIZE}&quot; ySize=&quot;{RASTERYSIZE}&quot;/&gt;<br>    &lt;/ComplexSource&gt;<br>  &lt;/VRTRasterBand&gt;<br>  &lt;VRTRasterBand dataType=&quot;Byte&quot; band=&quot;3&quot;&gt;<br>
    &lt;ColorInterp&gt;Blue&lt;/ColorInterp&gt;<br>    &lt;ComplexSource&gt;<br>      &lt;LUT&gt;{LUT_BLUE}&lt;/LUT&gt;<br>      &lt;SourceFilename&gt;{SOURCEFILE}&lt;/SourceFilename&gt;<br>      &lt;SourceBand&gt;1&lt;/SourceBand&gt;<br>
      &lt;SrcRect xOff=&quot;{SRCXOFFSET}&quot; yOff=&quot;{SRCYOFFSET}&quot; xSize=&quot;{SRCXSIZE}&quot; ySize=&quot;{SRCYSIZE}&quot;/&gt;<br>      &lt;DstRect xOff=&quot;0&quot; yOff=&quot;0&quot; xSize=&quot;{RASTERXSIZE}&quot; ySize=&quot;{RASTERYSIZE}&quot;/&gt;<br>
    &lt;/ComplexSource&gt;<br>  &lt;/VRTRasterBand&gt;<br>  &lt;VRTRasterBand dataType=&quot;Byte&quot; band=&quot;3&quot;&gt;<br>    &lt;ColorInterp&gt;Alpha&lt;/ColorInterp&gt;<br>    &lt;ComplexSource&gt;<br>      &lt;LUT&gt;{LUT_ALPHA}&lt;/LUT&gt;<br>
      &lt;SourceFilename&gt;{SOURCEFILE}&lt;/SourceFilename&gt;<br>      &lt;SourceBand&gt;1&lt;/SourceBand&gt;<br>      &lt;SrcRect xOff=&quot;{SRCXOFFSET}&quot; yOff=&quot;{SRCYOFFSET}&quot; xSize=&quot;{SRCXSIZE}&quot; ySize=&quot;{SRCYSIZE}&quot;/&gt;<br>
      &lt;DstRect xOff=&quot;0&quot; yOff=&quot;0&quot; xSize=&quot;{RASTERXSIZE}&quot; ySize=&quot;{RASTERYSIZE}&quot;/&gt;<br>     &lt;/ComplexSource&gt;<br>  &lt;/VRTRasterBand&gt;<br>&lt;/VRTDataset&gt;<br> <br>4. Use the <a href="http://www.gdal.org/gdal_vrttut.html">gdal vrt</a> driver (and <a href="http://www.gdal.org/gdal_translate.html">gdal_translate</a>) to create the final image (see an example attached). <br>
<br><br>Best regards,<br><br>Tamas<br><br><br><br><div class="gmail_quote">2011/2/23 Daniel Cole <span dir="ltr">&lt;<a href="mailto:daniel@southernsolutionsms.com">daniel@southernsolutionsms.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>I am a new mapserver user and have spent countless hours over the last month reading, trying code, etc. before posting here for help.  I am trying to generate an image (non-interactive) on a webpage based off of attribute data in a points file.  For example, 20 different points equally distributed in a field contain data about the moister level of the soil.  I want to make the lowest levels blue and the highest levels yellow, or something like that with some gradients in between.  If possible I want it to have interpolated data between them to show the gradual change, but that isn&#39;t a must.   I also want to wrap it in a polygon that trims the edges.  </div>

<div><br></div><div>I found some python code that I thought might do the trick , but it seems lots of heat maps are based off of how many points exist in a certain area, and thats now what I am doing.  </div><div><br></div>

<div>My points contain numbers in the attributes, 5, 25, 92, 71, etc.   I feel like I am missing some easy way to do this right in front of me with gdal or something.  If someone has any direction or even demo code that would be greatly appreciated.  </div>

<div><br></div><div>Thanks,<br><font color="#888888"><br>Daniel</font></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" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br></blockquote></div><br>