<div>Hi Piere,</div><div>Thanks for yesterday, right now am trying to summarize the temperature values within a particular buffer just like you did in the tutorial using the codes below but it seems troublesome.</div><div>
could you help me please. I dont have to create tables one after the other like you did in the tutorial becuase I dont have that priveledge , so I have to only write a select statement to do that.</div><div>Here is my code:</div>
<div><br></div><div>SELECT I.temp_lst_id, meantemp</div><div>From (Select  sum(ST_Area(the_geom)*val)/(sum(ST_Area(the_geom))) AS meantemp, I.temp_lst_id</div><div>From (Select(ST_Intersection(R.rast,(ST_Transform(ST_Buffer(I.the_geom, 100), 32613)))).geom AS the_geom,</div>
<div>     (ST_Intersection(R.rast,(ST_Transform(ST_Buffer(I.the_geom, 100), 32613)))).val AS val</div><div>  FROM in_situ_lst I, lst_utm_day R</div><div>  WHERE the_geom && R.rast </div><div>  AND ST_Intersects(R.rast,the_geom)</div>
<div>  AND I.temp_lst_id = 2</div><div>)) foo;</div><div><br></div><div>the Error in this code is  "ERROR:  subquery in FROM must have an alias</div><div>LINE 3: From (Select(ST_Intersection(R.rast,(ST_Transform(ST_Buffer(..."</div>
<div>                    ^</div><div>Regards.</div>-- <br><font face="Calibri, sans-serif" size="2"><div style="color:rgb(0, 0, 0)"><font face="Arial, sans-serif" size="2">Iyke Maduako<br><br></font><font style="color:rgb(0, 0, 0)" face="Calibri, sans-serif" size="2"><font face="Arial, sans-serif">Masters in Geospatial Technologies</font></font><br>
</div><span style="color:rgb(0, 0, 0)">
</span><div style="color:rgb(0, 0, 0)"><font face="Arial, sans-serif" size="2">Institute for Geoinformatics,</font><font face="Calibri, sans-serif" size="2"><font face="Arial, sans-serif" size="2">IfGI <br></font></font></div>
<span style="color:rgb(0, 0, 0)">
</span><div style="color:rgb(0, 0, 0)"><font face="Arial, sans-serif" size="2">University of Muenster Germany<br></font></div><span style="color:rgb(0, 0, 0)">
</span><div style="color:rgb(0, 0, 0)"><font face="Arial, sans-serif" size="2">Phone: +4915129048460<br></font></div><font face="Arial, sans-serif"><span style="color:rgb(0, 0, 0)">Alternative <a style="color:rgb(0, 0, 0)" href="mailto:Email%3Aiykefirstclass@yahoo.com" target="_blank">Email:iykefirstclass@yahoo.com</a></span><br style="color:rgb(0, 0, 0)">
</font><div style="color:rgb(0, 0, 0)"><font face="Arial, sans-serif" size="2"> </font></div></font><br>