Re: [QGIS-Developer] [Qgis-user] Mac QGIS 3 GRASS fix

2018-03-22 Thread Nyall Dawson
On 23 March 2018 at 11:35, Vaclav Petras  wrote:

>
> I'm not sure what exactly you want to use os.path.isfile() for, but
> etc/colors/grass is a file in GRASS GIS since 7.2, so os.path.isfile() will
> return True. In unix, you can see if the file is executable with
> os.access(name, os.X_OK) (not sure if instead or in addtion to
> os.path.isfile()). On Windows, testing for .bat or some other extension
> might be the right test.
>

Ah sorry - I had the impression from somewhere that colors/grass is a folder.

Nyall
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] [Qgis-user] Mac QGIS 3 GRASS fix

2018-03-22 Thread William Kyngesburye
I figured it out - the break in searchFolder() only breaks the cmd loop, 
leaving the walking to continue, eventually finding the last occurrence of the 
cmd.  I posted my fix to the bug report.

> On Mar 22, 2018, at 8:35 PM, Vaclav Petras  wrote:
> 
> 
> 
> On Thu, Mar 22, 2018 at 6:56 PM, Nyall Dawson  > wrote:
> On 23 March 2018 at 08:47, William Kyngesburye  > wrote:
> > Well, it seems that running any GRASS Processing coughs up this error.
> > Mystery to me, permissions are correct for the app, nothing should be
> > writing to the app, and if it is trying that's wrong.
> >
> > The error doesn't help me try to figure out what's going on.  Help would be
> > appreciated.
> 
> 
> I believe it's this bug:
> 
> https://issues.qgis.org/issues/17555 
> 
> The permission errors is caused because it's actually trying to
> execute /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass
> instead of the correct grass binary.
> 
> The bug is caused by this function:
> 
> https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/grass7/Grass7Utils.py#L130
>  
> 
> 
> It's trying to automatically generate the grass executable path, but
> it's incorrectly finding the colors/grass folder and deciding that
> it's the grass executable. I think inserting a os.path.isfile check
> somewhere around line 145 should fix this, but not having access to an
> osx install I haven't been able to test this.
> 
> 
> I'm not sure what exactly you want to use os.path.isfile() for, but 
> etc/colors/grass is a file in GRASS GIS since 7.2, so os.path.isfile() will 
> return True. In unix, you can see if the file is executable with 
> os.access(name, os.X_OK) (not sure if instead or in addtion to 
> os.path.isfile()). On Windows, testing for .bat or some other extension might 
> be the right test.
> 
> Best,
> Vaclav
>  
> 
> Hope that helps -- would be great to have this one sorted for 3.0.1 if
> you can confirm a fix!
> 
> Nyall
> 
> >
> > On Mar 22, 2018, at 1:10 PM, William Kyngesburye  > >
> > wrote:
> >
> > What are you doing?  GRASS plugin tools or Processing GRASS algorithms?
> >
> > Nothing should be trying to write to the GRASS dir.  There should not be
> > permissions problem reading from the GRASS dir.
> >
> > On Mar 22, 2018, at 11:00 AM, jehduke...@gmail.com 
> >  wrote:
> >
> > Thanks William.  I'm still getting some sort of error using grass.  Not sure
> > if this is still related.
> >
> > /var/folders/d3/q41sw4cj5_s479lpjf1z3hwcgn/T/processing_7fd31b05f63f437c84dee066f864d9f9/grassdata/temp_location/PERMANENT:
> > /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass: Permission
> > denied
> > /var/folders/d3/q41sw4cj5_s479lpjf1z3hwcgn/T/processing_7fd31b05f63f437c84dee066f864d9f9/grassdata/temp_location/PERMANENT:
> > /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass: Permission
> > denied
> >
> >
> >
> >
> > On Thu, Mar 22, 2018 at 8:36 AM, William Kyngesburye  > >
> > wrote:
> >>
> >> The non-working GRASS in the Mac QGIS 3 should be fixed now.  It appears
> >> the GRASS internals still don't like spaces in the path to GRASS -- this
> >> came from my adding "3" to the QGIS app name with a space.  The app is now
> >> without a space, "QGIS3.app".
> >>
> >> It looks like the missing SAGA is also fixed by the rebuild (don't know
> >> why, it just happened).
> >>
> >> REMINDER: My QGIS 3 package requires the python.org  
> >> Python 3.  Other
> >> distributions/installations of Python are not supported (ie Homebrew,
> >> Macports, Anaconda...).
> >>
> >> -
> >> William Kyngesburye 
> >> http://www.kyngchaos.com/ 
> >>
> >> [Trillian]  What are you supposed to do WITH a maniacally depressed robot?
> >>
> >> [Marvin]  You think you have problems?  What are you supposed to do if you
> >> ARE a maniacally depressed robot?  No, don't try and answer, I'm 50,000
> >> times more intelligent than you and even I don't know the answer...
> >>
> >> - HitchHiker's Guide to the Galaxy
> >>
> >>
> >> ___
> >> Qgis-user mailing list
> >> qgis-u...@lists.osgeo.org 
> >> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user 
> >> 
> >> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user 
> >> 
> >
> >
> >
> > -
> > William Kyngesburye 
> > http://www.kyngchaos.com/ 

Re: [QGIS-Developer] [Qgis-user] Mac QGIS 3 GRASS fix

