<div dir="ltr">I don't get anything more than<div><br></div><div>gawk -f 3dface2csv tokaj.dxf</div><div>id;layer;wkt</div><div><br><div>there are 3DFACES in that file, wondering if it's a codepage thing?</div></div>
<div><br></div><div>thanks</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Dec 16, 2013 at 6:37 PM, Siki Zoltan <span dir="ltr"><<a href="mailto:siki@agt.bme.hu" target="_blank">siki@agt.bme.hu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">Dear Matt,<br>
<br>
are there any 3DFACE entities in you dxf file?<br>
You can check it opening the dxf file with a text editor program.<br>
This gawk script works only with 3DFACEs, if no such entity in the input, you get the header only.<br></div>
You can download a smaple dxf file (a smaller one then yours) and the result of the conversion from here:<br>
<a href="http://www.agt.bme.hu/siki/tokaj.dxf" target="_blank">http://www.agt.bme.hu/siki/<u></u>tokaj.dxf</a><br>
<a href="http://www.agt.bme.hu/siki/tokaj.csv" target="_blank">http://www.agt.bme.hu/siki/<u></u>tokaj.csv</a><div class="im"><br>
<br>
I used the following command:<br>
gawk -f 3dface2csv.awk tokaj.dxf > tokaj.csv<br>
<br></div>
Load the csv file into QGIS as Delimited text layer, don't forget to<div class="HOEnZb"><div class="h5"><br>
change the delimiter character to semicolon and the wkt column.<br>
<br>
Best regards,<br>
Zoltan<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
On Mon, 16 Dec 2013, Matt Boyd wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Zoltan,<br>
the script looks fine to me however, all I get in the output is<br>
<br>
id;layer;wkt<br>
<br>
any thoughts on what I'm not seeing?<br>
Thanks<br>
<br>
<br>
On Mon, Dec 16, 2013 at 10:19 AM, Matt Boyd <<a href="mailto:mattslists@gmail.com" target="_blank">mattslists@gmail.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Wow,<br>
thanks Zoltan, I just saw this email this morning and this is exactly what<br>
I was thinking I'd have to do myself.<br>
I did manage to get SAGA to load the dxf, however I'd only made it as far<br>
as being able to apply a value to each polygon, not each node.<br>
<br>
I'll get onto this now.<br>
<br>
Many thanks and much appreciation.<br>
Matt<br>
<br>
<br>
On Fri, Dec 13, 2013 at 6:57 AM, Siki Zoltan <<a href="mailto:siki@agt.bme.hu" target="_blank">siki@agt.bme.hu</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear Matt,<br>
<br>
I've written an awk script to convert 3DFACE-s form dxf to a delimited<br>
text file. Please find attached.<br>
If you use Linux, start it in the shell like:<br>
gawk -f 3dface2csv.awk Otway_Basin_Granites-gravity.<u></u>dxf > result.csv<br>
<br>
You can load the result.csv into QGIS az a delimited text layer with WKT<br>
column.<br>
<br>
Regards,<br>
Zoltan<br>
<br>
<br>
On Wed, 11 Dec 2013, Siki Zoltan wrote:<br>
<br>
 Dear Matt,<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I've tested your dxf files in QGIS 2.0<br>
Otway_Basin_curves.dxf loaded successfully (2D polylines)<br>
Otway_Basin_Faults-basin.dxf not loaded, 3D faces are not suported by<br>
GDAL DXF driver<br>
Otway_Basin_Faults-shallow.dxf not loaded 3D faces<br>
Otway_Basin_Granites-<u></u>magnetics.dxf not loaded 3D faces<br>
Otway_Basin_Granites-gravity.<u></u>dxf not loaded 3D faces<br>
<br>
You should find another way to import 3D faces from a dxf file.<br>
<br>
Regards,<br>
Zoltan<br>
<br>
On Wed, 11 Dec 2013, Matt Boyd wrote:<br>
<br>
 I'll give ogr2ogr a shot.<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
woops, sorry wrong link I meant this one<br>
<a href="http://er-info.dpi.vic.gov.au/cgi-bin/download.pl?ID=3D_" target="_blank">http://er-info.dpi.vic.gov.au/<u></u>cgi-bin/download.pl?ID=3D_</a><br>
models/t009_OtwayBasin_3D_dxf.<u></u>zip<br>
<br>
<br>
<br>
On Tue, Dec 10, 2013 at 6:02 PM, Siki Zoltan <<a href="mailto:siki@agt.bme.hu" target="_blank">siki@agt.bme.hu</a>> wrote:<br>
<br>
 Dear Matt,<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
which version did you try?<br>
What type of entites your dxf file(s) contains? Are them supported by<br>
ogr<br>
DXF driver? Check <a href="http://www.gdal.org/ogr/drv_dxf.html" target="_blank">http://www.gdal.org/ogr/drv_<u></u>dxf.html</a><br>
Try to check entities with ogrinfo.<br>
I had trouble with 1.8 (exspecially on Windows) to load dxf.<br>
I used ogr2ogr instead QGIS, because you can set more options.<br>
<br>
I cannot find any DXf file in the zip file you specify.<br>
<br>
Best regards,<br>
Zoltan<br>
<br>
<br>
On Tue, 10 Dec 2013, Matt Boyd wrote:<br>
<br>
 Hi group,<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm trying to make sense of some DXF files.<br>
these ones in particular<br>
<a href="http://er-info.dpi.vic.gov.au/cgi-bin/download.pl?ID=3D_" target="_blank">http://er-info.dpi.vic.gov.au/<u></u>cgi-bin/download.pl?ID=3D_</a><br>
models/3D_model_attributes.zip<br>
there's also a 3D pdf model here..<br>
<a href="http://er-info.dpi.vic.gov.au/cgi-bin/download.pl?ID=3D_" target="_blank">http://er-info.dpi.vic.gov.au/<u></u>cgi-bin/download.pl?ID=3D_</a><br>
models/t009_OtwayBasin_3D.pdf<br>
<br>
QGIS isn't able to open the dxf files, or it does but all I see is an<br>
icon<br>
called "entities" with no attributes. Ideally I'd be able to load<br>
these as<br>
rasters and make a few maps.<br>
<br>
Any ideas?<br>
<br>
thanks<br>
matt<br>
<br>
<br>
<br>
</blockquote></blockquote>
<br>
</blockquote></blockquote></blockquote>
<br>
</blockquote></blockquote>
<br>
</blockquote>
</div></div></blockquote></div><br></div>