Re: [gdal-dev] Error in OSGeo.GDAL.Gdal.Open for .tif format

2012-08-02 Thread Frank Warmerdam
Zhenyu Lu, Gdal.Open() with GA_Update mode cannot be used to create new files. Instead you will need to use the Create method on the driver object, and specify the size, band count and other creation options. GA_Update in Gdal.Open() is intended for use with existing files that you want to updat

[gdal-dev] Error in OSGeo.GDAL.Gdal.Open for .tif format

2012-08-01 Thread Zhenyu Lu
Hi Group, I just encountered an error in writting data to image in GTiff format using the OSGeo.GDAL.Gdal.Open command. The error message showing is ".tif not recognised as a supported file format". The gdal librarary I am using is gdal19dev.dll. The weird thing is the Gdal.Open command worked