2018-03-22 Thread Vaclav Petras
On Thu, Mar 22, 2018 at 6:56 PM, Nyall Dawson 
wrote:

> On 23 March 2018 at 08:47, William Kyngesburye 
> wrote:
> > Well, it seems that running any GRASS Processing coughs up this error.
> > Mystery to me, permissions are correct for the app, nothing should be
> > writing to the app, and if it is trying that's wrong.
> >
> > The error doesn't help me try to figure out what's going on.  Help would
> be
> > appreciated.
>
>
> I believe it's this bug:
>
> https://issues.qgis.org/issues/17555
>
> The permission errors is caused because it's actually trying to
> execute /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass
> instead of the correct grass binary.
>
> The bug is caused by this function:
>
> https://github.com/qgis/QGIS/blob/master/python/plugins/proc
> essing/algs/grass7/Grass7Utils.py#L130
>
> It's trying to automatically generate the grass executable path, but
> it's incorrectly finding the colors/grass folder and deciding that
> it's the grass executable. I think inserting a os.path.isfile check
> somewhere around line 145 should fix this, but not having access to an
> osx install I haven't been able to test this.
>


I'm not sure what exactly you want to use os.path.isfile() for, but
etc/colors/grass is a file in GRASS GIS since 7.2, so os.path.isfile() will
return True. In unix, you can see if the file is executable with
os.access(name, os.X_OK) (not sure if instead or in addtion to
os.path.isfile()). On Windows, testing for .bat or some other extension
might be the right test.

Best,
Vaclav


>
> Hope that helps -- would be great to have this one sorted for 3.0.1 if
> you can confirm a fix!
>
> Nyall
>
> >
> > On Mar 22, 2018, at 1:10 PM, William Kyngesburye 
> > wrote:
> >
> > What are you doing?  GRASS plugin tools or Processing GRASS algorithms?
> >
> > Nothing should be trying to write to the GRASS dir.  There should not be
> > permissions problem reading from the GRASS dir.
> >
> > On Mar 22, 2018, at 11:00 AM, jehduke...@gmail.com wrote:
> >
> > Thanks William.  I'm still getting some sort of error using grass.  Not
> sure
> > if this is still related.
> >
> > /var/folders/d3/q41sw4cj5_s479lpjf1z3hwcgn/T/processing_
> 7fd31b05f63f437c84dee066f864d9f9/grassdata/temp_location/PERMANENT:
> > /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass:
> Permission
> > denied
> > /var/folders/d3/q41sw4cj5_s479lpjf1z3hwcgn/T/processing_
> 7fd31b05f63f437c84dee066f864d9f9/grassdata/temp_location/PERMANENT:
> > /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass:
> Permission
> > denied
> >
> >
> >
> >
> > On Thu, Mar 22, 2018 at 8:36 AM, William Kyngesburye <
> wokl...@kyngchaos.com>
> > wrote:
> >>
> >> The non-working GRASS in the Mac QGIS 3 should be fixed now.  It appears
> >> the GRASS internals still don't like spaces in the path to GRASS -- this
> >> came from my adding "3" to the QGIS app name with a space.  The app is
> now
> >> without a space, "QGIS3.app".
> >>
> >> It looks like the missing SAGA is also fixed by the rebuild (don't know
> >> why, it just happened).
> >>
> >> REMINDER: My QGIS 3 package requires the python.org Python 3.  Other
> >> distributions/installations of Python are not supported (ie Homebrew,
> >> Macports, Anaconda...).
> >>
> >> -
> >> William Kyngesburye 
> >> http://www.kyngchaos.com/
> >>
> >> [Trillian]  What are you supposed to do WITH a maniacally depressed
> robot?
> >>
> >> [Marvin]  You think you have problems?  What are you supposed to do if
> you
> >> ARE a maniacally depressed robot?  No, don't try and answer, I'm 50,000
> >> times more intelligent than you and even I don't know the answer...
> >>
> >> - HitchHiker's Guide to the Galaxy
> >>
> >>
> >> ___
> >> Qgis-user mailing list
> >> qgis-u...@lists.osgeo.org
> >> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> >> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> >
> >
> >
> > -
> > William Kyngesburye 
> > http://www.kyngchaos.com/
> >
> > All generalizations are dangerous, even this one.
> >
> >
> > ___
> > Qgis-user mailing list
> > qgis-u...@lists.osgeo.org
> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> >
> >
> > -
> > William Kyngesburye 
> > http://www.kyngchaos.com/
> >
> > "We are at war with them. Neither in hatred nor revenge and with no
> > particular pleasure I shall kill every ___ I can until the war is over.
> That
> > is my duty."
> >
> > "Don't you even hate 'em?"
> >
> > "What good would it do if I did? If all the many millions of people of
> the
> > allied nations devoted an entire year exclusively to hating the  it
> > wouldn't kill one ___ nor shorten the 

Re: [QGIS-Developer] [Qgis-user] Mac QGIS 3 GRASS fix

2018-03-22 Thread William Kyngesburye
Yes, that looks like the source of the problem.  The os.walk() finds the color 
file named "grass" before it has a chance to find the real "grass72" file at 
the top level of the grasspath.  Though this is odd since it looks like os.walk 
by default should return a folder's info before it walks subfolders.

