Import terrain into QGIS that is in AutoCAD 3d faces ( dxf format).

60 views
Skip to first unread message

BenW

unread,
Jul 17, 2024, 4:19:25 AM7/17/24
to QGIS Australia User Group
Hello All,

I'm using QGIS 3.32.2 - Lima. I don't have a great deal of experience with QGIS which should be obvious by the following question.

I have a file containing a triangular ground surface in AutoCAD 3d faces (in dxf format). Which I can successfully import by drag and drop into qgis. When i place my cursor over some triangles  the cursor info pop says "Mesh Group" and opening the properties on the layer tells me the Geometry is - Polygon (Polygon Z).  I notice when I move my cursor over the surface the "value tool" does not show any heights. But when enquire on a triangle the correct z value is shown on one of the triangle vertex. So I'm happy the dxf imported correctly. 
My problem is I cannot work out how to convert this to a QGIS terrain either in mesh or raster format? So I can then export out to other formats.
My end goal is to just export a DEM in geotif (.tif) format.  So far i have spent 7 hours going down dead end after dead end on what I thought would be a 10 minute job!!

If anyone could help that would be much appreciated.

Regards
Ben



box...@iinet.net.au

unread,
Jul 17, 2024, 4:29:27 AM7/17/24
to australian-qg...@googlegroups.com

Hi Ben,

 

Try importing the dxf file using “Another DXF importer” plug-in. This will give you more options and should bring in the file into correct location in xyz. Once in to QGIS you should be able to save as a geotiff or ers grid file.

 

Cheers Grant

--
You received this message because you are subscribed to the Google Groups "QGIS Australia User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to australian-qgis-use...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/australian-qgis-user-group/5fe2bd7d-57f7-41f5-b588-cc8fcdaeaeb8n%40googlegroups.com.

BenW

unread,
Jul 22, 2024, 5:39:39 PM7/22/24
to QGIS Australia User Group
Hi Grant 
Thanks very much for your reply. I had also tried “another dxf importer” unfortunately without success. 
As mentioned the dxf imports. But when I inquire on the 3d face vertices they are only x,y with an attribute showing what the z value should be. Not x,y,z
I’m currently trying to work out how to copy the attribute value to the z value. Unfortunately no success at this stage.
If you or anyone else has any other suggestions that would be great.
When I get back to my computer I will cut out a section of the dxf to reduce the file size and post, so hopefully someone could have a look and tell me what I’m doing wrong.

Thanks again 

box...@iinet.net.au

unread,
Jul 22, 2024, 6:22:45 PM7/22/24
to australian-qg...@googlegroups.com

Hi Ben,

 

Have you tried using the “Vector Geometry” > “Set Z Value” from the Processing Toolbox?

Reply all
Reply to author
Forward
0 new messages