<div dir="ltr">Hey Simran,<div><br></div><div>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.  </div><div><br></div><div>Send me a PR with the changes and I can merge them for you.</div><div><br></div><div>Regards,<br>Nathan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 5, 2017 at 7:00 PM, Khare Simran <span dir="ltr"><<a href="mailto:simran.khare@hsr.ch" target="_blank">simran.khare@hsr.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div id="m_5482487043685868668divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div class="m_5482487043685868668_rp_h">
<div class="m_5482487043685868668ms-font-color-neutralPrimary m_5482487043685868668ms-font-xl m_5482487043685868668ms-fwt-r m_5482487043685868668_rp_i"><span style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif">Hi,</span></div>
<div class="m_5482487043685868668ms-font-color-neutralPrimary m_5482487043685868668ms-font-xl m_5482487043685868668ms-fwt-r m_5482487043685868668_rp_i">
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">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: </p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><br>
</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><span style="font-size:12pt"><b>1. </b></span><span style="font-size:12pt"><b>hstore_get_value(), hstore_exist(), hstore_<wbr>contains_key_value() and hstore_contains_hstore() :</b></span></p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><span style="font-size:12pt"></span></p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><span style="font-size:12pt">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.</span></p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><span style="font-size:12pt">  </span></p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><span style="font-size:12pt"><b>2. maxofallvaluesplusone('<wbr>fieldName')</b></span></p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><span style="font-size:12pt">Given a field name, t</span><span style="font-size:12pt">his function returns 1 + the maximum of all values in that field. It is useful for automatically</span><span style="font-size:12pt"> generating
 a </span><span style="font-size:12pt">unique id (for example fid) every time the user adds a new feature to a layer.</span><br>
</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><span style="font-size:12pt"><br>
</span></p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><span style="font-size:12pt">You can find the functions on Github: <a href="https://github.com/simran001/custom-expression-functions" class="m_5482487043685868668x_OWAAutoLink" id="m_5482487043685868668LPlnk376100" target="_blank">https://github.com/<wbr>simran001/custom-expression-<wbr>functions</a></span><br>
</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><br>
</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><span style="font-size:12pt">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 <a href="https://github.com/NathanW2/qgsexpressionsplus" class="m_5482487043685868668x_OWAAutoLink" id="m_5482487043685868668LPlnk365561" target="_blank">https://github.com/<wbr>NathanW2/qgsexpressionsplus</a>.</span><br>
</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><br>
</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">Thanks!</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><br>
</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">Best regards,</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">Simran</p>
<div><br>
</div>
<br>
</div>
</div>
<p></p>
</div>
</div>

<br>______________________________<wbr>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br></blockquote></div><br></div>