Alessandro,<br><br>Refer to <a href="http://www.gdal.org/gdal_tutorial.html">http://www.gdal.org/gdal_tutorial.html</a> for a tutorial on how to do handle raster data with GDAL.<br>Look closely at GDALCreateCopy() or GDALDriver::CreateCopy().<br>
<br><div class="gmail_quote">On Tue, Jun 22, 2010 at 1:33 PM, canduc17 <span dir="ltr"><<a href="mailto:candini@meeo.it">candini@meeo.it</a>></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;">
<br>
I have an input dataset like this:Driver: GTiff/GeoTIFF<br>
Files: aot.2007154.0950.geo.tif<br>
Size is 5657, 2287<br>
Coordinate System is:<br>
GEOGCS["WGS 84",<br>
DATUM["WGS_1984",<br>
SPHEROID["WGS 84",6378137,298.2572235630016,<br>
AUTHORITY["EPSG","7030"]],<br>
AUTHORITY["EPSG","6326"]],<br>
PRIMEM["Greenwich",0],<br>
UNIT["degree",0.0174532925199433],<br>
AUTHORITY["EPSG","4326"]]<br>
Origin = (0.452892184257507,72.917350769042969)<br>
Pixel Size = (0.010000000000000,-0.010000000000000)<br>
Metadata:<br>
AREA_OR_POINT=Area<br>
Image Structure Metadata:<br>
COMPRESSION=LZW<br>
INTERLEAVE=BAND<br>
Corner Coordinates:<br>
Upper Left ( 0.4528922, 72.9173508) ( 0d27'10.41"E, 72d55'2.46"N)<br>
Lower Left ( 0.4528922, 50.0473508) ( 0d27'10.41"E, 50d 2'50.46"N)<br>
Upper Right ( 57.0228922, 72.9173508) ( 57d 1'22.41"E, 72d55'2.46"N)<br>
Lower Right ( 57.0228922, 50.0473508) ( 57d 1'22.41"E, 50d 2'50.46"N)<br>
Center ( 28.7378922, 61.4823508) ( 28d44'16.41"E, 61d28'56.46"N)<br>
Band 1 Block=5657x1 Type=Float32, ColorInterp=Gray</blockquote><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">and I want to copy<br>
coordinate system, origin, pixel size and corner coordinates from this<br>
dataset to the output one.<br>
How to do this in C++?<br>
Thanks in advance.<br>
<font color="#888888">--<br>
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/Copy-coordinate-system-and-corner-coordinates-tp5207721p5207721.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/Copy-coordinate-system-and-corner-coordinates-tp5207721p5207721.html</a><br>
Sent from the GDAL - Dev mailing list archive at Nabble.com.<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>
</font></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>