Re: [Qgis-user] 3D dxf files
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 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 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 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 Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Georeferencer to create temp file as .VRT
Il 16/12/2013 00:36, Jukka Rahkonen ha scritto: > The first gdal_translate creates a temporaty file as an uncompressed tiff > file. However, it is unnecessary to write a new physical image file. Instead > it would be usually much faster and thus better to write the temporary > output as GDAL .VRT file. VRT file is a short text file (about 2 kB in size) > that contains a reference to the original image file. Thanks for the hint. In fact, the georeferencer would need some love (several long standing issues have still to be fixed). Any supporter for this job? All the best. -- Paolo Cavallini - www.faunalia.eu QGIS & PostGIS courses: http://www.faunalia.eu/training.html ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] 3D dxf files
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 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 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 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 Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] 3D dxf files
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 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 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 Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] QGIS Cloud problem uploading local data
Hi,I'm trying to upload some local data using the Cloud Plugin (ver 0.11.3), but I'm getting the following error.Does anyone know how to solve this?ThanksJamesTraceback (most recent call last): File "C:\Users\James/.qgis2/python/plugins\qgiscloud\qgiscloudplugindialog.py", line 526, in upload_data success = self.data_upload.upload(self.db_connections.db(db_name), data_sources_items, self.ui.cbReplaceLocalLayers.isChecked()) File "C:\Users\James/.qgis2/python/plugins\qgiscloud\data_upload.py", line 90, in upload errfunc=self._ogrerr) File "C:\Users\James/.qgis2/python/plugins\qgiscloud\pyogr\ogr2ogr.py", line 639, in ogr2ogr pszZField) File "C:\Users\James/.qgis2/python/plugins\qgiscloud\pyogr\ogr2ogr.py", line 105, in __exit__ sys.stdout.flush()IOError: [Errno 9] Bad file descriptor___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Newbie question re installing qgis on linux and qgis - development version
On 16/12/2013, at 03:51 , h wrote: > Hi, > I am running linux - Mageia 3 (intel x86-64) and want to run qgis > version 2.x, and use the OpenLayers plugin. The mageia repo only has > qgis 1.x. > > The Linux install instructions on > http://www.qgis.org/en/site/forusers/alldownloads.html#linux > indicate that the way for me to install is through the repo. My repo > has 1.x and I want 2.x so I am looking for an alternative. > > I have downloaded the qgis source files and done a build on the current > development system. I now have a developer version of qgis which I can > run. My problem with this is that the OpenLayers plugin > (version 1.1.2) crashes. > > Can someone please advise me on how to install qgis 2.x on a linux > system when the repo only supports qgis 1.x? Getting the current development version was an interesting choice. It might have been safer to select the "release-2_0" branch and download that. > Should the OpenLayers plugin work on the development system (It does > not look like an internal plugin to me, but I may be wrong)? It should. > Should I contact the plugin's developer? If you think you have a genuine bug, there's a bug tracker on hub.qgis.org. You could give some information on this list about what's happening, and maybe someone could help. Even if just to say, yep that's a bug. > Is there a qgis 2.0.x rpm or deb file I can install? Absolutely. See the Downloads page. > Is there a way to download the source files in such a way that I get > the latest release version (which will run the OpenLayers plugin? Yes. The downloads page points to github for the source. On github, you can choose which branch to use, and choose the "release-2_0" branch. -ramon. ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Georeferencer to create temp file as .VRT
Hi, Georeferencer creates and runs gdal_translate and gdalwarp commands like here: gdal_translate -of GTiff -gcp 461.252 682.521 2.54e+06 6.69e+06 -gcp 6355.1 671.222 2.55e+06 6.69e+06 -gcp 6367.18 6586.15 2.55e+06 6.68e+06 -gcp 472.062 6599.32 2.54e+06 6.68e+06 "C:/Users/test/test_scan.jpg" "C:/Users/test/AppData/Local/Temp/test_scan.jpg" gdalwarp -r near -order 1 -co COMPRESS=DEFLATE "C:/Users/test/AppData/Local/Temp/test_scan.jpg" "C:/Users/test/test_scan.tif" The first gdal_translate creates a temporaty file as an uncompressed tiff file. However, it is unnecessary to write a new physical image file. Instead it would be usually much faster and thus better to write the temporary output as GDAL .VRT file. VRT file is a short text file (about 2 kB in size) that contains a reference to the original image file. I know that I can catch the commands, edit by hand and run from GDAL command line afterwards but average users probably do not know that. -Jukka Rahkonen- ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Newbieish - save layer as DXF
Hi Hugh, DXF Export is not fully supported in QGIS 2.0 (you discovered that already) - you will have to wait for QGIS 2.2 which will probably be released in February 2014. Some improvements are already in QGIS master (2.1), but the labels are not yet supported. Marco Hugentobler is working on it. Andreas Am 15.12.2013 21:17, schrieb h: > Hi, > I am needing to convert a shp file (lines) to dxf. I have been using the > shp file in qgis very successfully. > What I would like to do is save a layer as dxf. I have done this > through the "layers" window, but I am only getting raw lines, whereas I > would like to also get the labels. > > In qgis can I export / save to DXF and get labels (I would also > like symbols for some point layers) to also be exported? > > TIA > Hugh > ___ > Qgis-user mailing list > Qgis-user@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/qgis-user > ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Newbieish - save layer as DXF
Hi, I am needing to convert a shp file (lines) to dxf. I have been using the shp file in qgis very successfully. What I would like to do is save a layer as dxf. I have done this through the "layers" window, but I am only getting raw lines, whereas I would like to also get the labels. In qgis can I export / save to DXF and get labels (I would also like symbols for some point layers) to also be exported? TIA Hugh ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Newbie question re installing qgis on linux and qgis - development version
Hi, I am running linux - Mageia 3 (intel x86-64) and want to run qgis version 2.x, and use the OpenLayers plugin. The mageia repo only has qgis 1.x. The Linux install instructions on http://www.qgis.org/en/site/forusers/alldownloads.html#linux indicate that the way for me to install is through the repo. My repo has 1.x and I want 2.x so I am looking for an alternative. I have downloaded the qgis source files and done a build on the current development system. I now have a developer version of qgis which I can run. My problem with this is that the OpenLayers plugin (version 1.1.2) crashes. Can someone please advise me on how to install qgis 2.x on a linux system when the repo only supports qgis 1.x? Should the OpenLayers plugin work on the development system (It does not look like an internal plugin to me, but I may be wrong)? Should I contact the plugin's developer? Is there a qgis 2.0.x rpm or deb file I can install? Is there a way to download the source files in such a way that I get the latest release version (which will run the OpenLayers plugin? Help appreciated!!! Hugh ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] qgis 2.0 crash on ubuntu 12.04
Dear all, today qgis have crashed and this is the error message in the terminal: Warning: loading of qt translation failed [/usr/share/qt4/translations/qt_it_IT] Warning: void DBusMenuExporterPrivate::addAction(QAction*, int): Already tracking action "Strumenti" under id 272 Qgis starts but the window flashes and remains empty Regards -- Sergio Vignali ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user