[postgis-users] dimensions of a minimum bounding box

TECHER David davidtecher at yahoo.fr
Thu Jan 18 00:41:51 PST 2007


use extent()

example

=# select extent(geometryfromtext('POLYGON((4 4,10 4,10 20,4 20,4 4))',-1));
     extent
----------------
 BOX(4 4,10 20)
(1 ligne)

or for a table use

select extent(the_geom) from <yourtable>

temiz a écrit :
> hello
>
> how can I compute dimensions of a minimum bounding box that surrounds 
> a polygon ?
> (width and length of a minimum bounding box)
>
> regards
>


	

	
		
___________________________________________________________________________ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
http://fr.mail.yahoo.com



More information about the postgis-users mailing list