OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimOgrInfo.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // License: LGPL
4 //
5 // See LICENSE.txt file in the top level directory for more details.
6 //
7 // Author: Mingjie Su
8 //
9 // Description: Gdal Ogr Info object.
10 //
11 //----------------------------------------------------------------------------
12 // $Id: ossimOgrInfo.h 2645 2011-05-26 15:21:34Z oscar.kramer $
13 #ifndef ossimOgrInfo_HEADER
14 #define ossimOgrInfo_HEADER 1
15 
19 
20 //OGR Includes
21 // #include <ogrsf_frmts/ogrsf_frmts.h>
22 #include <ogrsf_frmts.h>
23 #include <gdal.h>
24 
25 #include <iosfwd>
26 #include <string>
27 #include <vector>
28 
29 class ossimKeywordlist;
30 
37 {
38 public:
39 
41  ossimOgrInfo();
42 
44  virtual ~ossimOgrInfo();
45 
58  virtual bool open(const ossimFilename& file);
59 
67  virtual std::ostream& print(std::ostream& out) const;
68 
69  virtual bool getKeywordlist(ossimKeywordlist& kwl)const;
70 
71  private:
72  ossimString getDriverName(ossimString driverName)const;
73 
78  void parseMetadata(ossimString metaData, ossimKeywordlist& kwl, ossimString metaPrefix)const;
79 
81  OGRDataSource* m_ogrDatasource;
82  OGRSFDriver* m_ogrDriver;
83 };
84 
85 #endif /* End of "#ifndef ossimOgrInfo_HEADER" */
Ogr info class.
Definition: ossimOgrInfo.h:36
Represents serializable keyword/value map.
void parseMetadata(ossimString metaData, ossimKeywordlist &kwl, ossimString metaPrefix) const
Parse the VPF metadata
OGRSFDriver * m_ogrDriver
Definition: ossimOgrInfo.h:82
virtual bool getKeywordlist(ossimKeywordlist &kwl) const
Method to dump info to a keyword list.
ossimOgrInfo()
default constructor
ossimString getDriverName(ossimString driverName) const
Info Base.
Definition: ossimInfoBase.h:32
virtual ~ossimOgrInfo()
virtual destructor
virtual std::ostream & print(std::ostream &out) const
Print method.
virtual bool open(const ossimFilename &file)
open method.
OGRDataSource * m_ogrDatasource
Definition: ossimOgrInfo.h:81
ossimFilename m_file
Definition: ossimOgrInfo.h:80
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23