I don't think a file check will help, since it finds a file from the returned 
files list.  I do think the walking the whole grasspath tree is excessive.

> On Mar 22, 2018, at 5:56 PM, Nyall Dawson  wrote:
> 
> On 23 March 2018 at 08:47, William Kyngesburye  wrote:
>> Well, it seems that running any GRASS Processing coughs up this error.
>> Mystery to me, permissions are correct for the app, nothing should be
>> writing to the app, and if it is trying that's wrong.
>> 
>> The error doesn't help me try to figure out what's going on.  Help would be
>> appreciated.
> 
> 
> I believe it's this bug:
> 
> https://issues.qgis.org/issues/17555
> 
> The permission errors is caused because it's actually trying to
> execute /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass
> instead of the correct grass binary.
> 
> The bug is caused by this function:
> 
> https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/grass7/Grass7Utils.py#L130
> 
> It's trying to automatically generate the grass executable path, but
> it's incorrectly finding the colors/grass folder and deciding that
> it's the grass executable. I think inserting a os.path.isfile check
> somewhere around line 145 should fix this, but not having access to an
> osx install I haven't been able to test this.
> 
> Hope that helps -- would be great to have this one sorted for 3.0.1 if
> you can confirm a fix!
> 
> Nyall
> 
>> 
>> On Mar 22, 2018, at 1:10 PM, William Kyngesburye 
>> wrote:
>> 
>> What are you doing?  GRASS plugin tools or Processing GRASS algorithms?
>> 
>> Nothing should be trying to write to the GRASS dir.  There should not be
>> permissions problem reading from the GRASS dir.
>> 
>> On Mar 22, 2018, at 11:00 AM, jehduke...@gmail.com wrote:
>> 
>> Thanks William.  I'm still getting some sort of error using grass.  Not sure
>> if this is still related.
>> 
>> /var/folders/d3/q41sw4cj5_s479lpjf1z3hwcgn/T/processing_7fd31b05f63f437c84dee066f864d9f9/grassdata/temp_location/PERMANENT:
>> /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass: Permission
>> denied
>> /var/folders/d3/q41sw4cj5_s479lpjf1z3hwcgn/T/processing_7fd31b05f63f437c84dee066f864d9f9/grassdata/temp_location/PERMANENT:
>> /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass: Permission
>> denied
>> 
>> 
>> 
>> 
>> On Thu, Mar 22, 2018 at 8:36 AM, William Kyngesburye 
>> wrote:
>>> 
>>> The non-working GRASS in the Mac QGIS 3 should be fixed now.  It appears
>>> the GRASS internals still don't like spaces in the path to GRASS -- this
>>> came from my adding "3" to the QGIS app name with a space.  The app is now
>>> without a space, "QGIS3.app".
>>> 
>>> It looks like the missing SAGA is also fixed by the rebuild (don't know
>>> why, it just happened).
>>> 
>>> REMINDER: My QGIS 3 package requires the python.org Python 3.  Other
>>> distributions/installations of Python are not supported (ie Homebrew,
>>> Macports, Anaconda...).
>>> 
>>> -
>>> William Kyngesburye 
>>> http://www.kyngchaos.com/
>>> 
>>> [Trillian]  What are you supposed to do WITH a maniacally depressed robot?
>>> 
>>> [Marvin]  You think you have problems?  What are you supposed to do if you
>>> ARE a maniacally depressed robot?  No, don't try and answer, I'm 50,000
>>> times more intelligent than you and even I don't know the answer...
>>> 
>>> - HitchHiker's Guide to the Galaxy
>>> 
>>> 
>>> ___
>>> Qgis-user mailing list
>>> qgis-u...@lists.osgeo.org
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> 
>> 
>> 
>> -
>> William Kyngesburye 
>> http://www.kyngchaos.com/
>> 
>> All generalizations are dangerous, even this one.
>> 
>> 
>> ___
>> Qgis-user mailing list
>> qgis-u...@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> 
>> 
>> -
>> William Kyngesburye 
>> http://www.kyngchaos.com/
>> 
>> "We are at war with them. Neither in hatred nor revenge and with no
>> particular pleasure I shall kill every ___ I can until the war is over. That
>> is my duty."
>> 
>> "Don't you even hate 'em?"
>> 
>> "What good would it do if I did? If all the many millions of people of the
>> allied nations devoted an entire year exclusively to hating the  it
>> wouldn't kill one ___ nor shorten the war one 

Re: [QGIS-Developer] QGIS plugin in private GitHub repository.

2018-03-22 Thread Luís Miguel Royo Pérez
Thank you, Tim. I'm aware about this points you're remarking.

You made me think a lot about the bussines model to follow. I appreciate
that.

Kind Regards.





El jue., 22 mar. 2018 23:24, Tim Sutton  escribió:

