[gdal-dev] Real and "raster" coordinates

Chaitanya kumar CH chaitanya.ch at gmail.com
Wed Mar 24 03:11:01 EDT 2010


Alexander,

You can use the GDALGetGeoTransform() or GDALDataset::GetGeoTransform() to
get the affine transformation coefficients which can be used to calculate
lat/long to col/row and vice versa. You can see the utility script
gdal_merge.py for an example.

On Wed, Mar 24, 2010 at 11:57 AM, Alexander Bruy
<alexander.bruy at gmail.com>wrote:

> Hi,
>
> I have a georeferenced raster and coordinates of some point (lat, lon)
> inside raster. Is it possible
> to convert this lat/lon coordinates to raster coordinates (column and row)?
>
> I use GDAL 1.6.3 with Python 2.5 (installed with OSGeo4W installer).
>
> --
> Alexander Bruy
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
Best regards,
Chaitanya kumar CH.
/tʃaɪθənjə/ /kʊmɑr/
+91-9848167848
17.2416N 80.1426E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100324/2ba2e58e/attachment.html


More information about the gdal-dev mailing list