RE: [gdal-dev] Projection Definition String

2010-07-10 Thread Francois Maass
Maass Cc: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Projection Definition String Francois Maass wrote: > Good day! > > I am trying to set the Projection Definition for a GDALDataset as > follows (from the GDALWarp API): > > > > /const char *pszDstWKT = NULL;

Re: [gdal-dev] Projection Definition String

2010-07-10 Thread Frank Warmerdam
Francois Maass wrote: Good day! I am trying to set the Projection Definition for a GDALDataset as follows (from the GDALWarp API): /const char *pszDstWKT = NULL;/ /OGRSpatialReference oSRS;/ /oSRS.SetUTM( 11, TRUE );/ /oSRS.SetWellKnownGeogCS( "WGS84" );/ /oSRS.exportToWkt( &pszDstWKT );/

[gdal-dev] Projection Definition String

2010-07-10 Thread Francois Maass
Good day! I am trying to set the Projection Definition for a GDALDataset as follows (from the GDALWarp API): const char *pszDstWKT = NULL; OGRSpatialReference oSRS; oSRS.SetUTM( 11, TRUE ); oSRS.SetWellKnownGeogCS( "WGS84" ); oSRS.exportToWkt( &pszDstWKT ); if(GDALSetProjection(srcData