[Gdal-dev] how to re-use a GDAL dataset name

Xiaodong Zhang zhang at aero.und.edu
Wed Mar 16 00:03:31 EST 2005


Greetings,

Trying to use one Gdal dataset name to open multiple images (one at a time).

int main() {
GDALDataset *dataset;
GDALALLRegister();
for(int i=0;i<num_of_images;i++){
    dataset = (GDALDataset *) GDALOpen(img_name(i),GA_ReadOnly);
    .......;
    delete dataset;
}

This is not working, the programs hangs.

Appreciate help. Thanks.

Xiaodong








More information about the Gdal-dev mailing list