Re: [Qgis-developer] Batch "save as" of rasters

2016-10-13 Thread Sanjay Rana
Thanks Tom, i made some progress - turns out explicitly including tge option for source srs makes all the difference! On 13 Oct 2016 5:52 p.m., "Tom Chadwin" wrote: > Hi Sanjay > > I imagine QGIS uses gdal_warp for its reprojection, and that is certainly > what I've done for rasters: gdal_warp

Re: [Qgis-developer] Batch "save as" of rasters

2016-10-13 Thread Tom Chadwin
Hi Sanjay I imagine QGIS uses gdal_warp for its reprojection, and that is certainly what I've done for rasters: gdal_warp and gdal_translate. Thanks Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Bat

Re: [Qgis-developer] Batch "save as" of rasters

2016-10-13 Thread Sanjay Rana
Thanks. gdal_translate doesn't have options to reproject, and for some reasons I get more accurate results from "save as" reprojection than what I get from gdalwarp, hence the query. I doing a 4326 to 27700 projection On 13 Oct 2016 3:38 p.m., "Carlos López PSIG" wrote: > Hi, > IMHO You must to

Re: [Qgis-developer] Batch "save as" of rasters

2016-10-13 Thread Carlos López PSIG
Hi, IMHO You must to use gdal library directly More info http://www.gdal.org/gdal_translate.html All the best, * * *Carlos López Quintanilla* www.psig.es carlos.lo...@psig.es +34 699.680.261 Nota legal: Este mensaje y cualquier archivo adjunto está destinado únicamente a

[Qgis-developer] Batch "save as" of rasters

2016-10-13 Thread Sanjay Rana
Hi Everyone, Newbie qgis developer here. I would like to batch export a bunch of rasters using the same code that's behind the "save as" option. I have found out that it might be doable with QgsRasterFileWriter but unlike the "Save As" GUI, this call doesn't have option to specify resolution. Hav