<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div style="font-family: Verdana, Arial, Helvetica, sans-serif;">Dear Maruyama,</div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;"><br></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;">The issue is common in lower versions of PostgreSQL, specifically with regard to how geometry data is transported from PostgreSQL to QGIS/STDM.</div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;"><br></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;">You will need to change one PostgreSQL setting in order to resolve the issue, the steps are as follows:</div><div><ol><li><font face="Verdana, Arial, Helvetica, sans-serif">Browse to your PostgreSQL installation in Windows i.e <i>C:\Program Files\PostgreSQL\9.x</i> where x is the minor version of PostgreSQL. </font></li><li><font face="Verdana, Arial, Helvetica, sans-serif">Open the <i>data</i> folder and locate the file named <i>postgresql.conf</i>. Open this file using any text editor such as Notepad.</font></li><li><font face="Verdana, Arial, Helvetica, sans-serif">Scroll down til you find the following entry <i>#bytea_output = 'hex'.</i></font></li><li><font face="Verdana, Arial, Helvetica, sans-serif">Delete the pound sign (#) before <i>bytea_output</i> and replace <i>hex</i> with <i>escape</i> (ensure <i>escape</i> is enclosed by single quotes). Hence, the resulting line should read </font><i><b>bytea_output = 'escape'</b></i></li><li>Save the file and close.</li><li>Click on the Windows Start button and click on <i>Run...</i></li><li>In the Run dialog, type <i>services.msc</i> in order to load the list of currently installed Windows services.</li><li>Scroll down til you locate <i>postgresql-9.x</i> (where <i>x</i> is the PostgreSQL minor version). Right click on this item and select <i>Restart</i>.</li><li>Once the PostgreSQL service has successfully restarted, restart QGIS and create the social tenure relationship. It should now work as expected.</li></ol><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" style="font-family: Verdana, Arial, Helvetica, sans-serif;"><div><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><font size="2" style="font-family: verdana, helvetica, arial, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; font-size: small;">Regards,</font></font></div><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><font size="2" style="font-family: verdana, helvetica, arial, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; font-size: small;"><div><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><font size="2" style="font-family: verdana, helvetica, arial, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; font-size: small;"><br></font></font></div>John Gitau<br>Land and GLTN Unit, </font><span style="font-family: verdana, helvetica, arial, sans-serif; font-size: small;">Urban Legislation, Land and Governance Branch | </span><span style="font-family: verdana, helvetica, arial, sans-serif; font-size: small;">UN-HABITAT</span><div><div><font size="2"><font face="verdana, helvetica, arial, sans-serif">NOF Block 3 Level 3 South Wing I </font></font><font size="2" style="font-family: verdana, helvetica, arial, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; font-size: small;">P.O. Box 30030-00100 </font><span style="font-family: verdana, helvetica, arial, sans-serif; font-size: small;">Nairobi, </span><span style="font-family: verdana, helvetica, arial, sans-serif; font-size: small;">Kenya</span></div><div><font size="2" style="font-family: verdana, helvetica, arial, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; font-size: small;">Tel: + 254 20 762 3032 | +254 (0)722 945 556<br>Website:<a href="http://www.unhabitat.org" target="blank">www</a><a href="http://www.unhabitat.org" target="blank">.unhabitat.org</a> | Partners' website:<a href="http://www.gltn.net" target="blank">www</a><a href="http://www.gltn.net" target="blank">.gltn.net</a></font></div></div></font></font></div><br><br><font color="#990099" style="font-family: Verdana, Arial, Helvetica, sans-serif;">-----"STDM-user" <stdm-user-bounces@lists.osgeo.org> wrote: -----</font><div style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-left: 5px;"><div style="padding-right:0px;padding-left:5px;border-left:solid black 2px;">To: <stdm-user@lists.osgeo.org><br>From: "maruyama" <idi05@idi.or.jp><br>Sent by: "STDM-user" <stdm-user-bounces@lists.osgeo.org><br>Date: 10/06/2016 08:38AM<br>Subject: [STDM-user] help: STDM stops when I try to set up "New Social     Tenure relationship"<br><br><!--Notes ACF <meta http-equiv=Content-Type content="text/html; charset=utf8">--><!--[if gte mso 9]><xml> <o:shapedefaults v:ext="edit" spidmax="1026"> <v:textbox inset="5.85pt,.7pt,5.85pt,.7pt" /> </o:shapedefaults></xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext="edit"> <o:idmap v:ext="edit" data="1" /> </o:shapelayout></xml><![endif]--><div class="WordSection1"><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt">Dear All,<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt"><o:p> </o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt">I have just installed STDM 1.1 with QGIS 2.8.3.  I encountered the following problem.<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt">OS I am using is Windows 10 pro<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt"><o:p> </o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt">When I came to set up “NEW Social Tenure Relationship” in page 67 of the STDM user manual, inputting “WABALE” worked properly.<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt">But after that , when I put “1000” for “Select the land or building information”, the message in the attached file appeared.<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt"><o:p> </o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt">Before I came to this part, I imported “sample data.shp”.  Because if not, nothing happen when I put anything at step 7 in page 67.<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt"><o:p> </o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt">I look forward to having any help from you.<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt"><o:p> </o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt">With best regards,<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt"><o:p> </o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt">Maruyama<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt"><o:p> </o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt"><o:p> </o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt"><o:p> </o:p></span></p></div> <div><font face="Courier New,Courier,monospace" size="3">_______________________________________________<br>STDM-user mailing list<br>STDM-user@lists.osgeo.org<br><a href="http://lists.osgeo.org/mailman/listinfo/stdm-user">http://lists.osgeo.org/mailman/listinfo/stdm-user</a><br></font></div></stdm-user-bounces@lists.osgeo.org></idi05@idi.or.jp></div><br><br>[attachment "NEWsocial.png" removed by John Gitau/UNHABITAT/NBO/UNO]</div><div></div></font>