I am using convertRastertoArray (modifying the array) and then using
convertArraytoRaster.
The problem is that when I convert back to raster, the projection information
is lost.
The projection of my input is: WGS 84, UTM 17N. (EPSG = 32617)
Can someone provide some code as to the
GDALCreateCopy() can help you with creating a raster with the same data
including the projection and stuff. You can edit the pixels without
bothering about the projection. Use GDALRasterIO() to read and write to that
raster.
http://www.gdal.org/gdal_tutorial.html
http://www.gdal.org/gdal_8h.html