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 <[email protected]> wrote: > 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 > result of the conversion from here: > http://www.agt.bme.hu/siki/tokaj.dxf > http://www.agt.bme.hu/siki/tokaj.csv > > > I used the following command: > gawk -f 3dface2csv.awk tokaj.dxf > tokaj.csv > > Load the csv file into QGIS as Delimited text layer, don't forget to > > change the delimiter character to semicolon and the wkt column. > > Best regards, > Zoltan > >> >> On Mon, 16 Dec 2013, Matt Boyd wrote: >> >> 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 <[email protected]> >>> wrote: >>> >>> 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 much appreciation. >>>> Matt >>>> >>>> >>>> On Fri, Dec 13, 2013 at 6:57 AM, Siki Zoltan <[email protected]> wrote: >>>> >>>> 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 with >>>>> WKT >>>>> column. >>>>> >>>>> Regards, >>>>> Zoltan >>>>> >>>>> >>>>> On Wed, 11 Dec 2013, 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 DXF driver >>>>>> Otway_Basin_Faults-shallow.dxf not loaded 3D faces >>>>>> Otway_Basin_Granites-magnetics.dxf not loaded 3D faces >>>>>> Otway_Basin_Granites-gravity.dxf not loaded 3D faces >>>>>> >>>>>> You should find another way to import 3D faces from a dxf file. >>>>>> >>>>>> Regards, >>>>>> Zoltan >>>>>> >>>>>> On Wed, 11 Dec 2013, Matt Boyd wrote: >>>>>> >>>>>> 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 <[email protected]> >>>>>>> wrote: >>>>>>> >>>>>>> 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, because you can set more options. >>>>>>>> >>>>>>>> I cannot find any DXf file in the zip file you specify. >>>>>>>> >>>>>>>> Best regards, >>>>>>>> Zoltan >>>>>>>> >>>>>>>> >>>>>>>> On Tue, 10 Dec 2013, Matt Boyd wrote: >>>>>>>> >>>>>>>> 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 able to open the dxf files, or it does but all I see is >>>>>>>>> an >>>>>>>>> icon >>>>>>>>> called "entities" with no attributes. Ideally I'd be able to load >>>>>>>>> these as >>>>>>>>> rasters and make a few maps. >>>>>>>>> >>>>>>>>> Any ideas? >>>>>>>>> >>>>>>>>> thanks >>>>>>>>> matt >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>> >>>> >>
_______________________________________________ Qgis-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-user
