I have some concerns about working of BOX3D PostGIS function. I tried to find places in square -158.721365889063 66.09275164148659, 154.608712235937 52.56807548751039(degrees). But this where statement
some_place.point && SetSRID('BOX3D(-158.721365889063 66.09275164148659, 154.608712235937 52.56807548751039)'::box3d,4326)
returns places in the biggest of two possible squares.
When I change order of angles or use 'xmin ymin,xmax ymax' order, I got the same result.
Also I used
ST_Contains( SetSRID( ST_MakeBox2D( ST_Point(143.930001298437,66.82980906973742), ST_Point(-145.757498701563,51.37699768868392) ), 4326 ), some_place.point)
with the same result.
How can I do it for some specific order of angle's points?
P.S. I got bounds from google map api.