Re: [Qgis-user] 3D dxf files

2013-12-19 Thread gene
Looking at the awk script of Siki Zoltan, I made Python scripts using regular expressions that works : In the dxf file, A 3D face polygon is located between the two delimiters: *3DFace* . * 0* (the spaces before the 0 are important here, because there are also coordinates equal to 0, withou

Re: [Qgis-user] 3D dxf files

2013-12-18 Thread Matt Boyd
Thanks a lot for you help everyone, I'm on a break now but will check all this out in the new year. Regards matt On Wed, Dec 18, 2013 at 10:39 AM, Even Rouault wrote: > Le mercredi 11 décembre 2013 22:59:34, Siki Zoltan a écrit : > > Dear Matt, > > > > I've tested your dxf files in QGIS 2.0 >

Re: [Qgis-user] 3D dxf files

2013-12-17 Thread Even Rouault
Le mercredi 11 décembre 2013 22:59:34, Siki Zoltan a écrit : > Dear Matt, > > I've tested your dxf files in QGIS 2.0 > Otway_Basin_curves.dxf loaded successfully (2D polylines) > Otway_Basin_Faults-basin.dxf not loaded, 3D faces are not suported by GDAL > DXF driver > Otway_Basin_Faults-shallow.dx

Re: [Qgis-user] 3D dxf files

2013-12-16 Thread Siki Zoltan
Dear Matt, which operating system do you use? May be you need dos2unix (d2u) to convert between dos and linux line end markers. Please send me your file to check, or make it downloadable if it is huge. Regards, Zoltan On Tue, 17 Dec 2013, Matt Boyd wrote: I don't get anything more than g

Re: [Qgis-user] 3D dxf files

2013-12-16 Thread Matt Boyd
I don't get anything more than gawk -f 3dface2csv tokaj.dxf id;layer;wkt there are 3DFACES in that file, wondering if it's a codepage thing? thanks On Mon, Dec 16, 2013 at 6:37 PM, Siki Zoltan wrote: > Dear Matt, > > are there any 3DFACE entities in you dxf file? > You can check it opening

Re: [Qgis-user] 3D dxf files

2013-12-15 Thread Siki Zoltan
Dear Matt, are there any 3DFACE entities in you dxf file? You can check it opening the dxf file with a text editor program. This gawk script works only with 3DFACEs, if no such entity in the input, you get the header only. You can download a smaple dxf file (a smaller one then yours) and the re

Re: [Qgis-user] 3D dxf files

2013-12-15 Thread Matt Boyd
Hi Zoltan, the script looks fine to me however, all I get in the output is id;layer;wkt any thoughts on what I'm not seeing? Thanks On Mon, Dec 16, 2013 at 10:19 AM, Matt Boyd wrote: > Wow, > thanks Zoltan, I just saw this email this morning and this is exactly what > I was thinking I'd have

Re: [Qgis-user] 3D dxf files

2013-12-15 Thread Matt Boyd
Wow, thanks Zoltan, I just saw this email this morning and this is exactly what I was thinking I'd have to do myself. I did manage to get SAGA to load the dxf, however I'd only made it as far as being able to apply a value to each polygon, not each node. I'll get onto this now. Many thanks and mu

Re: [Qgis-user] 3D dxf files

2013-12-12 Thread Siki Zoltan
Dear Matt, I've written an awk script to convert 3DFACE-s form dxf to a delimited text file. Please find attached. If you use Linux, start it in the shell like: gawk -f 3dface2csv.awk Otway_Basin_Granites-gravity.dxf > result.csv You can load the result.csv into QGIS az a delimited text layer

Re: [Qgis-user] 3D dxf files

2013-12-11 Thread Matt Boyd
Thanks Zoltan, I'll keep hunting. Regards Matt On Thu, Dec 12, 2013 at 8:59 AM, Siki Zoltan wrote: > Dear Matt, > > I've tested your dxf files in QGIS 2.0 > Otway_Basin_curves.dxf loaded successfully (2D polylines) > Otway_Basin_Faults-basin.dxf not loaded, 3D faces are not suported by GDAL >

Re: [Qgis-user] 3D dxf files

2013-12-11 Thread Siki Zoltan
Dear Matt, I've tested your dxf files in QGIS 2.0 Otway_Basin_curves.dxf loaded successfully (2D polylines) Otway_Basin_Faults-basin.dxf not loaded, 3D faces are not suported by GDAL DXF driver Otway_Basin_Faults-shallow.dxf not loaded 3D faces Otway_Basin_Granites-magnetics.dxf not loaded 3D f

Re: [Qgis-user] 3D dxf files

2013-12-10 Thread Matt Boyd
I'll give ogr2ogr a shot. woops, sorry wrong link I meant this one http://er-info.dpi.vic.gov.au/cgi-bin/download.pl?ID=3D_models/t009_OtwayBasin_3D_dxf.zip On Tue, Dec 10, 2013 at 6:02 PM, Siki Zoltan wrote: > Dear Matt, > > which version did you try? > What type of entites your dxf file(s) c

Re: [Qgis-user] 3D dxf files

2013-12-09 Thread Siki Zoltan
Dear Matt, which version did you try? What type of entites your dxf file(s) contains? Are them supported by ogr DXF driver? Check http://www.gdal.org/ogr/drv_dxf.html Try to check entities with ogrinfo. I had trouble with 1.8 (exspecially on Windows) to load dxf. I used ogr2ogr instead QGIS, be

[Qgis-user] 3D dxf files

2013-12-09 Thread Matt Boyd
Hi group, I'm trying to make sense of some DXF files. these ones in particular http://er-info.dpi.vic.gov.au/cgi-bin/download.pl?ID=3D_models/3D_model_attributes.zip there's also a 3D pdf model here.. http://er-info.dpi.vic.gov.au/cgi-bin/download.pl?ID=3D_models/t009_OtwayBasin_3D.pdf QGIS isn't