<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Yes, the connection resource object goes invalid and I need to create a
new one. I've also experienced server shut downs caused by this
problem. Funny, I added eactly the same solution drop and reconnect
within a tryCatch block. I'm guessing this is a server side/GEOS issue
because it tends to happen in very specific conditions, in my case when
geoproccessing is very intensive. Nevertheless, I have no real
knowledge on GEOS internals to figure this out. <br>
<br>
<blockquote
cite="mid:%3C589F4F6707B81B4A8543B9C32628684FBFE288@zeus.prte%3E"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"Myriad Pro";
panose-1:2 11 5 3 3 4 3 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","serif";
color:black;}
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:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Myriad Pro","sans-serif";
color:#0F243E;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Myriad Pro","sans-serif";
color:#0F243E;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
-->
</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]-->
<div class="Section1">
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: "Myriad Pro","sans-serif"; color: rgb(15, 36, 62);"
lang="EN-US">Did you also see that the connection is no longer valid
from
that point on and you need to re-connect? I mean, even if you wait and
try
again, it won’t work. I have to resort in restarting the app but not I
added
code to try to drop and re-connect. Haven’t hit the prob yet to confirm
this
solves it.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: "Myriad Pro","sans-serif"; color: rgb(15, 36, 62);"
lang="EN-US"><o:p> </o:p></span></p>
<div>
<div
style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">
<p class="MsoNormal"><b><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;"
lang="EN-US">From:</span></b><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;"
lang="EN-US">
<a class="moz-txt-link-abbreviated" href="mailto:postgis-users-bounces@postgis.refractions.net">postgis-users-bounces@postgis.refractions.net</a>
[<a class="moz-txt-link-freetext" href="mailto:postgis-users-bounces@postgis.refractions.net">mailto:postgis-users-bounces@postgis.refractions.net</a>] <b>On Behalf Of
</b>"Joao
G."<br>
<b>Sent:</b> Sunday, December 13, 2009 11:18 PM<br>
<b>To:</b> PostGIS Users Discussion<br>
<b>Subject:</b> [postgis-users] Weird GEOS problem<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I also found this problem when issuing many
queries per
minute or when performing multiple/time demanding distance calculations
between
complex (multi)geometries. I use XP pro with R (RPostgreSQL lib) to
connect to
PostgreSQL.<br>
<br>
George Vlahakis escreveu: <o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: "Myriad Pro","sans-serif"; color: rgb(15, 36, 62);"
lang="EN-US">Ok thanks, I used to use npgsql but for spatial queries
and
binary geometry retrieval I found it the opposite. It has been some
time, but I
will try it.</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: "Myriad Pro","sans-serif"; color: rgb(15, 36, 62);"
lang="EN-US"> </span><o:p></o:p></p>
<div
style="border-style: solid none none; border-color: -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">
<p class="MsoNormal"><b><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif";"
lang="EN-US">From:</span></b><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif";"
lang="EN-US"> <a moz-do-not-send="true"
href="mailto:postgis-users-bounces@postgis.refractions.net">postgis-users-bounces@postgis.refractions.net</a>
[<a moz-do-not-send="true"
href="mailto:postgis-users-bounces@postgis.refractions.net">mailto:postgis-users-bounces@postgis.refractions.net</a>]
<b>On Behalf Of </b>Emilie Laffray<br>
<b>Sent:</b> Friday, December 11, 2009 1:13 PM<br>
<b>To:</b> PostGIS Users Discussion<br>
<b>Subject:</b> Re: [postgis-users] Weird GEOS problem</span><o:p></o:p></p>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"> <o:p></o:p></p>
<div>
<p class="MsoNormal">2009/12/11 George Vlahakis <<a
moz-do-not-send="true" href="mailto:g.vlahakis@telenavis.com">g.vlahakis@telenavis.com</a>><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size: 10pt;" lang="EN-US">Hi
all,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;" lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;" lang="EN-US">Probably
nobody
has seen this, but on a particular machine (Win XP) every 2-3 hours or
so I am
getting the following error:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;" lang="EN-US"> </span><o:p></o:p></p>
<p><span lang="EN-US">System.Data.Odbc.OdbcException: ERROR [XX000]
ERROR: Error
creating GEOS Coordinate Sequence; Error while executing the query</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;" lang="EN-US"> </span><o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal">I might be wrong but you are using .NET? <br>
If it is indeed the case, I would suggest dropping the use of odbc, and
use
npgsql which provides a direct connection to the database. It should
give you
better performance, and maybe extra stability.<br>
<br>
Emilie Laffray<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</blockquote>
<br>
</body>
</html>