The data was originally in a MDB as an OLE Object. I used GDAL to import the data. (If this is of any use).<div><br><br><div class="gmail_quote">On Wed, Jul 25, 2012 at 2:59 PM, Rebecca Clarke <span dir="ltr"><<a href="mailto:r.clarke83@gmail.com" target="_blank">r.clarke83@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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><div class="h5"><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>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><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><div>_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net" target="_blank">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></div></div>
</blockquote></div><br></div>