[gdal-dev] Injecting Projection information in CreateCopy

Lucena, Ivan ivan.lucena at pmldnet.com
Fri Aug 29 12:07:40 EDT 2008


I would take a look on how gdal_translate process the "-a_srs" 
parameter: 
http://trac.osgeo.org/gdal/browser/trunk/gdal/apps/gdal_translate.cpp#L311


Christiaan Janssen wrote:
> My problem with this is that I'm not actually trying to reproject the data. The best example of what I'm doing is trying to create a GeoTIFF version of a standard TIFF (ie create a full raster copy but with GeoTIFF tags for the projection and transform embedded), at the same time not limiting myself to only outputting to a GeoTIFF format but other geospatially capable formats as well (ie NITF, Erdas Imagine, ...) some of which only support the CreateCopy function.
> 
> Christiaan
> 
> -----Original Message-----
> From: Mateusz Loskot [mailto:mateusz at loskot.net] 
> Sent: Friday, August 29, 2008 11:45 AM
> To: Christiaan Janssen
> Cc: gdal-dev at lists.osgeo.org
> Subject: Re: [gdal-dev] Injecting Projection information in CreateCopy
> 
> Christiaan Janssen wrote:
>> Could someone tell me the best/easiest way to create a copy of a 
>> GDALDataset from one format to another and specifying a projection 
>> different than what is contained in the source GDALDataset.
> 
> Have you tried to follow this [1] tutorial, see GDALCreateGenImgProjTransformer
> 
> [1] http://gdal.org/warptut.html
> 
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org
> 
> 
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
> 
> 


More information about the gdal-dev mailing list