[OpenLayers-Users] Latlon bounds question

Roland Olbricht roland.olbricht at gmx.de
Tue Nov 6 11:51:11 PST 2012


Hey Toby,

> I need to find the bbox of an image.
> The information I have:
>  - center point coord (51.03, 1.51 in lat long wgs84)
>  - image size (10004 x 10004 px)
>  - resolution (1.0003 m per pixel)
> 
> How can I calculate the bounding box for it?

Please note that it depends on the projection of the image: The straight lines 
of the image boundary may become curves in wgs84. So an approximation might be 
the best you can get, and as an approximation the trivial one does well.

Cheers,

Roland
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20121106/1027f216/attachment.html>


More information about the Users mailing list