<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi all,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’m using Quantum GIS 1.6.0, <o:p></o:p></p><p class=MsoNormal>Postgresql 9.0 and <o:p></o:p></p><p class=MsoNormal>Postgis 2.0 (dev version)<i><o:p></o:p></i></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>On Windows 7.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’m having trouble adding a Postgis layer to QGIS. I loaded a shapefile into my database separately using the shapefile loader and that seemed to woork fine. However when I try to bring it into QGIS I get the following error:<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><i><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>1 cursor states lost.<o:p></o:p></span></i></p><p class=MsoNormal style='margin-left:.5in'><i><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>SQL: declare qgisf1 binary cursor for select "gid",asbinary("geom",'NDR') from "public"."wardscleanattributes" where "geom" && setsrid('BOX3D(-1.2547169811320755 -1.0000000000000000, 1.2547169811320755 1.0000000000000000)'::box3d,-1)<o:p></o:p></span></i></p><p class=MsoNormal style='margin-left:.5in'><i><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>Result: 7 (ERROR: function asbinary(geometry, unknown) does not exist<o:p></o:p></span></i></p><p class=MsoNormal style='margin-left:.5in'><i><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>LINE 1: declare qgisf1 binary cursor for select "gid",asbinary("geom...<o:p></o:p></span></i></p><p class=MsoNormal style='margin-left:.5in'><i><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>^<o:p></o:p></span></i></p><p class=MsoNormal style='margin-left:.5in'><i><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>HINT: No function matches the given name and argument types. You might need to add explicit type casts.<o:p></o:p></span></i></p><p class=MsoNormal style='margin-left:.5in'><i><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>)<o:p></o:p></span></i></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>The layer has a gist index, as well as a serial, primary key column.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>The same procedure used to work fine with<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>QGIS 1.0.2 – postgresql 8.3 and postgis 1.5<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>Help?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>Vishal<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>