[Qgis-developer] Exporting a raster layer

Victor Olaya volayaf at gmail.com
Tue Jan 15 15:00:21 PST 2013


Hey Giovanni, thanks for that! it was what I was looking for and I
could make it work :-)

Thanks again!

Victor



2013/1/13 G. Allegri <giohappy at gmail.com>:
> In Qgis master I think you could use QsgRasterFileWriter [1], for the raster
> providers which support writing,e.g. GDAL.
> AFAIK in Qgis 1.8 there's no mechanism to do that.
>
> giovanni
>
> [1] http://www.qgis.org/api/classQgsRasterFileWriter.html
>
> Sent from Nexus
>
> Il giorno 13/gen/2013 17:10, "Victor Olaya" <volayaf at gmail.com> ha scritto:
>>
>> Hi all
>>
>> I have just implemented a new mechanism in SEXTANTE to make handling
>> of file formats more clear and easy. Now, no matter what provider is
>> creating a vector layer, all formats supported by QGIS can be
>> selected, without requiring anything special added to the algorithm
>> provider. SEXTANTE takes care of converting if needed.
>>
>> I want to implement the same thing for raster layers, but I do not
>> know how to export a raster layer into a given format (except by
>> calling GDAL translate), and I need it for that.. Can any one give me
>> an idea or point me to some code to do that?
>>
>> Thanks in advance!
>>
>> Victor
>> _______________________________________________
>> Qgis-developer mailing list
>> Qgis-developer at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-developer


More information about the Qgis-developer mailing list