> Hi
>
>  I am not a lawyer but can make a few brief comments:
>
> * You are allowed to sell you plugin, no problem with that
> * Anyone you supply the plugin to should be also given access to the full
> source code (i.e no .pyc only distributions)
> * The source code should be published under the GPL 3 license
> * Anyone you thus sell your plugin to would be able to redistribute the
> plugin (even as far as publishing it for free in another plugin repository)
>
> So the model most follow is to sell support rather than the code itself -
> perhaps you would like to follow a similar approach?
>
> Regards
>
> Tim
>
>
> On 22 Mar 2018, at 23:47, Luís Miguel Royo Pérez <
> luis.miguel.r...@gmail.com> wrote:
>
> I must apologize, I wasn't clear enough. I want to sell this plugin,
> that's why I want a private repository, and control who is downloading the
> plugin.
>
> So, if I understood correctly meanwhile I respect the structure of a
> canonical QGIS repository in GitHub, I will be able to connect with the
> repo from QGIS plugin manager, rigth?
>
> Thanks a lot for your replies.
>
> El jue., 22 mar. 2018 21:14, Tim Sutton  escribió:
>
>> Hi
>>
>> On 22 Mar 2018, at 21:14, Luís Miguel Royo Pérez <
>> luis.miguel.r...@gmail.com> wrote:
>>
>> Hello everyone,
>>
>> I'm wondering if I can set up a private repository with GitHub in order
>> to share my QGIS plugins.
>>
>>
>> Sure why not? As long as you share the source of the people you
>> distribute the plugins to you should be fine. Why not just share it
>> publicly though? Also you will not be able to post your plugin to the QGIS
>> plugin repo unless the source code, tracker etc. are also public.
>>
>> Regards
>>
>> Tim
>>
>>
>> Thanks per advance.
>>
>> --
>> Luís Miguel Royo Pérez.
>> Analista-Programador GIS
>> Av. Blasco Ibañez nº 1. Manises (Valencia)
>> Teléfono: 679846103
>> web: inisig.com
>>
>> ___
>> QGIS-Developer mailing list
>> QGIS-Developer@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
>>
>> —
>>
>>
>>
>>
>>
>>
>> *Tim Sutton*
>>
>> *Co-founder:* Kartoza
>> *Project chair:* QGIS.org 
>>
>> Visit http://kartoza.com to find out about open source:
>>
>> Desktop GIS programming services
>> Geospatial web development
>> GIS Training
>> Consulting Services
>>
>> *Skype*: timlinux
>> *IRC:* timlinux on #qgis at freenode.net
>>
>> 
>
>
> —
>
>
>
>
>
>
> *Tim Sutton*
>
> *Co-founder:* Kartoza
> *Project chair:* QGIS.org
>
> Visit http://kartoza.com to find out about open source:
>
> Desktop GIS programming services
> Geospatial web development
> GIS Training
> Consulting Services
>
> *Skype*: timlinux
> *IRC:* timlinux on #qgis at freenode.net
>
>
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] [Qgis-user] Mac QGIS 3 GRASS fix

2018-03-22 Thread Nyall Dawson
On 23 March 2018 at 08:47, William Kyngesburye  wrote:
> Well, it seems that running any GRASS Processing coughs up this error.
> Mystery to me, permissions are correct for the app, nothing should be
> writing to the app, and if it is trying that's wrong.
>
> The error doesn't help me try to figure out what's going on.  Help would be
> appreciated.


I believe it's this bug:

https://issues.qgis.org/issues/17555

The permission errors is caused because it's actually trying to
execute /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass
instead of the correct grass binary.

The bug is caused by this function:

https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/grass7/Grass7Utils.py#L130

It's trying to automatically generate the grass executable path, but
it's incorrectly finding the colors/grass folder and deciding that
it's the grass executable. I think inserting a os.path.isfile check
somewhere around line 145 should fix this, but not having access to an
osx install I haven't been able to test this.

Hope that helps -- would be great to have this one sorted for 3.0.1 if
you can confirm a fix!

Nyall

>
> On Mar 22, 2018, at 1:10 PM, William Kyngesburye 
> wrote:
>
> What are you doing?  GRASS plugin tools or Processing GRASS algorithms?
>
> Nothing should be trying to write to the GRASS dir.  There should not be
> permissions problem reading from the GRASS dir.
>
> On Mar 22, 2018, at 11:00 AM, jehduke...@gmail.com wrote:
>
> Thanks William.  I'm still getting some sort of error using grass.  Not sure
> if this is still related.
>
> /var/folders/d3/q41sw4cj5_s479lpjf1z3hwcgn/T/processing_7fd31b05f63f437c84dee066f864d9f9/grassdata/temp_location/PERMANENT:
> /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass: Permission
> denied
> /var/folders/d3/q41sw4cj5_s479lpjf1z3hwcgn/T/processing_7fd31b05f63f437c84dee066f864d9f9/grassdata/temp_location/PERMANENT:
> /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass: Permission
> denied
>
>
>
>
> On Thu, Mar 22, 2018 at 8:36 AM, William Kyngesburye 
> wrote:
>>
>> The non-working GRASS in the Mac QGIS 3 should be fixed now.  It appears
>> the GRASS internals still don't like spaces in the path to GRASS -- this
>> came from my adding "3" to the QGIS app name with a space.  The app is now
>> without a space, "QGIS3.app".
>>
>> It looks like the missing SAGA is also fixed by the rebuild (don't know
>> why, it just happened).
>>
>> REMINDER: My QGIS 3 package requires the python.org Python 3.  Other
>> distributions/installations of Python are not supported (ie Homebrew,
>> Macports, Anaconda...).
>>
>> -
>> William Kyngesburye 
>> http://www.kyngchaos.com/
>>
>> [Trillian]  What are you supposed to do WITH a maniacally depressed robot?
>>
>> [Marvin]  You think you have problems?  What are you supposed to do if you
>> ARE a maniacally depressed robot?  No, don't try and answer, I'm 50,000
>> times more intelligent than you and even I don't know the answer...
>>
>> - HitchHiker's Guide to the Galaxy
>>
>>
>> ___
>> Qgis-user mailing list
>> qgis-u...@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
>
> -
> William Kyngesburye 
> http://www.kyngchaos.com/
>
> All generalizations are dangerous, even this one.
>
>
> ___
> Qgis-user mailing list
> qgis-u...@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
> -
> William Kyngesburye 
> http://www.kyngchaos.com/
>
> "We are at war with them. Neither in hatred nor revenge and with no
> particular pleasure I shall kill every ___ I can until the war is over. That
> is my duty."
>
> "Don't you even hate 'em?"
>
> "What good would it do if I did? If all the many millions of people of the
> allied nations devoted an entire year exclusively to hating the  it
> wouldn't kill one ___ nor shorten the war one day."
>
>  "And it might give 'em all stomach ulcers."
>
> - Tarzan, on war
>
>
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] [Qgis-user] Mac QGIS 3 GRASS fix

