[Qgis-psc] GRASS work progress

Tim Sutton tim at qgis.org
Mon Sep 14 21:48:49 PDT 2015


Hi

> On 14 Sep 2015, at 15:30, Radim Blazek <radim.blazek at gmail.com> wrote:
> 
> On Sun, Sep 13, 2015 at 10:16 PM, Tim Sutton <tim at qgis.org> wrote:
>> 
>> Hi Radim
>> 
>> 
>> I wanted to make a small request / suggestion too about the GRASS implementation in QGIS. Currently when you start QGIS compiled with GRASS (in my case 6.4 on fedora), you get a pop up at the start of QGIS asking you if you want to set GISBASE. No matter what I set there I can’t get it to recognise my GRASS. That is probably just me being dumb, but my problem is more about the popup itself - it blocks QGIS from starting which ruins e.g. tests which need to run headless and I think it isn’t a great user experience as there is no help to tell you how to locate GISBASE. What about using a QgsMessageBar or some other non-blocking technique for alerting the user to the fact that their GISBASE is not found, and providing some help on what the appropriate setting should be?
> 
> OK, I have disabled the warning dialog and I'll add GISBASE select to
> options. A soft message is set from the plugin.

Thanks!

> Is there a mechanism
> how to set soft message from provider?

Hmm I’m wondering if a generic notification signal / slot would be useful….so that any non gui bits of code can push messages up to the UI.

> 
> Regarding the GISBASE itself, the search order is:
> 1) GISBASE environment variable
> 2) previously selected in the dialog (which is now disabled)
> 3) the location of GRASS used for compilation (cmake GRASS_BASE or GRASS_BASE7)
> 4) opens select dialog (now disabled)
> 
> So it seems that in your case QGIS was compiled with a version of
> GRASS which is no more available. Can you find in debug output where
> it looks for GRASS, something like:
> src/providers/grass/qgsgrass.cpp: 411: (init) [0ms] GRASS gisBase from
> configure is: /home/radim/apps-grass-7-svn/grass-7.1.svn
> src/providers/grass/qgsgrass.cpp: 563: (isValidGrassBaseDir) [0ms]
> isValidGrassBaseDir()
> src/providers/grass/qgsgrass.cpp: 471: (init) [0ms] Valid GRASS
> gisBase is: /home/radim/apps-grass-7-svn/grass-7.1.svn

I get:

src/core/qgsproviderregistry.cpp: 131: (QgsProviderRegistry) [7ms] Checking /usr/local/qgis-master//lib/qgis/plugins/libgrassplugin6.so: ...invalid (has type method)
src/providers/grass/qgsgrass.cpp: 317: (init) [2ms] do init
src/providers/grass/qgsgrass.cpp: 379: (init) [0ms] GRASS gisBase from GISBASE/WINGISBASE env var is: 
src/providers/grass/qgsgrass.cpp: 563: (isValidGrassBaseDir) [0ms] isValidGrassBaseDir()
src/providers/grass/qgsgrass.cpp: 384: (init) [0ms] GRASS gisBase from QSettings is: 
src/providers/grass/qgsgrass.cpp: 563: (isValidGrassBaseDir) [0ms] isValidGrassBaseDir()
src/providers/grass/qgsgrass.cpp: 411: (init) [0ms] GRASS gisBase from configure is: /usr/lib/grass
src/providers/grass/qgsgrass.cpp: 563: (isValidGrassBaseDir) [0ms] isValidGrassBaseDir()
src/providers/grass/qgsgrass.cpp: 457: (init) [0ms] GRASS was not found in '/usr/lib/grass'(GISBASE), provider and plugin will not work.
src/providers/grass/qgsgrassprovidermodule.cpp: 1002: (isProvider) [2ms] init failed

I went and checked and it seems like make gets the wrong lib dir so I changed to do:

-DGRASS_PREFIX=/usr/lib/grass64 

And now I get:

