Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

How can I get the corners of a polygon -a square/rectangle, to be precise- in latitude-longitude format by using its geom value -or some other way, perhaps-? Thanks.

share|improve this question
add comment

1 Answer 1

up vote 3 down vote accepted

ST_extent(geom) You will receive left, bottom, right and top value. Combining them you will get corners

http://postgis.net/docs/ST_Extent.html

share|improve this answer
    
Cool, thanks a lot! –  user1511 Aug 23 '12 at 9:58
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.