How can I add DEM elevations from a raster to my vector layer as a z coordinate or attribute?
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
- Which license do I need if I want to do vector annotation on raster/vector images manipulating and viewing it in my application. Do I need only THBVector?
- How can I add DEM elevations from a raster to my vector layer as a z coordinate or attribute?
- What is the difference between raster & vector graphics?