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

Discourse Maps discoursemap at live.com
Mon Jun 21 17:36:54 EDT 2010


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 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?

 

Thanks.
 		 	   		  
_________________________________________________________________
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100621/259de4b9/attachment.html


More information about the gdal-dev mailing list