I get the following error when I do the round-trip.<div><br></div><div><div>ERROR:  parse error - invalid geometry</div><div>HINT:  You must specify a valid OGC WKT geometry type such as POINT, LINESTRING or POLYGON</div><div>
<br></div><div><br></div><div>\d tbl</div><div><br></div><div><div>                                        Table "tbl"</div><div>       Column       |       Type        |                                        Modifiers</div>
<div>--------------------+-------------------+-----------------------------------------------------------------------------------------</div><div> the_geom           | bytea             |</div><div><br></div></div><div><br>
</div><div><br></div><div>I was getting the error when I was using Postgresql 8.4 and postgis  1.5.1 as well. </div><div>I redeveloped the database on a new server with the latest versions in hopes it will resolve the issue.</div>
<div><br></div><br><div class="gmail_quote">On Wed, Jul 25, 2012 at 3:08 PM, Sandro Santilli <span dir="ltr"><<a href="mailto:strk@keybit.net" target="_blank">strk@keybit.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Wed, Jul 25, 2012 at 02:59:24PM +0100, Rebecca Clarke wrote:<br>
> There is no index on the table.<br>
<br>
</div>Ok.<br>
<br>
Does a round-trip (print->parse) work? :<br>
<br>
  SELECT ST_IsValid(the_geom::text::geometry) FROM tbl where id = 6052;<br>
<br>
Can you also show the result of:<br>
<br>
 \d tbl<br>
<br>
or at least the portion mentioning "the_geom"<br>
<div class="im"><br>
> postgis_full_version<br>
> -------------------------------------------------------------------------------------------------------<br>
>  POSTGIS="1.5.5" GEOS="3.2.0-CAPI-1.6.0" PROJ="Rel. 4.7.1, 23 September<br>
> 2009" LIBXML="2.7.8" USE_STATS<br>
<br>
</div>Uhm, it may have to do with the GEOS version, can you try upgrading that as well ?<br>
<div class="im"><br>
> version<br>
> -------------------------------------------------------------------------------------------------------<br>
>  PostgreSQL 9.1.4 on x86_64-unknown-linux-gnu, compiled by gcc-4.4.real<br>
> (Debian 4.4.5-8) 4.4.5, 64-bit<br>
><br>
><br>
> Until this Monday, I was using Postgresql 8.4 and postgis  1.5.1<br>
<br>
</div>Are you saying your queries were working before the upgrade ?<br>
<div class="HOEnZb"><div class="h5"><br>
--strk;<br>
<br>
  ,------o-.<br>
  |   __/  |    Delivering high quality PostGIS 2.1<br>
  |  / 2.1 |    <a href="http://strk.keybit.net" target="_blank">http://strk.keybit.net</a> - <a href="http://vizzuality.com" target="_blank">http://vizzuality.com</a><br>
  `-o------'<br>
<br>
</div></div></blockquote></div><br></div>