OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimOgcWktTranslator.h
Go to the documentation of this file.
1 //*******************************************************************
2 // Copyright (C) 2000 ImageLinks Inc.
3 //
4 // License: LGPL
5 //
6 // See LICENSE.txt file in the top level directory for more details.
7 //
8 // Author: Frank Warmerdam (warmerda@home.com)
9 //
10 // Description:
11 //
12 // Contains function declarations for translating between OGC WKT strings,
13 // and OSSIM projection definitions.
14 //*******************************************************************
15 // $Id: ossimOgcWktTranslator.h 20724 2012-04-13 21:00:52Z dburken $
16 
17 #ifndef ossimOgcWktTranslator_HEADER
18 #define ossimOgcWktTranslator_HEADER
19 
21 #include <ossim/base/ossimCommon.h>
22 #include <ossim/base/ossimString.h>
23 
24 #include <map>
25 #include <string>
26 
27 class ossimKeywordlist;
28 
30 {
31 public:
33 
34  bool toOssimKwl(const ossimString& wktString,
35  ossimKeywordlist& kwl,
36  const char* prefix=NULL)const;
37 
38  ossimString fromOssimKwl(const ossimKeywordlist& kwl,
39  const char* prefix=NULL)const;
44  ossimString wktToOssimDatum(const ossimString& datum)const;
45  ossimString ossimToWktDatum(const ossimString& datum)const;
46 
47  ossimString wktToOssimProjection(const ossimString& projection)const;
48  ossimString ossimToWktProjection(const ossimString& projection)const;
49 
50 protected:
51 
52  std::map<std::string, std::string> theWktToOssimDatumTranslation;
53  std::map<std::string, std::string> theWktToOssimProjectionTranslation;
54 
55  std::map<std::string, std::string> theOssimToWktDatumTranslation;
56  std::map<std::string, std::string> theOssimToWktProjectionTranslation;
57 
58  void initializeDatumTable();
59  void initializeProjectionTable();
60 
61 };
62 
63 #endif
Represents serializable keyword/value map.
std::map< std::string, std::string > theOssimToWktDatumTranslation
#define OSSIM_PLUGINS_DLL
std::map< std::string, std::string > theWktToOssimProjectionTranslation
std::map< std::string, std::string > theWktToOssimDatumTranslation
std::map< std::string, std::string > theOssimToWktProjectionTranslation