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.b...@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@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
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev