[Qgis-user] Raster values in vector attributes - multipart geometries

Nicolas Cadieux njacadieux.gitlab at gmail.com
Thu Feb 25 11:37:10 PST 2021


Hi,

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.

Nicolas

On 2021-02-25 8:43 a.m., Giacomo Uguccioni wrote:
> A warm greeting to all,
> I ask you for help.
> 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.
> 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.
> 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.
> Can you give me some suggestions or some solutions? thank you so much
>
> -- 
> *Giacomo Uguccioni*
> *Geospatial Data Acquisition & Processing*
> +39 3920431219
> Le informazioni contenute nella presente comunicazione sono 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. Se avete ricevuto questo messaggio per errore, vi preghiamo 
> di distruggerlo e di darcene immediata comunicazione anche inviando un 
> messaggio di ritorno all’indirizzoe-mail del mittente.
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

-- 
Nicolas Cadieux
https://gitlab.com/njacadieux

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210225/78f4cace/attachment-0001.html>


More information about the Qgis-user mailing list