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