<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div class="_rp_h" tabindex="0">
<div class="ms-font-color-neutralPrimary ms-font-xl ms-fwt-r _rp_i"><span style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif;">Hi,</span></div>
<div class="ms-font-color-neutralPrimary ms-font-xl ms-fwt-r _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_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('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" target="_blank" class="x_OWAAutoLink" id="LPlnk376100" previewremoved="true">https://github.com/simran001/custom-expression-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" target="_blank" class="x_OWAAutoLink" id="LPlnk365561" previewremoved="true">https://github.com/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>
</body>
</html>