Stephen,<br><br>To add to what Paul said, you can also put a constraint on your table with the check to make sure no values outside of the correct range make it into the table in the first place.<br><br>David<br><br><div class="gmail_quote">
On Sun, Apr 20, 2008 at 5:20 PM, Paul Ramsey &lt;<a href="mailto:pramsey@cleverelephant.ca">pramsey@cleverelephant.ca</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
This?<br>
<br>
select id from thetable where st_xmax(the_geom) &gt; 180 or<br>
st_xmin(the_geom) &lt; -180 or st_ymax &gt; 90 or st_ymin &lt; -90;<br>
<font color="#888888"><br>
P<br>
</font><div><div></div><div class="Wj3C7c"><br>
On Sun, Apr 20, 2008 at 12:44 AM, Stephen Davies &lt;<a href="mailto:sdc@sdc.com.au">sdc@sdc.com.au</a>&gt; wrote:<br>
&gt; One of my users has been entering garbage lat/long coordinates for geometries<br>
&gt; &nbsp;(SRID 4283). eg POINT(140.6365441 -304.409527) instead of<br>
&gt; &nbsp;POINT(140.6365441 -34.409527)<br>
&gt;<br>
&gt; &nbsp;PostGIS does not object to this but I cannot see what the value is interpreted<br>
&gt; &nbsp;to mean.<br>
&gt; &nbsp;Is there a simple way to test for such entries?<br>
&gt;<br>
&gt; &nbsp;Cheers and thanks,<br>
&gt; &nbsp;Stephen Davies<br>
&gt; &nbsp;--<br>
&gt; &nbsp;========================================================================<br>
&gt; &nbsp;This email is for the person(s) identified above, and is confidential to<br>
&gt; &nbsp;the sender and the person(s). &nbsp;No one else is authorised to use or<br>
&gt; &nbsp;disseminate this email or its contents.<br>
&gt;<br>
&gt; &nbsp;Stephen Davies Consulting &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Voice: 08-8177 1595<br>
&gt; &nbsp;Adelaide, South Australia. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Fax: 08-8177 0133<br>
&gt; &nbsp;Computing &amp; Network solutions. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Mobile:0403 0405 83<br>
&gt; &nbsp;_______________________________________________<br>
&gt; &nbsp;postgis-users mailing list<br>
&gt; &nbsp;<a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
&gt; &nbsp;<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
&gt;<br>
_______________________________________________<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><br clear="all"><br>-- <br>************************************<br>David William Bitner