[gdal-dev] Raster to array, then array to Raster (while preserving projection info)

2010-06-21 Thread Discourse Maps
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

Re: [gdal-dev] Raster to array, then array to Raster (while preserving projection info)

2010-06-21 Thread Chaitanya kumar CH
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