How can I create a 3D shapefile containing line features or point features? I have to extract the elevations from a DEM and then export a shapefile containing 3D features. I'm currently working with QGIS 2.8.4

1 Answer 1


you can do it in different ways to create a 3D shape files (which have the 3D geometry, vertex coordinates of X, Y, Z): with DTM (DEM):

  1. to processing v.drape (GRASS GIS);
  2. using the plugin shp2D3 (https://plugins.qgis.org/plugins/shp2D3-master/)

v.drape Processing

shp2D3 plugin

  • is there any risk of losing the Z coordinate with usual commands/operations (e.g copy/paste 3D features, join CSV file by attribute...)? Commented Jun 21, 2016 at 9:25
  • the two methods described modifying the geometry and not the attributes; you can do all the operations, also joins. NOTE: To copy / paste is only valid on shapefile with 3D geometry.
    – pigreco
    Commented Jun 21, 2016 at 9:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.