[Gdal-dev] Re: Problems when warping

Frank Warmerdam warmerdam at pobox.com
Thu Jul 29 13:57:27 EDT 2004


Juan Cicuendez wrote:
> Thanks for your help Frank,
> 
> Testing your suggestion. I tried something like:
> 
> char *pszOptions = "INTERLEAVE=PIXEL"
> hDstDS = GDALCreate( hDriver, outputfilename, nPixels, nLines, bands, eDT, 
> &pszOptions ); 
> 
> , but of course it didn't work. How can I pass the opticon INTERLEAVE=PIXEL 
> when creating the geoTiff file? I haven't found the documentation of the 
> GeoTiff driver. Where can I find it?

Juan,

The option list needs to be NULL terminated.  So something like this should
work:

   char **papszOptions[] = { "INTERLEAVE=PIXEL", NULL };
   hDstDS = GDALCreate( hDriver, outputfilename, nPixels, nLines, bands, eDT,
                        papszOptions );

PS. you need to subscribe to the mailing list if you want your messages to go
through promptly.  This (and some others) were held up quite a while waiting
for approval.

Best regards,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the Gdal-dev mailing list