When importing a DXF file (containing 3D contour data) to QGIS, none of the various methods described elsewhere are retaining elevation data as an attribute.

e.g. DXF2SHP, GRASS v.in.dxf, opening natively as a vector file in QGIS etc. DXF2XYZ is not applicable as the file does not contain point data.

The DXF file contains polylines with elevation data only. All line objects are imported successfuly and there are no errors. Are there any other utilities?

1 Answer 1


If you import the dxf file using v.in.dxf you can get the elevations, as it's explained in the answer to this question, Importing 3D DXF file into QGIS with z information as attribute value?. One thing you need to keep in mind is the use of the v.in.dxf tool from the processing toolbox depending of the version you're using, see this question, v.in.dxf not working properly in GRASS toolbox in QGIS 2.18.11

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.