pktools 2.6.7
Processing Kernel for geospatial data
ImgUpdaterGdal.cc
1/**********************************************************************
2ImgUpdaterGdal.cc: class to read raster files using GDAL API library
3Copyright (C) 2008-2012 Pieter Kempeneers
4
5This file is part of pktools
6
7pktools is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 3 of the License, or
10(at your option) any later version.
11
12pktools is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with pktools. If not, see <http://www.gnu.org/licenses/>.
19***********************************************************************/
20#include <iostream>
21#include "ImgUpdaterGdal.h"
22
23ImgUpdaterGdal::ImgUpdaterGdal(void){};
24
29ImgUpdaterGdal::ImgUpdaterGdal(const std::string& filename, const GDALAccess& readMode){
30 open(filename,readMode);
31}
32
33ImgUpdaterGdal::~ImgUpdaterGdal(void)
34{
35 // delete m_gds;
36// GDALDumpOpenDatasets(stderr);
37// GDALDestroyDriverManager();//could be used by other objects...
38}
39
40//--------------------------------------------------------------------------
41
46void ImgUpdaterGdal::open(const std::string& filename, const GDALAccess& readMode)
47{
48 ImgReaderGdal::open(filename,readMode);
49}
50
52{
54}
virtual void close(void)
Close the image.
void open(const std::string &filename, const GDALAccess &readMode=GA_ReadOnly)
Open an image.
void close(void)
Close the image.