[Qgis-developer] raster calculator bug
Dear QGIS developers, I am using nightly QGIS_1-9-0_2013-07-27_f854288 and the raster calculator is very broken when using powers. For example: Area_mask@1 ^ -130.3475674 where Area_mask has a value of 0, 1 or 2 Results in 'nodata' everywhere. In part, think it has to do with the negative value, because if I run 1 / (Area_mask@1 ^ 130.3475674) I get at least 0 and 1. However, there is a mathematically valid answer for 2 as well, so there is more wrong than just the negative being used wrongly. I also have a strong notion that stuff like this used to work, though I cannot be sure it is a regression. If anyone can confirm this, please consider it as a release blocker. Best wishes, Oscar ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Bugs in QGIS Master
Dear Etienne, Thanks for the suggestion. If I close the creation options in the DEM, I am still a bit short: I see the gdaldem . window, but the OK and Close buttons still end up below the bottom of my screen. I am using Mac OS X 10.6.8 on a 13" Macbook with a resolution of 1280*800 (which, I admit, is a bit small for this sort of thing). As for the python error, I don't know if it is Mac-specific. Maybe someone else can confirm before I file a bug? I managed to run gdal_rasterize from the command line and it worked fine, so the problem is definitely between QGIS and my Mac. Best wishes, Oscar 2013/7/25 Etienne Tourigny > > > On Thu, Jul 25, 2013 at 3:28 AM, Oscar van Vliet wrote: > >> Dear QGIS developers, >> >> Thanks for all the hard work, I have been using the almost 2.0 builds >> with some satisfaction. Unfortunately, all is not well. I am using >> yesterday's Master build, and there seems to be a few bugs still. >> >> >> First of all, the dialog window for Raster|Analysis|DEM is too tall for >> my Macbook, which only has 800 pixels vertically. You might consider >> rearranging it a little. I can still use it by starting the analysis by >> hitting Enter, but I cannot actually see the bottom row of buttons or the >> resize widget. >> > > Admittedly the vertical size of that dialog is a bit large. > If you close the "Creation Options" section, can you resize the window and > see the bottom buttons? > > >> >> >> Second, I have some errors in the Raster|Conversion|Rasterise dialog that >> make it unusable for me. >> >> I am trying to rasterise a vector layer that I saved as a selection from >> a layer that I had previously vectorised. >> >> I understand this dialog is just a front for GDAL tools, but the bridge >> seems to be broken: I get the following python error when I try to select a >> filename for the rasterised output layer: >> >> Traceback (most recent call last): >> File >> "/Applications/GIS/QGIS_2.0-dev_SnoLeo.app/Contents/MacOS/../Resources/python/plugins/GdalTools/tools/doRasterize.py", >> line 102, in fillOutputFileEdit >> outputFile = fileDialogFunc(self, self.tr( "Select the raster file >> to save the results to" ), Utils.FileFilter.allRastersFilter(), >> lastUsedFilter) >> File >> "/Applications/GIS/QGIS_2.0-dev_SnoLeo.app/Contents/MacOS/../Resources/python/plugins/GdalTools/tools/GdalTools_utils.py", >> line 413, in getSaveFileName >> return self.getDialog(parent, caption, QFileDialog.AcceptSave, >> QFileDialog.AnyFile, filter, selectedFilter, useEncoding) >> File >> "/Applications/GIS/QGIS_2.0-dev_SnoLeo.app/Contents/MacOS/../Resources/python/plugins/GdalTools/tools/GdalTools_utils.py", >> line 362, in getDialog >> dialog.selectNameFilter(selectedFilter) >> TypeError: QFileDialog.selectNameFilter(QString): argument 1 has >> unexpected type 'QPyNullVariant' >> >> Python versie: >> 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) >> [GCC 4.2.1 (Apple Inc. build 5646)] >> >> >> QGIS versie: >> 1.9.0-Master Master, 5c2e3f3 >> >> Python pad: >> ['/Applications/GIS/QGIS_2.0-dev_SnoLeo.app/Contents/MacOS/../Resources/python', >> '/Users/XX/.qgis2/python', '/Users/XX/.qgis2/python/plugins', >> '/Applications/GIS/QGIS_2.0-dev_SnoLeo.app/Contents/MacOS/../Resources/python/plugins', >> '/Library/Frameworks/SQLite3.framework/Versions/B/Python/2.6', >> '/Library/Python/2.6/site-packages/numpy-override', >> '/Library/Frameworks/GDAL.framework/Versions/1.10/Python/2.6/site-packages', >> '/Library/Frameworks/cairo.framework/Versions/1/Python/2.6', >> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip', >> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6', >> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin', >> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac', >> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages', >> '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python', >> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk', >> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old', >> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynlo
[Qgis-developer] Bugs in QGIS Master
Dear QGIS developers, Thanks for all the hard work, I have been using the almost 2.0 builds with some satisfaction. Unfortunately, all is not well. I am using yesterday's Master build, and there seems to be a few bugs still. First of all, the dialog window for Raster|Analysis|DEM is too tall for my Macbook, which only has 800 pixels vertically. You might consider rearranging it a little. I can still use it by starting the analysis by hitting Enter, but I cannot actually see the bottom row of buttons or the resize widget. Second, I have some errors in the Raster|Conversion|Rasterise dialog that make it unusable for me. I am trying to rasterise a vector layer that I saved as a selection from a layer that I had previously vectorised. I understand this dialog is just a front for GDAL tools, but the bridge seems to be broken: I get the following python error when I try to select a filename for the rasterised output layer: Traceback (most recent call last): File "/Applications/GIS/QGIS_2.0-dev_SnoLeo.app/Contents/MacOS/../Resources/python/plugins/GdalTools/tools/doRasterize.py", line 102, in fillOutputFileEdit outputFile = fileDialogFunc(self, self.tr( "Select the raster file to save the results to" ), Utils.FileFilter.allRastersFilter(), lastUsedFilter) File "/Applications/GIS/QGIS_2.0-dev_SnoLeo.app/Contents/MacOS/../Resources/python/plugins/GdalTools/tools/GdalTools_utils.py", line 413, in getSaveFileName return self.getDialog(parent, caption, QFileDialog.AcceptSave, QFileDialog.AnyFile, filter, selectedFilter, useEncoding) File "/Applications/GIS/QGIS_2.0-dev_SnoLeo.app/Contents/MacOS/../Resources/python/plugins/GdalTools/tools/GdalTools_utils.py", line 362, in getDialog dialog.selectNameFilter(selectedFilter) TypeError: QFileDialog.selectNameFilter(QString): argument 1 has unexpected type 'QPyNullVariant' Python versie: 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) [GCC 4.2.1 (Apple Inc. build 5646)] QGIS versie: 1.9.0-Master Master, 5c2e3f3 Python pad: ['/Applications/GIS/QGIS_2.0-dev_SnoLeo.app/Contents/MacOS/../Resources/python', '/Users/XX/.qgis2/python', '/Users/XX/.qgis2/python/plugins', '/Applications/GIS/QGIS_2.0-dev_SnoLeo.app/Contents/MacOS/../Resources/python/plugins', '/Library/Frameworks/SQLite3.framework/Versions/B/Python/2.6', '/Library/Python/2.6/site-packages/numpy-override', '/Library/Frameworks/GDAL.framework/Versions/1.10/Python/2.6/site-packages', '/Library/Frameworks/cairo.framework/Versions/1/Python/2.6', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload', '/Library/Python/2.6/site-packages', '/Library/Python/2.6/site-packages/PIL', '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC', '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode', '/Applications/GIS/QGIS_2.0-dev_SnoLeo.app/Contents/Resources/python/plugins/fTools/tools', '/Users/XX/YY/ZZ'] Then if I try to run it with the existing size, I get another python error. If I choose the option with pixel size, the action just seems to hang without resolving or any error message. I hope this makes sense. I have installed all of the required packages from kyngchaos, AFAIK. Feel free to contact me for additional data. Best wishes, Oscar ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer