[gdal-dev] Calculate lat lon of image corners knowing center's lat lon

ogr user mrxonx at hotmail.com
Sat Jun 5 18:59:56 EDT 2010


So, if I understand correctly, you have coordinates of two points:
- origin (0,0) lat/lon
- center (0.5 * width, 0.5 * height) lat/lon
Is that correct?

What is "spacing"?


What
Jayesh Chaudhary wrote:
> Hi,
>
> Thanks for your reply.  I think I have to gather more information here
> about the projection of the image. Currently the meta data tells me
> only these 3 things:
>
> 1. Origin lat lon
> 2. Size of the image
> 3. Spacing
>
> All I need is 4 corner points in lat / lon. Currently I am doing
> something like this (as an approximation)
>
> long = centerLong + pixel_x_relative_to_origin
>
> Thanks
>



More information about the gdal-dev mailing list