2018-03-22 Thread William Kyngesburye
Well, it seems that running any GRASS Processing coughs up this error.  Mystery 
to me, permissions are correct for the app, nothing should be writing to the 
app, and if it is trying that's wrong.

The error doesn't help me try to figure out what's going on.  Help would be 
appreciated.

> On Mar 22, 2018, at 1:10 PM, William Kyngesburye  
> wrote:
> 
> What are you doing?  GRASS plugin tools or Processing GRASS algorithms?
> 
> Nothing should be trying to write to the GRASS dir.  There should not be 
> permissions problem reading from the GRASS dir.
> 
>> On Mar 22, 2018, at 11:00 AM, jehduke...@gmail.com 
>>  wrote:
>> 
>> Thanks William.  I'm still getting some sort of error using grass.  Not sure 
>> if this is still related.
>> 
>> /var/folders/d3/q41sw4cj5_s479lpjf1z3hwcgn/T/processing_7fd31b05f63f437c84dee066f864d9f9/grassdata/temp_location/PERMANENT:
>>  /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass: Permission 
>> denied 
>> /var/folders/d3/q41sw4cj5_s479lpjf1z3hwcgn/T/processing_7fd31b05f63f437c84dee066f864d9f9/grassdata/temp_location/PERMANENT:
>>  /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass: Permission 
>> denied 
>> 
>> 
>> 
>> 
>> On Thu, Mar 22, 2018 at 8:36 AM, William Kyngesburye > > wrote:
>> The non-working GRASS in the Mac QGIS 3 should be fixed now.  It appears the 
>> GRASS internals still don't like spaces in the path to GRASS -- this came 
>> from my adding "3" to the QGIS app name with a space.  The app is now 
>> without a space, "QGIS3.app".
>> 
>> It looks like the missing SAGA is also fixed by the rebuild (don't know why, 
>> it just happened).
>> 
>> REMINDER: My QGIS 3 package requires the python.org  
>> Python 3.  Other distributions/installations of Python are not supported (ie 
>> Homebrew, Macports, Anaconda...).
>> 
>> -
>> William Kyngesburye 
>> http://www.kyngchaos.com/ 
>> 
>> [Trillian]  What are you supposed to do WITH a maniacally depressed robot?
>> 
>> [Marvin]  You think you have problems?  What are you supposed to do if you 
>> ARE a maniacally depressed robot?  No, don't try and answer, I'm 50,000 
>> times more intelligent than you and even I don't know the answer...
>> 
>> - HitchHiker's Guide to the Galaxy
>> 
>> 
>> ___
>> Qgis-user mailing list
>> qgis-u...@lists.osgeo.org 
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user 
>> 
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user 
>> 
> 
> -
> William Kyngesburye 
> http://www.kyngchaos.com/ 
> 
> All generalizations are dangerous, even this one.
> 
> 
> ___
> Qgis-user mailing list
> qgis-u...@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

-
William Kyngesburye 
http://www.kyngchaos.com/

"We are at war with them. Neither in hatred nor revenge and with no particular 
pleasure I shall kill every ___ I can until the war is over. That is my duty."

"Don't you even hate 'em?"

"What good would it do if I did? If all the many millions of people of the 
allied nations devoted an entire year exclusively to hating the  it 
wouldn't kill one ___ nor shorten the war one day."

 "And it might give 'em all stomach ulcers."

- Tarzan, on war

___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Visual Changelog: ready? Move to Website? Or Not?

2018-03-22 Thread Tim Sutton
Hi

And just to add to Andrea’s reply, for each changelog entry there is an option 
to add who sponsored the entry and a link to their site. Vincent if you would 
like to supply me some text and a screenshot, I will be happy to add an entry 
to the changelog for this feature.


Thanks for supporting QGIS Vincent!

Regards

Tim

