Re: [QGIS-Developer] R: refactor fields doesn't accept expressions

2017-09-21 Thread Andreas Neumann

Hi Niccolo,

Perhaps you can open separate issues.

Thanks,

Andreas


On 22.09.2017 02:15, Niccolò Marchi wrote:


Hi Andreas,

unfortunately I never used it in this way (with formulae) before: all 
the previous times I was simply adding empty fields or deleting 
useless ones.


A further minor issue related to the alg: when selecting the field 
type, “double” and “data” are repeated twice.


An improvement could be also adding the NULL value by default when a 
field is created. Does it make sense?


Should these notes be added to your issue or separated into other tickets?

All the best,

Niccolò

*Da: *Andreas Neumann 
*Inviato: *giovedì 21 settembre 2017 00:34
*A: *Niccolò Marchi 
*Cc: *qgis-developer@lists.osgeo.org 


*Oggetto: *Re: [QGIS-Developer] refactor fields doesn't accept expressions

Hi Niccolo,

I ran into the exact same problem yesterday. I opened an issue:

https://issues.qgis.org/issues/17170

Are you sure that this worked in earlier QGIS versions? It would help 
to know that.


Andreas

On 2017-09-21 00:58, Niccolò Marchi wrote:

Hi all,

I'm using 'refactor fields' in the modeler.

Once I've loaded the fields from a shp and then added some new
ones, I'm not able to add a formula (e.g. 'to_int(substr("MM_GG",
1,2))' ) to the latter ones because it's recognised as wrong in
the Expression dialog. Furthermore, the Expression dialog doesn't
recognise any field in the label 'Fields and values' and simply
shows 'NULL'.

BTW, if I write the formula directly in the box without using the
expression dialog and then run the model, it works smoothly.

Are those intended behaviours?

i just updated from 2.18.11 to .13 .

all the best,

Niccolò

___
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

[QGIS-Developer] Label Text Type case option 'Capitatlize first letter' ONLY capitalizes first letter

2017-09-21 Thread Richard Duivenvoorde

Hi Devs,

In the Label properties/Text/Type case there is an option 'Capitalize
first letter'.

Having a set with text like
'WORD' and 'text'
I thought I would end up with
'Word' and 'Text'
... but it appears that it really ONLY capitalizes the first letter and
does not touch the rest of the string, so becomes
'WORD' and 'Text'

Looking at
https://github.com/qgis/QGIS/blob/master/src/core/qgsstringutils.cpp#L38

And
https://github.com/qgis/QGIS
/blob/master/src/core/qgsstringutils.h#L177
it gives the answer:
//!< Convert just the first letter of each word to uppercase, leave the
rest untouched

So Question:
- isn't a Type case function which first does all lowercase and THEN
convert the first letter more helpfull?

- can I add it (looks easy)?

- how would I call it: 'Camelcase' ?

- is current 'Capitalize first letter' actually helpfull or is
'CamelCase' actually what it should be?

Regards,

Richard Duivenvoorde


___
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] Plugin [609] Temporal/Spectral Profile Tool approval notification.

2017-09-21 Thread noreply

Plugin Temporal/Spectral Profile Tool approval by pcav.
The plugin version "[609] Temporal/Spectral Profile Tool 1.2.2" is now approved
Link: http://plugins.qgis.org/plugins/temporalprofiletool/
___
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] Plugin [1048] Another DXF Importer / DXF2Shape Converter approval notification.

2017-09-21 Thread noreply

Plugin Another DXF Importer / DXF2Shape Converter approval by pcav.
The plugin version "[1048] Another DXF Importer / DXF2Shape Converter 0.90" is 
now approved
Link: http://plugins.qgis.org/plugins/AnotherDXF2Shape/
___
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] project properties menu item: move it?

2017-09-21 Thread Alessandro Pasotti
On Thu, Sep 21, 2017 at 12:52 PM, Andreas Neumann 
wrote:

