Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I add DEM elevations from a raster to my vector layer as a z coordinate or attribute?

0
0 Posted

How can I add DEM elevations from a raster to my vector layer as a z coordinate or attribute?

0
0

If you have a vector layer with vertices that have only x and y coordinates, you are able to extract the elevations from a raster DEM for each vertex using the SETELEV command in the Algorithm Librarian. SETELEV will overlay the vector layer on top of the raster DEM and assign a z coordinate to each vertex using bilinear interpolation for the georeferenced coordinates. The new elevation value will overwrite any previous z coordinate, or if none were present, it will add a new one. Similar commands: VIMAGE or VSAMPLE can be used to extract pixel values and add these values to the attributes. You can extract elevations from a DEM, but these values do not become the z coordinate, they will be added to a new column in the vectors attribute table. The VIMAGE command can be used on point or polygon vector layers and the VSAMPLE can be used with point or line vector layers.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123