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.<br>
<br><a href="http://www.gdal.org/gdal_tutorial.html">http://www.gdal.org/gdal_tutorial.html</a><br><a href="http://www.gdal.org/gdal_8h.html">http://www.gdal.org/gdal_8h.html</a><br><br><div class="gmail_quote">On Tue, Jun 22, 2010 at 3:06 AM, Discourse Maps <span dir="ltr">&lt;<a href="mailto:discoursemap@live.com">discoursemap@live.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



<div>
I am using &quot;convertRastertoArray&quot; (modifying the array) and then using &quot;convertArraytoRaster&quot;.<br>
 <br>
The problem is that when I convert back to raster, the projection information is lost.<br>
The projection of my input is: WGS 84, UTM 17N. (EPSG = 32617)<br>
 <br>
Can someone provide some code as to the cleanest way to grab the projection (wkt) during the raster to array conversion so that I can read projection info in when I convert back?<br>
 <br>
Thanks.<br>                                               <br><hr>Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. <a href="http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1" target="_blank">Learn more.</a></div>

<br>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br>
/tʃaɪθənjə/ /kʊmɑr/ <br>+91-9494447584<br>17.2416N 80.1426E<br>