[postgis-users] st_box2d

Mark Cave-Ayland mark.cave-ayland at siriusit.co.uk
Tue Sep 30 02:41:05 PDT 2008


JP de Miranda wrote:
> Hi,
> I'm trying to find out some information about the polygon returned by 
> box2d.
> Namely, what is the order of the points?  Are they always in the format 
> POLYGON((minx miny, minx maxy, maxx maxy, maxx miny, minx miny))?
> 
> I checked the postgis docs and it doesn't describe the returned polygon.
> Thanks for your help.


Hi JP,

BOX2Ds are simply expressed as BOX2D(x1 y1, x2 y2) where x1, y1 is the 
lower left corner and x2, y2 is upper right corner.


HTH,

Mark.

-- 
Mark Cave-Ayland
Sirius Corporation - The Open Source Experts
http://www.siriusit.co.uk
T: +44 870 608 0063



More information about the postgis-users mailing list