Turning points into polygons (or voronois) is the "thinking like a GIS professional" approach. This is valid, but not as good as it can get. Basically, using imaging techniques would be a better approach.<br><br>

Perhaps you can take this: <a href="http://www.sethoscope.net/heatmap/">http://www.sethoscope.net/heatmap/</a> as a starting point? The author has created a nice python script to generate a heatmap.<br><br><div class="gmail_quote">

2011/2/23 Josh Jordan <span dir="ltr"><<a href="mailto:outerspaceman81@yahoo.com">outerspaceman81@yahoo.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top">First, you have to turn your points into shapes, theres some algorithm that will turn points into polygons with borders midway between each point. Â Then, you have to add classes to the mapfile. Â Add one class per color. Â You have to calculate the bounds and color for each class like this:<div>

<br><div><div>CLASS</div><div>   Â EXPRESSION(([POPULATION] gt 90457) AND ([POPULATION] le 108397))</div><div>   Â STYLE</div><div>   Â  Â COLOR 10 20 50</div><div>   Â END</div><div>END</div><div><br></div><div>If your CSV data isnt joined to the mapserver data, you have to calculate what shapes are in each bucket like this-</div>

<div><br></div><div><div>CLASS</div><div>   Â EXPRESSION(([NAME] = "Shape1") OR ([NAME] = "Shape2"))</div><div>  
 Â STYLE</div><div>   Â  Â COLOR 10 20 50</div><div>   Â END</div><div>END</div></div><br>--- On <b>Tue, 2/22/11, Daniel Cole <i><<a href="mailto:daniel@southernsolutionsms.com" target="_blank">daniel@southernsolutionsms.com</a>></i></b> wrote:<br>

<blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Daniel Cole <<a href="mailto:daniel@southernsolutionsms.com" target="_blank">daniel@southernsolutionsms.com</a>><br>

Subject: [mapserver-users] Heatmap / choropleth from points attributes<br>To: <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>Date: Tuesday, February 22, 2011, 10:06 PM<br>

<br><div><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'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><br>Daniel</div>
</div><br>-----Inline Attachment Follows-----<br><br><div>_______________________________________________<br>mapserver-users mailing list<br><a href="http://mc/compose?to=mapserver-users@lists.osgeo.org" target="_blank">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></div></blockquote></div></div></td></tr></tbody></table><br>

      <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><div style="margin: 0pt;" name="sig_3ae25cf131"></div><br>