[Qgis-developer] Saving expressions

Bob and Deb bobdebm at gmail.com
Fri Oct 19 17:57:37 PDT 2012


How about saving expressions in a "Clipbook"?  An expression can be pasted
into a "Clipbook" which would also bring up a dialog to enter a name for
the expression.  Several "Clipbooks" can be created in order to organize
these saved expressions.  This would be handy in the Python console too.
Btw, this how the text editor called Textpad works.
On Oct 18, 2012 11:21 PM, "Andreas Neumann" <a.neumann at carto.net> wrote:

> Hi Paolo,
>
> What do you expect from the loading? Automatic application to the field
> calculator (sounds scary to me), or just the ability to choose from past
> expressions?
>
> If the latter, then maybe a central expression storage (per user) would
> make more sense than a per layer expression store. Because you may want to
> reuse the same expression on another similar layer, even in different
> projects.
>
> To me the expressions do not have a natural 1:1 match to a layer like the
> .prj or the .qml file has.
>
> But I can see value in a central storage of expressions used in the past,
> regardless of layer and QGIS project. But it would just be used as a way to
> load and save expressions as templates to start from and not an automatic
> application to some calculation or the label engines. These settings should
> be better stored in the project itself rather than in a separate file.
>
> Do we agree on that or did I misunderstand you?
>
> Andreas
>
> On Fri, 19 Oct 2012 07:58:57 +0200, Paolo Cavallini wrote:
>
>> Il 19/10/2012 07:51, Andreas Neumann ha scritto:
>>
>>> For me personally, copy/paste works fine. No need for load and save.
>>>
>>> I do not fully understand the use case for autoloading (association
>>> with a layer). Can you explain why this is desirable? Do you really
>>> always want the same expression in all projects for one particular layer?
>>>
>> I think users will fin useful to have their expression per layer, so
>> they can refresh a field with the same calculation, without the need to
>> rememberwhich formula they used (very stupi example: refreshing the AREA
>> field). In this way, a DBF can be used almost like a spreadsheet.
>> For advanced users it is probably useless, for newbies it can save a
>> loto of time, effort and frustration remembering which expression they
>> used, what is the exact syntax, where (if) they copied the expression
>> somewhere, etc.
>>
>> All the best.
>>
>
> --
> --
> Andreas Neumann
> Böschacherstrasse 10A
> 8624 Grüt (Gossau ZH)
> Switzerland
> ______________________________**_________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/**mailman/listinfo/qgis-**developer<http://lists.osgeo.org/mailman/listinfo/qgis-developer>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20121019/79fa0a04/attachment-0001.html>


More information about the Qgis-developer mailing list