On Tue, Nov 2, 2010 at 1:53 PM, Bishwarup Banerjee <[email protected]> wrote: > Dear All, > > Can any body help me to get and set projection parameters for raster files? > > I am doing some map calculation using PIL and the data is losing projection, > so want to re project the raster files. > > The language I am using is Python on windows platform..
Assuming this is a qgis question... If you get the layer in 'l' then l.crs() gets you a coordinate reference system object: >>> l.crs() <qgis.core.QgsCoordinateReferenceSystem object at 0xb3b44ac> and hence: >>> l.crs().toProj4() PyQt4.QtCore.QString(u'+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs') and to set it, just use setCrs with a QgsCoordinateReferenceSystem object. Barry _______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
