There is no index on the table.<div><br></div><div><div>postgis_full_version</div><div>-------------------------------------------------------------------------------------------------------</div><div> POSTGIS="1.5.5" GEOS="3.2.0-CAPI-1.6.0" PROJ="Rel. 4.7.1, 23 September 2009" LIBXML="2.7.8" USE_STATS</div>
<div><br></div><div><div>version</div><div>-------------------------------------------------------------------------------------------------------</div><div> PostgreSQL 9.1.4 on x86_64-unknown-linux-gnu, compiled by gcc-4.4.real (Debian 4.4.5-8) 4.4.5, 64-bit</div>
</div><div><br></div><div><br></div><div>Until this Monday, I was using Postgresql 8.4 and postgis 1.5.1 </div><div><br></div><br><div class="gmail_quote">On Wed, Jul 25, 2012 at 2:54 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:27:14PM +0100, Rebecca Clarke wrote:<br>
> Your code below works for me also. It's obviously just my data.<br>
><br>
> the field is data type bytea:<br>
><br>
> \x010300000000000000<br>
<br>
</div>Looks like HEXWKB to me, for "POLYGON EMPTY".<br>
What makes you think it is "bytea" ?<br>
<div class="im"><br>
> I ran:<br>
><br>
> select st_astext(the_geom) from tbl where id = 6052<br>
><br>
> and it returns: "POLYGON EMPTY"<br>
><br>
> When I run the st_isvalid on it:<br>
><br>
> select st_isvalid(the_geom) from tbl where id = 6052<br>
> or<br>
> select st_isvalid(the_geom::geometry) from tbl where id = 6052<br>
><br>
> It throws the segmentation error.<br>
><br>
> I just upgrade to postgis 1.5.5 and this made no difference.<br>
<br>
</div>Can you show the output of "SELECT postgis_full_version()"<br>
_and_ the output of "SELECT version()" ?<br>
Is there an index on "tbl" ?<br>
<br>
--strk;<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
</div></div></blockquote></div><br></div>