<div>Hi,</div>  <div> </div>  <div>It looks like we're on the right track towards getting an aggregated lat/lon from a non lat/lon EPSG'd table. The one issue I'm getting when running that command Mark, is an "Input geometry has unknown (-1) SRID"</div>  <div> </div>  <div>I've checked geometry_columns and the table in question does have an EPSG code assigned to it, so I dunno...</div>  <div> </div>  <div>Thoughts?</div>  <div> </div>  <div>SB </div>  <div> </div>  <div>-------</div><PRE class=data>ERROR:  Input geometry has unknown (-1) SRID</PRE>  <div></div>  <div><B>In statement:</B><BR>SELECT AsText(transform(extent(the_geom), 4326)) FROM tablex;</div>  <div> </div>  <div>Geometry_columns</div>  <div><!--StartFragment --> <TD class=data1></TD><TD class=data1 nowrap="nowrap">public </TD><TD class=data1 nowrap="nowrap">tablex 2 26917 MULTIPOLYGON</TD> </div>  <div>----------</div>  <div> </div>  <div>On Sat, 2006-08-05 at 05:03 -0700,
 Steve Benzo wrote:<BR>><I> Ok, that seems to get me a bunch of lat/lon coordinates, but how do I<BR></I>><I> translate those into an extent then? Thanks.<BR></I>><I>  <BR></I>><I> SB<BR></I><BR><BR>Hi Steve,<BR><BR>How about something like this:<BR><BR>SELECT AsText(transform(extent(the_geom), 4326) FROM geomtable;<BR><BR>Note that since extent() is an aggregate it will scan the entire table<BR>to produce the overall extent which can be slow on larger tables; you<BR>may like to consider using the estimated_extent() function if you need<BR>to do this interactively as part of an application.<BR><BR><BR>Kind regards,<BR><BR>Mark.<BR></div><p> __________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com