<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p>Multi-part geometries can complicate things. The best way is to
use Vector/Geometry tools/Multipart to Single part. You can also
try the zonal statistics module found in the processing toolbox.</p>
<p>Nicolas <br>
</p>
<div class="moz-cite-prefix">On 2021-02-25 8:43 a.m., Giacomo
Uguccioni wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAJG-yDQn01aGL1WarYz9LdGNx0G3X2yam_CR=G1YaD6tHWSmGg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">A warm greeting to all,
<div>I ask you for help.</div>
<div>I have to fill a column of a shapefile (which I believe is
a multi-part geometry but I have to verify) with the Z
(elevation) information.</div>
<div>I would like to ask for the elevation from an online DEM
resource, relying on the coordinates of the feature, but for
now I am happy to be able to query a dem that I load in the
same qgis project.</div>
<div>The raster_value function does not work with multi-part
geometries (it returns NULL), while the sampling raster values
algorithms create a new layer, fact that must not happen for
other reasons related to the sharing format of the qgis
project.</div>
<div>Can you give me some suggestions or some solutions? thank
you so much<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div style="text-align:right"><b
style="font-family:"arial
narrow",sans-serif">Giacomo Uguccioni</b></div>
<div style="text-align:right"><b
style="font-family:"arial
narrow",sans-serif">Geospatial Data Acquisition
& Processing</b></div>
<div style="text-align:right"><span
style="font-family:"arial
narrow",sans-serif">+39 3920431219</span><br>
</div>
<div style="text-align:left">
<div
style="color:rgb(34,34,34);font-size:13.33px;font-family:arial"><font
face="arial"><font size="1">Le informazioni
contenute nella presente comunicazione sono</font></font><font
size="1"> riservate esclusivamente ai destinatari
indicati in epigrafe. La diffusione del documento
trasmesso da parte di qualsiasi soggetto diverso dal
mittente e dal destinatario è proibita, sia ai sensi
dell’art. 616 c.p., sia ai sensi del D.Lgs. n.
196/2003 e regolamento UE n. 2016/679. </font><span
style="font-size:x-small">Se avete ricevuto questo
messaggio per errore, vi preghiamo di distruggerlo
e di darcene immediata comunicazione anche inviando
un messaggio di ritorno </span>all’indirizzo<span
style="font-size:x-small"> e-mail del mittente. </span></div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
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="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Nicolas Cadieux
<a class="moz-txt-link-freetext" href="https://gitlab.com/njacadieux">https://gitlab.com/njacadieux</a></pre>
</body>
</html>