> I would prefer it as well, if Linux/KDE would have it in the project menu.
>
> I had a brief look at it with Nyall in Nodebo - somehow someone (some
> years back) claimed, that KDE had it in the HIG (human interface guideline)
> that everything settings related should be in the settings menu.
>
> But I think it creates more harm than that it helps.
>

100% agreed: I think that was meant for "application" settings, not for
project settings.



Andreas
>
> On 2017-09-21 12:35, Nathan Woodrow wrote:
>
> Please move it for every OS.  There is no reason this needs to be in the
> settings menu for different systems.
>
> On Thu, Sep 21, 2017 at 8:03 PM, Andreas Neumann 
> wrote:
>
>> Hi Alessandro,
>>
>> It depends on the OS.
>>
>> As to my knowledge, Linux with KDE is the only platform where the project
>> properties are in the settings menu, whereas Windows, OSX and Linux with
>> Gnome all have it in the project menu.
>>
>> When I teach QGIS I always have to say people that on my machine
>> (Linux/KDE) the project properties are in the settings menu, while on 99%
>> of the other machines it is in the project menu.
>>
>> It is indeeed VERY, VERY annoying, that KDE behaves different in this
>> respect.
>>
>> Andreas
>>
>>
>> On 2017-09-21 11:57, Alessandro Pasotti wrote:
>>
>>
>> What do you think about moving the project properties menu item from the
>> settings menu to the project menu?
>>
>>
>>
>> --
>> Alessandro Pasotti
>> w3:   www.itopen.it
>> ___
>> 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
>
>
>


-- 
Alessandro Pasotti
w3:   www.itopen.it
___
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] project properties menu item: move it?

2017-09-21 Thread Andreas Neumann
I would prefer it as well, if Linux/KDE would have it in the project
menu. 

I had a brief look at it with Nyall in Nodebo - somehow someone (some
years back) claimed, that KDE had it in the HIG (human interface
guideline) that everything settings related should be in the settings
menu. 

But I think it creates more harm than that it helps. 

Andreas 

On 2017-09-21 12:35, Nathan Woodrow wrote:

> Please move it for every OS.  There is no reason this needs to be in the 
> settings menu for different systems. 
> 
> On Thu, Sep 21, 2017 at 8:03 PM, Andreas Neumann  wrote:
> 
> Hi Alessandro, 
> 
> It depends on the OS. 
> 
> As to my knowledge, Linux with KDE is the only platform where the project 
> properties are in the settings menu, whereas Windows, OSX and Linux with 
> Gnome all have it in the project menu. 
> 
> When I teach QGIS I always have to say people that on my machine (Linux/KDE) 
> the project properties are in the settings menu, while on 99% of the other 
> machines it is in the project menu. 
> 
> It is indeeed VERY, VERY annoying, that KDE behaves different in this 
> respect. 
> 
> Andreas
> 
> On 2017-09-21 11:57, Alessandro Pasotti wrote: 
> 
> What do you think about moving the project properties menu item from the 
> settings menu to the project menu?
> 
> -- 
> Alessandro Pasotti
> w3:   www.itopen.it [1] 
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer [2]
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer [2] 
> 
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer [2]
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer [2]

 

Links:
--
[1] http://www.itopen.it
[2] 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] project properties menu item: move it?

2017-09-21 Thread Nathan Woodrow
Please move it for every OS.  There is no reason this needs to be in the
settings menu for different systems.

On Thu, Sep 21, 2017 at 8:03 PM, Andreas Neumann 
wrote:

> Hi Alessandro,
>
> It depends on the OS.
>
> As to my knowledge, Linux with KDE is the only platform where the project
> properties are in the settings menu, whereas Windows, OSX and Linux with
> Gnome all have it in the project menu.
>
> When I teach QGIS I always have to say people that on my machine
> (Linux/KDE) the project properties are in the settings menu, while on 99%
> of the other machines it is in the project menu.
>
> It is indeeed VERY, VERY annoying, that KDE behaves different in this
> respect.
>
> Andreas
>
>
> On 2017-09-21 11:57, Alessandro Pasotti wrote:
>
>
> What do you think about moving the project properties menu item from the
> settings menu to the project menu?
>
>
>
> --
> Alessandro Pasotti
> w3:   www.itopen.it
>
> ___
> 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
>
___
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] project properties menu item: move it?