src/providers/grass/qgsgrass.cpp: 317: (init) [2ms] do init
src/providers/grass/qgsgrass.cpp: 379: (init) [1ms] GRASS gisBase from GISBASE/WINGISBASE env var is: 
src/providers/grass/qgsgrass.cpp: 563: (isValidGrassBaseDir) [0ms] isValidGrassBaseDir()
src/providers/grass/qgsgrass.cpp: 384: (init) [0ms] GRASS gisBase from QSettings is: 
src/providers/grass/qgsgrass.cpp: 563: (isValidGrassBaseDir) [0ms] isValidGrassBaseDir()
src/providers/grass/qgsgrass.cpp: 411: (init) [0ms] GRASS gisBase from configure is: /usr/lib/grass64
src/providers/grass/qgsgrass.cpp: 563: (isValidGrassBaseDir) [0ms] isValidGrassBaseDir()
src/providers/grass/qgsgrass.cpp: 457: (init) [0ms] GRASS was not found in '/usr/lib/grass64'(GISBASE), provider and plugin will not work.
src/providers/grass/qgsgrassprovidermodule.cpp: 1002: (isProvider) [0ms] init failed

I also tried explictly setting GISBASE as env var to /usr and then I get:

src/providers/grass/qgsgrass.cpp: 317: (init) [1ms] do init
src/providers/grass/qgsgrass.cpp: 379: (init) [1ms] GRASS gisBase from GISBASE/WINGISBASE env var is: /usr/
src/providers/grass/qgsgrass.cpp: 563: (isValidGrassBaseDir) [0ms] isValidGrassBaseDir()
src/providers/grass/qgsgrass.cpp: 384: (init) [0ms] GRASS gisBase from QSettings is: 
src/providers/grass/qgsgrass.cpp: 563: (isValidGrassBaseDir) [0ms] isValidGrassBaseDir()
src/providers/grass/qgsgrass.cpp: 411: (init) [0ms] GRASS gisBase from configure is: /usr/lib/grass64
src/providers/grass/qgsgrass.cpp: 563: (isValidGrassBaseDir) [0ms] isValidGrassBaseDir()
src/providers/grass/qgsgrass.cpp: 457: (init) [0ms] GRASS was not found in '/usr/lib/grass64'(GISBASE), provider and plugin will not work.
src/providers/grass/qgsgrassprovidermodule.cpp: 1002: (isProvider) [1ms] init failed


If I go to the help -> about -> providers box, I get both grass 6 and 7 listed there

Probably too much information I know :-P


Regards

Tim

> 
> Radim
> 
>> 
>> Regards
>> 
>> Tim
>> 
>> 
>> On 13 Sep 2015, at 09:06, Radim Blazek <radim.blazek at gmail.com> wrote:
>> 
>> On Sat, Sep 12, 2015 at 4:57 PM, Richard Duivenvoorde <richard at duif.net> wrote:
>> 
>> On 12-09-15 14:52, Radim Blazek wrote:
>> 
>> On Fri, Sep 11, 2015 at 5:48 PM, Paolo Cavallini <cavallini at faunalia.it> wrote:
>> 
>> All seems to go very well:
>> http://www.gissula.eu/qgis-grass-plugin-crowdfunding/progress.html
>> Only editing is still to be completed, but almost all the rest is done.
>> 
>> 
>> I want to finish the upgrade for the 2.12 as I promised, i.e. the 26th
>> of September
>> according to https://www.qgis.org/en/site/getinvolved/development/index.html.
>> 
>> 
>> Good work and nice way of working, Radim.
>> Both the crowdfunding and your way of describing the progress.
>> 
>> 
>> Thanks Richard.
>> 
>> Maybe anybody volunteering to write some small news article about this
>> work (and Radim) on the qgis blog?
>> 
>> 
>> Better to wait with more publicity until the work is completed, I mean
>> all the intended features are there (2.12 feature freeze).
>> 
>> Radim
>> _______________________________________________
>> Qgis-psc mailing list
>> Qgis-psc at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-psc
>> 
>> 
>> 
>> 
>> 
>> Tim Sutton
>> QGIS Project Steering Committee Member
>> tim at qgis.org
>> 
>> 
>> 
>> 




Tim Sutton
QGIS Project Steering Committee Member
tim at qgis.org




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-psc/attachments/20150915/11ed94da/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-1.tiff
Type: image/tiff
Size: 9882 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-psc/attachments/20150915/11ed94da/attachment.tiff>


More information about the Qgis-psc mailing list