On 01/17/2011 07:49 PM, [email protected] wrote:
Regarding your weird projection output -- this is because the first sample is very odd. It looks as if you have a map with a weird maxResolution (or a *very* large monitor -- something like 2000px across) and as such are getting coordinates outside the world, which then can't be reprojected.
You were right. OpenLayers generated strange numbers for ``bbox`` at zoom=0. I think the numbers were stranger than usual because the map's div was very tall and narrow, leaving a lot of whitespace at the top and bottom when zoomed out. These wayward numbers were causing PostGIS errors. I fixed this problem by overriding the ``bbox`` to maximum size whenever PostGIS threw an projection error.
I also figured out that OpenLayers generates bbox in YXYX format using the layer's spatial projection, while Polymaps generates bbox in XYXY (latitude, longitude, latitude, longitude) format in only srid=4326.
Hope someone else finds this information useful. RHH _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
