Skip site navigation (1) Skip section navigation (2)

a spatial table's bounding box

From: Asli Akarsakarya <asliakar(at)yahoo(dot)com>
To: "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: a spatial table's bounding box
Date: 2011-09-21 12:47:23
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice

Me 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,


pgsql-novice by date

Next:From: Shaun ThomasDate: 2011-09-21 12:48:13
Subject: Re: PG 9 adminstrations
Previous:From: Sachin SrivastavaDate: 2011-09-21 06:15:43
Subject: Re: query question

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group