[gdal-dev] Creatin an image file from scratch

Mario Beaulieu Mario.Beaulieu at crim.ca
Wed Sep 29 14:48:55 EDT 2010


****Hi, I am trying to create a TIFF file from scratch by doing this :
GDALDriver* pDriver = (GDALDriver*) GDALGetDriverByName("GTiff"); GDALDataset* pOutDS = pDriver->Create( sFilePath.c_str(), m_lWidth, m_lHeight, m_lNumberOfBands, GDT_Byte, NULL);GDALClose(pOutDS );**** It creates the file but it failed when iI try to loaded it.  I got  ... not recognised as a supported file formatGDALDataset* pOutDS2  = (GDALDataset*) GDALOpenShared(sFilePath.c_str(), GA_Update); What missing? 
Mario Beaulieu
Agent de recherche senior
Équipe Vision & Imagerie
CRIM (Centre de recherche informatique de Montréal /
Computer Research Institut of Montreal)
514-840-1235, poste 2478
mario.beaulieu at crim.ca
www.crim.ca  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100929/d1b5362d/attachment.html


More information about the gdal-dev mailing list