[gdal-dev] Transform pixel coordinates
Artur Bercik
vbubbly21 at gmail.com
Fri Oct 24 21:03:22 PDT 2014
Dear GDAL users
I have a raster image of 406 lines and 270 samples with 5km pixel size. The
center coordinates (lats and lons in degrees in GCS) of upper left pixel,
and the center coordinates (lats and lons in degrees in GCS) of the lower
right pixel are given, how can I calculate the coordinates of upper left
corner (ulx and uly) and the coordinates of lower right corner (lrx and
lry)?
upperLeftCentralX, upperLeftCentralY = 150.1234, 50.1234
pixelWidth, pixelHeight = 5, 5
cols, rows = 270, 406
upperLeftX, upperLeftY = ?, ?
Thanks in the advance.
Artur
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20141025/b44493ef/attachment.html>
More information about the gdal-dev
mailing list