> On 21 Mar 2018, at 15:56, Andreas Neumann  wrote:
> 
> Dear Vincent,
> 
> Thank you for letting us know about this.
> 
> There is a clear distinction between sponsors and donors on one hand (listed 
> both at https://www.qgis.org/en/site/about/sponsorship.html 
> ) who contribute their 
> funds to the discretion of the QGIS.ORG project and other financial 
> contributors who fund a developer or company directly to develop a specific 
> feature. Such a contribution is often unknown to us at QGIS.ORG and the 
> developer should take care about giving credits in the visual changelog.
> 
> For this particular improvement I can't find a corresponding entry in the 
> QGIS 3 visual changelog at 
> https://www.qgis.org/en/site/forusers/visualchangelog30/index.html 
> . Perhaps 
> it was forgotten to add this new improvement? Nyall - do you know more about 
> this?
> 
> Vincent: we will definitely list you as a contributor in the visual changelog 
> - but first we'll have to find the corresponding entry - we need the help 
> from Nyall here.
> 
> Greetings,
> Andreas
> QGIS.ORG treasurer
> 
> On 21.03.2018 10:18, Vincent Schut wrote:
>> Hi,
>> 
>> don't know if this is the right place to ask, but:
>> 
>> Last year we (satelligence.com) sponsored the 'discrete raster styling' work 
>> by Nyall (https://github.com/qgis/QGIS/pull/4308 
>> ) with €1500. I don't see a direct 
>> mention of that PR in the visual changelog, however, I do see a lot of 
>> company logo's :-) Would our contribution allow for a mention either as a 
>> sponsoring company at the top of the page, or could someone add a small 
>> section about the new feature and add us as a sponsor there?
>> 
>> Thanks!, and please let me know if you need any more information or action 
>> from our side.
>> 
>> Vincent.
>> 
>> 
>> On 03/19/2018 03:34 PM, Tim Sutton wrote:
>>> Hi
>>> 
 On 16 Mar 2018, at 14:39, Régis Haubourg > wrote:
 
 Hi,
 
 I agree with what Andreas proposes, ie announce clearly a date to the end 
 of April, then make a copy to the website.
 
 I still try to polish the changelog currently, some entries are hard to 
 understand or deserve animated gif's and some entries can be factorized in 
 one only for a shorter changelog. If the changelog is too long to be read, 
 that means it is too long :)
>>> 
>>> I don’t think a long changelog is a limitation - in many cases this may be 
>>> the only place where details of new features are available and enthusiastic 
>>> users will happily pick through the details of the changelog to find things 
>>> that are interesting for them.
>>> 
>>> 
>>> 
>>> 
 
 Another glitch linked to the validation workflow. When someone submit an 
 entry, the entry disappears until it is validated. So that leaded to 
 duplicates, probably because some thought they had an issue with the 
 website.
>>> 
>>> As Etienne mentioned we will get rid of this soon - hopefully in time for 
>>> 3.2.
>>> 
>>> Thanks for all your contributions!
>>> 
>>> Regards
>>> 
>>> Tim
>>> 
 
 I would suggest that the validation workflow submits the new version to 
 moderators, and that a copy of the old version stays published. A message 
 to inform the author he needs some validation would be necessary too.
 
 Cheers!
 
 Régis
 
 
>>> 
>>> —
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> Tim Sutton
>>> 
>>> Co-founder: Kartoza
>>> Project chair: QGIS.org 
>>> 
>>> Visit http://kartoza.com  to find out about open 
>>> source:
>>> 
>>> Desktop GIS programming services
>>> Geospatial web development
>>> GIS Training
>>> Consulting Services
>>> 
>>> Skype: timlinux
>>> IRC: timlinux on #qgis at freenode.net 
>>> 
>>> 
>>> N�n�r)em�h�yhiם�w^��
>> 
>> 
>> 
>> ___
>> QGIS-Developer mailing list
>> QGIS-Developer@lists.osgeo.org 
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer 
>> 
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer 
>> 
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: 

Re: [QGIS-Developer] QGIS plugin in private GitHub repository.

2018-03-22 Thread Sandro Santilli
On Thu, Mar 22, 2018 at 08:14:07PM +0100, Luís Miguel Royo Pérez wrote:

> I'm wondering if I can set up a private repository with GitHub in order to
> share my QGIS plugins.

A _private_ repository to _share_ a plugin ?
This is counter-intuitive.
Are you thinking about controlling who you share with ?
Are you thinking about a private plugin repository rather
than git repository ?

--strk;
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] My plugin is still pending approval

2018-03-22 Thread Paolo Cavallini
In March I left the ball to Admire.
If I can be of help just let me know.

Il 22 marzo 2018 16:17:52 GMT-04:00, Tim Sutton  ha scritto:
>Hi
>
>Paolo, Admire can you help Xavier?
>
>Regards
>
>Tim
>
>> On 22 Mar 2018, at 20:27, Xavier Corredor Llano
> wrote:
>> 
>> Dear all,
>> 
>> I uploaded my plugin to Qgis plugins platform since 6 March:
>> 
>> https://plugins.qgis.org/plugins/AcATaMa/
>
>> 
>> I would like to know if there is any problem or something is missing.
>> 
>> Thanks,
>> Regards
>> Xavier Corredor Ll.
>> ___
>> QGIS-Developer mailing list
>> QGIS-Developer@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>—
>
>
>
>
>
>
>
>Tim Sutton
>
>Co-founder: Kartoza
>Project chair: QGIS.org
>
>Visit http://kartoza.com  to find out about open
>source:
>
>Desktop GIS programming services
>Geospatial web development
>GIS Training
>Consulting Services
>
>Skype: timlinux
>IRC: timlinux on #qgis at freenode.net

