<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi,</p>
<p>Have you tried the "Zonal Statistics plugin"?</p>
<p>After enabling this plugin, you can find it in the raster menu - or maybe it is already there by default.</p>
<p>It calculates count, sum, min, max, mean at the intersection of a polygon layer (e.g. your polygon layer with building footprints) and a given raster layer (your grid based terrain model).</p>
<p>I think it does what you want.</p>
<p>Hope this helps,</p>
<p>Andreas</p>
<p>On 2016-03-10 17:37, Richard McDonnell wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored --><span>Claus,</span><br /> It may not be exactly what you want, but one suggestion would be to derive the centroids from the building polygons (making sure there within the polygon) and then use the point sampling tool to pull the elevations from your DSM. of course that will not guarantee that you get the max height<br /> If you can, it may be best to go back to the DSM source, the raw data used to derive the DSM. If it is, for instance a point cloud dataset, like that from Lidar, you could select all points within your polygons, then extract only the points at the apex (first returns), just a thought. <br /> Regards,<br /><br /> Richard<br /><br />
<div class="moz-cite-prefix">On 10/03/2016 11:52, Claus Backalarz wrote:</div>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div class="WordSection1">
<p class="MsoNormal"><span>Hi, we are novices in the QIS-world so bear with misunderstandings and </span><span class="hps"><span>misconceptions.</span></span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span>We have a raster layer with surface heights called DSM_611_86. Originally it is was a plain text file with a header describing number of rows and columns, geographically lower left corner etc. Data was the surface heights in 6250 rows and 6250 columns. The file was imported without problems with "Add raster layer" in QGIS. It is beautiful showed in QGIS2.14 Essen on Windows 7. So far no problem.</span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span>But we want with (a lot) of polygons representing buildings to select all surface heights inside this polygons. The selected heights should afterward be saved as a reduced raster layer or, even better, as a shape file of points with an attribute for the heights. In other words as a layer of points with one and only one attribute, the surface height.</span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span>We have tried the plug-in "Point Sampling Tools" and some other hints from QGIS home pages, but I seems that select and save heights in the described way is "out of scope".</span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span>Do anybody have a useful way out of this problem ?</span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span>Best regards</span></p>
<p class="MsoNormal"><span>Claus B</span></p>
<p class="MsoNormal"><span> </span></p>
<table class="MsoNormalTable" style="width: 450.0pt; border-collapse: collapse;" border="0" width="600" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="width: 450.0pt; padding: 0cm 0cm 0cm 0cm;" width="600">
<p class="MsoNormal"><span style="font-size: 7.5pt; font-family: 'Times New Roman','serif'; color: #7d7d7d;"> </span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"> </p>
</div>
<p> </p>
<table class="ImprintUniqueIDTable" style="width: 600px; border-collapse: collapse;" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><span style="color: #7d7d7d; font-family: Verdana; font-size: xx-small;">The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.</span></td>
</tr>
</tbody>
</table>
<br /><fieldset class="mimeAttachmentHeader"></fieldset><br />
<pre>_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
</blockquote>
<br />
<div class="moz-signature">-- <br /><strong><u>Richard McDonnell</u></strong><br /><strong><small><small><small>GIS Specialist PgD GIS AssocSCSI</small></small></small></strong><br /><strong><small>OPW FRM Data Management</small></strong><br /><strong><small>52 Stephens Green, Dublin 2.</small></strong><br /><small><small>TEL: 01 6476543</small></small></div>
<div style="font-family: Arial; font-size: 8pt;">OPW - Ag féachaint don am atá le teacht - Ag caomhnú ón am atá thart<br /> OPW - Looking to the future - Caring for the past<br /><a href="http://www.opw.ie/"><img src="/apps/assets/program/resources/blocked.gif" alt="" width="494" height="76" /></a><br /> Email Disclaimer: <a href="http://www.opw.ie/en/disclaimer/">http://www.opw.ie/en/disclaimer/</a></div>
<!-- html ignored --><br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">_______________________________________________<br /> Qgis-user mailing list<br /><a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br /> List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br /> Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></div>
</blockquote>
<p> </p>
<div> </div>
</body></html>