[Qgis-developer] Publishing Custom Python Expression Functions for QGIS

Khare Simran simran.khare at hsr.ch
Mon Apr 10 04:41:09 PDT 2017

Hi Nathan,

Thanks for your reply. I have now made a pull request to qgsexpressionsplus.

Best regards,


From: Nathan Woodrow <madmanwoo at gmail.com>
Sent: Friday, April 7, 2017 12:52:18 AM
To: Khare Simran
Cc: qgis-developer at lists.osgeo.org
Subject: Re: [Qgis-developer] Publishing Custom Python Expression Functions for QGIS

Hey Simran,

Nice work on making some custom expressions.   I'm happy to take a pull request for my expressions plus plugin to allow other people to use them.

Send me a PR with the changes and I can merge them for you.


On Wed, Apr 5, 2017 at 7:00 PM, Khare Simran <simran.khare at hsr.ch<mailto:simran.khare at hsr.ch>> wrote:


I am Simran, an intern at the Institute for Software in HSR Rapperswil. I have come up with some Custom Python Expression functions for QGIS. They are:

1. hstore_get_value(), hstore_exist(), hstore_contains_key_value() and hstore_contains_hstore() :

These functions can search for keys and values in hstore strings. They are useful for selecting features based on their tags, which are of hstore type.

2. maxofallvaluesplusone('fieldName')

Given a field name, this function returns 1 + the maximum of all values in that field. It is useful for automatically generating a unique id (for example fid) every time the user adds a new feature to a layer.

You can find the functions on Github: https://github.com/simran001/custom-expression-functions

Please let me know if I should publish these functions as part of the QGIS Resource Sharing Plugin, or if it would be a better idea to make a pull request at https://github.com/NathanW2/qgsexpressionsplus.


Best regards,


Qgis-developer mailing list
Qgis-developer at lists.osgeo.org<mailto:Qgis-developer at lists.osgeo.org>
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20170410/b0c875a9/attachment.html>

More information about the Qgis-developer mailing list