-- 
Sorry for being short___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] [GSoC] Proposal draft - Improve GRASS integration in QGIS 3

2018-03-22 Thread Tim Sutton
Hi

No specific comments from me other than to say that it is great that you plan 
to improve the GRASS / QGIS integration in processing!

Regards

Tim

> On 22 Mar 2018, at 15:29, Radek Novotný  wrote:
> 
> Hello everyone,
> 
> I am sending my proposal for GSoC GRASS project also to this dev mailing 
> list, because of this project is related to QGIS too.
> 
> Here is my proposal draft for an idea Improve GRASS integration in QGIS 3.
> https://docs.google.com/document/d/1XlxRHvtaiebVIOvlq8G6Q5FuUkFigZ8DlQbaQ-y9keQ/edit?usp=sharing
>  
> 
> 
> I will be happy for your feedback, comments, and suggestions.
> 
> Regards
> Radek Novotny
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

—







Tim Sutton

Co-founder: Kartoza
Project chair: QGIS.org

Visit http://kartoza.com  to find out about open source:

Desktop GIS programming services
Geospatial web development
GIS Training
Consulting Services

Skype: timlinux
IRC: timlinux on #qgis at freenode.net



signature.asc
Description: Message signed with OpenPGP
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] My plugin is still pending approval

2018-03-22 Thread Tim Sutton
Hi

Paolo, Admire can you help Xavier?

Regards

Tim

> On 22 Mar 2018, at 20:27, Xavier Corredor Llano 
>  wrote:
> 
> Dear all,
> 
> I uploaded my plugin to Qgis plugins platform since 6 March:
> 
> https://plugins.qgis.org/plugins/AcATaMa/ 
> 
> 
> I would like to know if there is any problem or something is missing.
> 
> Thanks,
> Regards
> Xavier Corredor Ll.
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

—







Tim Sutton

Co-founder: Kartoza
Project chair: QGIS.org

Visit http://kartoza.com  to find out about open source:

Desktop GIS programming services
Geospatial web development
GIS Training
Consulting Services

Skype: timlinux
IRC: timlinux on #qgis at freenode.net



signature.asc
Description: Message signed with OpenPGP
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] QGIS plugin in private GitHub repository.

2018-03-22 Thread Tim Sutton
Hi

> On 22 Mar 2018, at 21:14, Luís Miguel Royo Pérez  
> wrote:
> 
> Hello everyone,
> 
> I'm wondering if I can set up a private repository with GitHub in order to 
> share my QGIS plugins.

Sure why not? As long as you share the source of the people you distribute the 
plugins to you should be fine. Why not just share it publicly though? Also you 
will not be able to post your plugin to the QGIS plugin repo unless the source 
code, tracker etc. are also public.

Regards

Tim

> 
> Thanks per advance.
> 
> --
> Luís Miguel Royo Pérez.
> Analista-Programador GIS
> Av. Blasco Ibañez nº 1. Manises (Valencia)
> Teléfono: 679846103
> web: inisig.com 
> 
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

—







Tim Sutton

Co-founder: Kartoza
Project chair: QGIS.org

Visit http://kartoza.com  to find out about open source:

Desktop GIS programming services
Geospatial web development
GIS Training
Consulting Services

Skype: timlinux
IRC: timlinux on #qgis at freenode.net



signature.asc
Description: Message signed with OpenPGP
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] QGIS plugin in private GitHub repository.

2018-03-22 Thread Luís Miguel Royo Pérez
Hello everyone,

I'm wondering if I can set up a private repository with GitHub in order to
share my QGIS plugins.

Thanks per advance.

-- 
Luís Miguel Royo Pérez.
Analista-Programador GIS
Av. Blasco Ibañez nº 1. Manises (Valencia)
Teléfono: 679846103
web: inisig.com
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] My plugin is still pending approval

2018-03-22 Thread Xavier Corredor Llano
Dear all,

I uploaded my plugin to Qgis plugins platform since 6 March:

https://plugins.qgis.org/plugins/AcATaMa/

I would like to know if there is any problem or something is missing.

Thanks,
Regards
Xavier Corredor Ll.
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Mac QGIS 3 GRASS fix

2018-03-22 Thread Tim Sutton
Hi

Ah wow thanks so much - that fixes a big gap in the Mac user experience!

Regards

Tim

> On 22 Mar 2018, at 16:36, William Kyngesburye  wrote:
> 
> The non-working GRASS in the Mac QGIS 3 should be fixed now.  It appears the 
> GRASS internals still don't like spaces in the path to GRASS -- this came 
> from my adding "3" to the QGIS app name with a space.  The app is now without 
> a space, "QGIS3.app".
> 
> It looks like the missing SAGA is also fixed by the rebuild (don't know why, 
> it just happened).
> 
> REMINDER: My QGIS 3 package requires the python.org Python 3.  Other 
> distributions/installations of Python are not supported (ie Homebrew, 
> Macports, Anaconda...).
> 
> -
> William Kyngesburye 
> http://www.kyngchaos.com/
> 
> [Trillian]  What are you supposed to do WITH a maniacally depressed robot?
> 
> [Marvin]  You think you have problems?  What are you supposed to do if you 
> ARE a maniacally depressed robot?  No, don't try and answer, I'm 50,000 times 
> more intelligent than you and even I don't know the answer...
> 
> - HitchHiker's Guide to the Galaxy
> 
> 
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