2017-09-21 Thread Andreas Neumann
Hi Alessandro, 

It depends on the OS. 

As to my knowledge, Linux with KDE is the only platform where the
project properties are in the settings menu, whereas Windows, OSX and
Linux with Gnome all have it in the project menu. 

When I teach QGIS I always have to say people that on my machine
(Linux/KDE) the project properties are in the settings menu, while on
99% of the other machines it is in the project menu. 

It is indeeed VERY, VERY annoying, that KDE behaves different in this
respect. 

Andreas 

On 2017-09-21 11:57, Alessandro Pasotti wrote:

> What do you think about moving the project properties menu item from the 
> settings menu to the project menu?
> 
> -- 
> Alessandro Pasotti
> w3:   www.itopen.it [1] 
> ___
> 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

 

Links:
--
[1] http://www.itopen.it___
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] project properties menu item: move it?

2017-09-21 Thread Alessandro Pasotti
What do you think about moving the project properties menu item from the
settings menu to the project menu?



-- 
Alessandro Pasotti
w3:   www.itopen.it
___
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] refactor fields doesn't accept expressions

2017-09-21 Thread Andreas Neumann
Hi Niccolo, 

I ran into the exact same problem yesterday. I opened an issue: 

https://issues.qgis.org/issues/17170 

Are you sure that this worked in earlier QGIS versions? It would help to
know that. 

Andreas 

On 2017-09-21 00:58, Niccolò Marchi wrote:

> Hi all, 
> 
> I'm using 'refactor fields' in the modeler. 
> 
> Once I've loaded the fields from a shp and then added some new ones, I'm not 
> able to add a formula (e.g. 'to_int(substr("MM_GG", 1,2))' ) to the latter 
> ones because it's recognised as wrong in the Expression dialog. Furthermore, 
> the Expression dialog doesn't recognise any field in the label 'Fields and 
> values' and simply shows 'NULL'. 
> 
> BTW, if I write the formula directly in the box without using the expression 
> dialog and then run the model, it works smoothly. 
> 
> Are those intended behaviours? 
> 
> i just updated from 2.18.11 to .13 . 
> 
> all the best, 
> 
> Niccolò 
> ___
> 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

[QGIS-Developer] refactor fields doesn't accept expressions

2017-09-21 Thread Niccolò Marchi
Hi all,
I’m using ‘refactor fields’ in the modeler.

Once I’ve loaded the fields from a shp and then added some new ones, I’m not 
able to add a formula (e.g. ‘to_int(substr("MM_GG", 1,2))’ ) to the latter ones 
because it’s recognised as wrong in the Expression dialog. Furthermore, the 
Expression dialog doesn’t recognise any field in the label ‘Fields and values’ 
and simply shows ‘NULL’.
BTW, if I write the formula directly in the box without using the expression 
dialog and then run the model, it works smoothly.
Are those intended behaviours?

i just updated from 2.18.11 to .13 .

all the best,

Niccolò
___
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] Plugin [407] geopunt4Qgis approval notification.

2017-09-21 Thread noreply

Plugin geopunt4Qgis approval by pcav.
The plugin version "[407] geopunt4Qgis 1.7.0" is now approved
Link: http://plugins.qgis.org/plugins/geopunt4Qgis/
___
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] Plugin [1330] Land Degradation Monitoring Toolbox approval notification.

2017-09-21 Thread noreply

Plugin Land Degradation Monitoring Toolbox approval by pcav.
The plugin version "[1330] Land Degradation Monitoring Toolbox 0.2" is now 
approved
Link: http://plugins.qgis.org/plugins/LDMP/
___
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] Plugin [1305] Calidad-CAR approval notification.

2017-09-21 Thread noreply

Plugin Calidad-CAR approval by pcav.
The plugin version "[1305] Calidad-CAR 0.7" is now approved
Link: http://plugins.qgis.org/plugins/CalidadCAR/
___
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