a spatial table's bounding box

From: Asli Akarsakarya <asliakar(at)yahoo(dot)com>
To: "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org>
Subject: a spatial table's bounding box
Date: 2011-09-22 06:04:50
Message-ID: 1316671490.39010.YahooMailNeo@web45109.mail.sp1.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hello,  My question is a basic one for postGIS, I believe. It should have a primitive answer somewhere, but I don't have it.  I want to get the extensions of  spatial table. Say that there is a spatial table named 'roads', and a some road geometry inside. I want to fetch the bounding box (envelope or extension) for that table, that means for all the roads that it has.  According the OGC specification, this should be defined in the "geometry_columns" table. As four columns, "minX", "minY", "maxX" and "maxY". But I couldn't find it anywhere on my postgis. Yet. From which table/view? With what SQL? Thanks for your answers, Aslı.

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Amar Dhole 2011-09-22 06:11:39 Re: handling duplicate row exception
Previous Message Tom Lane 2011-09-22 00:00:50 Re: ambiguous local variable name in 9.0 proc