—







Tim Sutton

Co-founder: Kartoza
Project chair: QGIS.org

Visit http://kartoza.com  to find out about open source:

Desktop GIS programming services
Geospatial web development
GIS Training
Consulting Services

Skype: timlinux
IRC: timlinux on #qgis at freenode.net



signature.asc
Description: Message signed with OpenPGP
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Mac QGIS 3 GRASS fix

2018-03-22 Thread William Kyngesburye
The non-working GRASS in the Mac QGIS 3 should be fixed now.  It appears the 
GRASS internals still don't like spaces in the path to GRASS -- this came from 
my adding "3" to the QGIS app name with a space.  The app is now without a 
space, "QGIS3.app".

It looks like the missing SAGA is also fixed by the rebuild (don't know why, it 
just happened).

REMINDER: My QGIS 3 package requires the python.org Python 3.  Other 
distributions/installations of Python are not supported (ie Homebrew, Macports, 
Anaconda...).

-
William Kyngesburye 
http://www.kyngchaos.com/

[Trillian]  What are you supposed to do WITH a maniacally depressed robot?

[Marvin]  You think you have problems?  What are you supposed to do if you ARE 
a maniacally depressed robot?  No, don't try and answer, I'm 50,000 times more 
intelligent than you and even I don't know the answer...

- HitchHiker's Guide to the Galaxy


___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] What are "Key/value" and "List" widgets in attributes form?

2018-03-22 Thread DelazJ
Hi all,

In the vector layer properties dialog, Attributes form tab, I fail to
understand/find what enables those two widgets, hence what they are
supposed to do and how they could work.

If someone has some information, thanks for sharing.
Documenting this section is blocked by these information (see
https://github.com/qgis/QGIS-Documentation/pull/2437/files)


Thanks,
Harrissou
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] issues in QGIS Server 2,18

2018-03-22 Thread Giovanni Manghi
> Hi Giovanni,
>
> I have found the reason why QGIS Server 2.18 and probably 3 are slower
> than 2.14 in generating GeoJSON.
> I'll fix it.


much appreciated René-Luc,

thanks!

-- G --
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] [GSoC] Proposal draft - Improve GRASS integration in QGIS 3

2018-03-22 Thread Radek Novotný
 Hello everyone,

I am sending my proposal for GSoC GRASS project also to this dev mailing
list, because of this project is related to QGIS too.

Here is my proposal draft for an idea Improve GRASS integration in QGIS 3.
https://docs.google.com/document/d/1XlxRHvtaiebVIOvlq8G6Q5FuUkFig
Z8DlQbaQ-y9keQ/edit?usp=sharing

I will be happy for your feedback, comments, and suggestions.

Regards
Radek Novotny
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Error when saving Processing Script QGIS master

2018-03-22 Thread matteo
Hi Tom,

yep I have both:


def name(self):
return 'myscatters'

def displayName(self):
return self.tr('My scatter Plots')


actually when restarting QGIS I have bot errors (for name and
displayname) and now the scripts are in Processing in the scripts
provider but I have a blank group name and a blank algorithm name..

Thanks

Matteo
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] save styles in spatialite with pyqgis

2018-03-22 Thread Luigi Pirelli
???

master
https://qgis.org/api/classQgsVectorLayer.html#a740e7c805e866c54ee94f1c010b7b308
2.18
https://qgis.org/api/2.18/classQgsVectorLayer.html#a740e7c805e866c54ee94f1c010b7b308

Luigi Pirelli

**
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* GitHub: https://github.com/luipir
* Mastering QGIS 2nd Edition:
* 
https://www.packtpub.com/big-data-and-business-intelligence/mastering-qgis-second-edition
* Hire me: http://goo.gl/BYRQKg
**


On 22 March 2018 at 08:45, Lewis Villierme puputauki
 wrote:
> Hi everyone,
>
> I'm trying to save styles from my layers into spatialite. It's very easy
> with gui but I can't find out how to do it with python.
>
> I search in the qgis API (method of QgsVectorLayer) and pyspatialite  but
> can't able to do it.
>
> How the code behind the button "save styles in database" work ?
>
> ---
>
> Lewis Villierme
>
>
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Error when saving Processing Script QGIS master

2018-03-22 Thread Tom Chadwin
Have you implemented a name() method for your algorithm? The API has changed
a fair deal in 3.

Tom



-
Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon 
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Error when saving Processing Script QGIS master

2018-03-22 Thread matteo
Hi guys,

I'm testing the the Processing script editor with custom python syntax.
It works super nice, but, after the scripts is saved and I want to close
the window this error pops up:

NotImplementedError: QgsProcessingAlgorithm.name() is abstract and must
be overridden

the script is correctly saved in the folder but is not loaded in Processing.

Some hints?

Thanks to all

Matteo
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] save styles in spatialite with pyqgis

2018-03-22 Thread Lewis Villierme puputauki
 

Hi everyone, 

I'm trying to save styles from my layers into
spatialite. It's very easy with gui but I can't find out how to do it
with python. 

I search in the qgis API (method of QgsVectorLayer) and
pyspatialite but can't able to do it. 

How the code behind the button
"save styles in database" work ? 

--- 

Lewis Villierme ___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer