<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>
<!--
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Tahoma}
@font-face
        {font-family:Verdana}
@font-face
        {font-family:Consolas}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
p
        {margin-right:0cm;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif"}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New"}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif"}
span.hps
        {}
span.HTMLPreformattedChar
        {font-family:Consolas}
span.EmailStyle22
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
span.BalloonTextChar
        {font-family:"Tahoma","sans-serif"}
.MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.WordSection1
        {}
-->
</style>
</head>
<body lang="DA" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Hi Andreas (and others who have answered our questions), “Zonal Statistics” do not exactly do the job, it also do the next step in our task!
</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">In fact our intentions was to select the surface heights (measured from a flight with laser in a 1,6mx1,6m grid) only inside the buildings polygons
 and then export the roof heights (still in a 1,6mx1,6m grid ) to a another program. In this program the mean heights of all buildings should be calculated and attached to the buildings.</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Now we can use “Zonal Statistics” (and only select the mean-calculation) and then we have the mean height as a new feature value for each building.
 Perfect!</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">We did tried the “Zonal Statistics” earlier but couldn’t comprehend were the calculated values ends (there was a cryptic “Band”-drop down in
 “Zonal Statistics” form). </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">I still don’t understand the “Band”-drop down, but so what, it works.</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Thank you very much.</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<div>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="600" style="width:450.0pt; border-collapse:collapse">
<tbody>
<tr>
<td width="600" style="width:450.0pt; padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" style=""><span lang="EN-US" style="font-size:7.5pt; font-family:"Verdana","sans-serif"; color:black">Venlig hilsen / Best regards<br>
</span><span lang="EN-US" style="font-size:7.0pt; font-family:"Verdana","sans-serif"; color:black">Claus</span><span lang="EN-US" style="font-size:7.5pt; font-family:"Verdana","sans-serif"; color:black"> </span><span lang="EN-US" style="font-size:7.0pt; font-family:"Verdana","sans-serif"; color:black">Backalarz</span><span lang="EN-US" style="font-size:7.5pt; font-family:"Verdana","sans-serif"; color:black">
<br>
</span><span lang="EN-US" style="font-size:7.0pt; font-family:"Verdana","sans-serif"; color:black">Senior specialist</span><span lang="EN-US" style="font-size:7.5pt; font-family:"Arial","sans-serif"; color:black"><br>
DELTA Acoustics</span><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:#1F497D">
</span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:#1F497D">
<hr size="2" width="100%" align="center">
</span></div>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="593" style="width:444.75pt">
<tbody>
<tr style="height:39.0pt">
<td width="536" style="width:402.0pt; padding:0cm 0cm 0cm 0cm; height:39.0pt">
<p class="MsoNormal" style=""><span style="font-size:7.5pt; font-family:"Verdana","sans-serif"; color:black">DELTA| </span><span style="font-size:7.0pt; font-family:"Verdana","sans-serif"; color:black">Venlighedsvej 4</span><span style="font-size:7.5pt; font-family:"Verdana","sans-serif"; color:black"> |
</span><span style="font-size:7.0pt; font-family:"Verdana","sans-serif"; color:black">2970</span><span style="font-size:7.5pt; font-family:"Verdana","sans-serif"; color:black"> </span><span style="font-size:7.0pt; font-family:"Verdana","sans-serif"; color:black">Hørsholm</span><span style="font-size:7.5pt; font-family:"Verdana","sans-serif"; color:black"> |
</span><span style="font-size:7.0pt; font-family:"Verdana","sans-serif"; color:black">Denmark</span><span style="font-size:7.5pt; font-family:"Verdana","sans-serif"; color:black"> |
</span><span style="font-size:7.0pt; font-family:"Verdana","sans-serif"; color:black"><a href="http://madebydelta.com" title=""><span style="color:black">madebydelta.com</span></a></span><span style="color:#1F497D"><br>
</span><span style="font-size:7.0pt; font-family:"Verdana","sans-serif"; color:black"><a href="mailto:cb@delta.dk" title="Click to send email to Claus Backalarz"><span style="color:black">cb@delta.dk</span></a></span><span style="font-size:7.5pt; font-family:"Verdana","sans-serif"; color:black"> |
 tel: </span><span style="font-size:7.0pt; font-family:"Verdana","sans-serif"; color:black">+45 72 19 40 00</span><span style="font-size:7.5pt; font-family:"Verdana","sans-serif"; color:black">
</span><span style="font-size:7.0pt; font-family:"Verdana","sans-serif"; color:black">| direct: +45 72 19 46 00</span><span style="font-size:7.5pt; font-family:"Verdana","sans-serif"; color:black">
</span><span style="font-size:7.0pt; font-family:"Verdana","sans-serif"; color:black">| mobile: +45 24 44 08 78</span><span style="color:#1F497D"></span></p>
</td>
<td style="padding:0cm 0cm 0cm 0cm; height:39.0pt">
<p class="MsoNormal" style=""><span style="color:#1F497D"><img border="0" width="55" height="50" id="_x0000_i1028" src="cid:image001.jpg@01D17B69.A1C85BA0"></span><span style="color:#1F497D"></span></p>
</td>
</tr>
<tr>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" style=""><b><span lang="EN-US" style="font-size:7.5pt; font-family:"Verdana","sans-serif"; color:black">We help ideas meet the real world</span></b><span lang="EN-US" style="color:#1F497D"></span></p>
</td>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" style=""><span lang="EN-US" style="color:#1F497D"> </span></p>
</td>
</tr>
</tbody>
</table>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:7.5pt; color:#7D7D7D">
<hr size="2" width="100%" align="center">
</span></div>
</td>
</tr>
</tbody>
</table>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<div>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt; font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt; font-family:"Tahoma","sans-serif""> Qgis-user [mailto:qgis-user-bounces@lists.osgeo.org]
<b>On Behalf Of </b>Neumann, Andreas<br>
<b>Sent:</b> 10. marts 2016 17:46<br>
<b>To:</b> Richard McDonnell<br>
<b>Cc:</b> qgis-user@lists.osgeo.org<br>
<b>Subject:</b> Re: [Qgis-user] Select heights from a raster layer</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<p><span style="font-size:10.0pt; font-family:"Verdana","sans-serif"">Hi,</span></p>
<p><span style="font-size:10.0pt; font-family:"Verdana","sans-serif"">Have you tried the "Zonal Statistics plugin"?</span></p>
<p><span style="font-size:10.0pt; font-family:"Verdana","sans-serif"">After enabling this plugin, you can find it in the raster menu - or maybe it is already there by default.</span></p>
<p><span style="font-size:10.0pt; font-family:"Verdana","sans-serif"">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).</span></p>
<p><span style="font-size:10.0pt; font-family:"Verdana","sans-serif"">I think it does what you want.</span></p>
<p><span style="font-size:10.0pt; font-family:"Verdana","sans-serif"">Hope this helps,</span></p>
<p><span style="font-size:10.0pt; font-family:"Verdana","sans-serif"">Andreas</span></p>
<p><span style="font-size:10.0pt; font-family:"Verdana","sans-serif"">On 2016-03-10 17:37, Richard McDonnell wrote:</span></p>
<blockquote style="border:none; border-left:solid #1010FF 1.5pt; padding:0cm 0cm 0cm 5.0pt; margin-left:0cm; margin-right:0cm">
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.0pt; font-family:"Verdana","sans-serif"">Claus,<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</span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Verdana","sans-serif"">On 10/03/2016 11:52, Claus Backalarz wrote:</span></p>
</div>
<blockquote style="border:none; border-left:solid #1010FF 1.5pt; padding:0cm 0cm 0cm 5.0pt; margin-left:0cm; margin-right:0cm">
<div>
<p class="MsoNormal" style="">Hi, we are novices in the QIS-world so bear with misunderstandings and
<span class="hps">misconceptions.</span></p>
<p class="MsoNormal" style=""> </p>
<p class="MsoNormal" style="">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.</p>
<p class="MsoNormal" style=""> </p>
<p class="MsoNormal" style="">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.</p>
<p class="MsoNormal" style=""> </p>
<p class="MsoNormal" style="">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".</p>
<p class="MsoNormal" style=""> </p>
<p class="MsoNormal" style="">Do anybody have a useful way out of this problem ?</p>
<p class="MsoNormal" style=""> </p>
<p class="MsoNormal" style="">Best regards</p>
<p class="MsoNormal" style="">Claus B</p>
<p class="MsoNormal" style=""> </p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="600" style="width:450.0pt; border-collapse:collapse">
<tbody>
<tr>
<td width="600" style="width:450.0pt; padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" style=""><span style="font-size:7.5pt; color:#7D7D7D"> </span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style=""> </p>
</div>
<p><span style="font-size:10.0pt; font-family:"Verdana","sans-serif""> </span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="600" style="width:450.0pt; border-collapse:collapse">
<tbody>
<tr>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:7.5pt; font-family:"Verdana","sans-serif"; color:#7D7D7D">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></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Verdana","sans-serif""><br>
<br>
</span></p>
<pre>_______________________________________________</pre>
<pre>Qgis-user mailing list</pre>
<pre><a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a></pre>
<pre>List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
<pre>Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
</blockquote>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Verdana","sans-serif""> </span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Verdana","sans-serif"">--
<br>
<strong><u><span style="font-family:"Verdana","sans-serif"">Richard McDonnell</span></u></strong><br>
</span><strong><span style="font-size:7.5pt; font-family:"Verdana","sans-serif"">GIS Specialist PgD GIS AssocSCSI</span></strong><span style="font-size:10.0pt; font-family:"Verdana","sans-serif""><br>
</span><strong><span style="font-size:7.5pt; font-family:"Verdana","sans-serif"">OPW FRM Data Management</span></strong><span style="font-size:10.0pt; font-family:"Verdana","sans-serif""><br>
</span><strong><span style="font-size:7.5pt; font-family:"Verdana","sans-serif"">52 Stephens Green, Dublin 2.</span></strong><span style="font-size:10.0pt; font-family:"Verdana","sans-serif""><br>
</span><span style="font-size:7.5pt; font-family:"Verdana","sans-serif"">TEL: 01 6476543</span><span style="font-size:10.0pt; font-family:"Verdana","sans-serif""></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.0pt; font-family:"Arial","sans-serif"">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/"><span style="text-decoration:none"><img border="0" width="494" height="76" id="_x0000_i1025" src="/apps/assets/program/resources/blocked.gif"></span></a><br>
Email Disclaimer: <a href="http://www.opw.ie/en/disclaimer/">http://www.opw.ie/en/disclaimer/</a></span></p>
</div>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Verdana","sans-serif""> </span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Courier New"">_______________________________________________<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></span></p>
</div>
</blockquote>
<p><span style="font-size:10.0pt; font-family:"Verdana","sans-serif""> </span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Verdana","sans-serif""> </span></p>
</div>
</div>
<p>
<table class="ImprintUniqueIDTable" border="0" cellspacing="0" cellpadding="0" cols="1" style="width:600px; border-collapse:collapse">
<tbody>
<tr>
<td><font color="#7d7d7d" size="1" face="Verdana">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.</font></td>
</tr>
</tbody>
</table>
</p>
</body>
</html>