<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:st1="urn:schemas-microsoft-com:office:smarttags" 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 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Comic Sans MS";
panose-1:3 15 7 2 3 3 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
p
{mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman";}
span.StileMessaggioDiPostaElettronica17
{mso-style-type:personal-compose;
font-family:"Comic Sans MS";
color:windowtext;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
@page Section1
{size:595.3pt 841.9pt;
margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=IT link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face="Comic Sans MS"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Comic Sans MS"'>I am trying to use the
ODBC driver to connect to PostgreSQL 8.1.2/PostGIS 1.0.4<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Comic Sans MS"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Comic Sans MS"'>I have a table
‘fabbricati’ with the geometry field ‘the_geom’
containing MULTIPOLYGON geometries.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Comic Sans MS"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Comic Sans MS"'>When I try to make a
select from this table I obtain the following results:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Comic Sans MS"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Comic Sans MS"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Comic Sans MS"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Comic Sans MS"'>select the_geom from
fabbricati -->>> result: 233 records while the total
records are 7853<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Comic Sans MS"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Comic Sans MS"'>select asbinary(the_geom)
from fabbricati -->>> result: 7853 records (correct)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Comic Sans MS"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Comic Sans MS"'>select astext(the_geom)
from fabbricati -->>> result: 764 records all with NULL
values while the total records are 7853<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Comic Sans MS"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Comic Sans MS"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Comic Sans MS"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Comic Sans MS"'>It’s really
strange!!<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Comic Sans MS"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Comic Sans MS"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Comic Sans MS"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Comic Sans MS"'>Someone can help me?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Comic Sans MS"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Comic Sans MS"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Comic Sans MS"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Comic Sans MS"'><o:p> </o:p></span></font></p>
<div>
<div>
<div>
<p class=MsoNormal><st1:PersonName ProductID="Emanuele Mambelli" w:st="on"><b><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;font-weight:
bold'>Emanuele Mambelli</span></font></b></st1:PersonName><o:p></o:p></p>
<table class=MsoNormalTable border=0 cellpadding=0 width=336 style='width:252.0pt'>
<tr>
<td width=332 valign=top style='width:249.0pt;padding:.75pt .75pt .75pt .75pt'>
<p style='mso-margin-top-alt:1.5pt;margin-right:0cm;margin-bottom:1.5pt;
margin-left:0cm'><font size=1 face=Arial><span style='font-size:7.5pt;
font-family:Arial'><img width=23 height=15 id="_x0000_i1031"
src="cid:image001.gif@01C67916.02926DB0" align=baseline border=0></span></font><font
size=2 face="Comic Sans MS"><span style='font-size:10.0pt;font-family:"Comic Sans MS"'> </span></font><font
size=1 face=Arial><span style='font-size:7.5pt;font-family:Arial'><a
href="mailto:lele.mambelli@libero.it"
title="mailto:lele.mambelli@gruppoatlantis.com">lele.mambelli@libero.it</a></span></font><o:p></o:p></p>
</td>
</tr>
</table>
</div>
<table class=MsoNormalTable border=0 cellpadding=0 width=336 style='width:252.0pt'>
<tr>
<td width=332 style='width:249.0pt;padding:.75pt .75pt .75pt .75pt'>
<p align=center style='mso-margin-top-alt:3.75pt;margin-right:0cm;margin-bottom:
0cm;margin-left:0cm;margin-bottom:.0001pt;text-align:center'><i><font size=1
face=Arial><span style='font-size:7.5pt;font-family:Arial;font-style:italic'>Il
poeta cerca solo di mettere la testa in cielo. <br>
E' il logico che cerca di mettere il cielo dentro la propria testa. <br>
Ed e' la sua testa che si spacca.</span></font></i><font size=1 face=Arial><span
style='font-size:7.5pt;font-family:Arial'> <br>
G.K. Chesterton</span></font><o:p></o:p></p>
</td>
</tr>
</table>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> </span><o:p></o:p></font></p>
</div>
</div>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>