Orfeo Toolbox  4.0
otbMetaDataKey.cxx
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ORFEO Toolbox
4  Language: C++
5  Date: $Date$
6  Version: $Revision$
7 
8 
9  Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
10  See OTBCopyright.txt for details.
11 
12 
13  This software is distributed WITHOUT ANY WARRANTY; without even
14  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  PURPOSE. See the above copyright notices for more information.
16 
17 =========================================================================*/
18 
19 #include "otbMetaDataKey.h"
20 #include "gdal.h"
21 
22 #define NBKEYS 23
23 
24 namespace otb
25 {
26 namespace MetaDataKey
27 {
28 char const* DriverShortNameKey = "DriverShortName";
29 char const* DriverLongNameKey = "DriverLongName";
30 
31 char const* ProjectionRefKey = "ProjectionRef";
32 
33 char const* GCPProjectionKey = "GCPProjection";
34 char const* GCPParametersKey = "GCP_";
35 char const* GCPCountKey = "GCPCount";
36 
37 char const* GeoTransformKey = "GeoTransform";
38 
39 char const* MetadataKey = "Metadata_";
40 char const* SubMetadataKey = "SubMetadata_";
41 
42 char const* UpperLeftCornerKey = "UpperLeftCorner";
43 char const* UpperRightCornerKey = "UpperRightCorner";
44 char const* LowerLeftCornerKey = "LowerLeftCorner";
45 char const* LowerRightCornerKey = "LowerRightCorner";
46 
47 char const* ColorTableNameKey = "ColorTableName";
48 char const* ColorEntryCountKey = "ColorEntryCount";
49 char const* ColorEntryAsRGBKey = "ColorEntryAsRGB";
50 
51 char const* OSSIMKeywordlistKey = "OSSIMKeywordlist";
52 char const* OSSIMKeywordlistDelimiterKey = "OSSIMKeywordlistDelimiter";
53 
54 char const* VectorDataKeywordlistKey = "VectorDataKeywordlist";
55 char const* VectorDataKeywordlistDelimiterKey = "VectorDataKeywordlistDelimiter";
56 
57 char const* ResolutionFactor = "ResolutionFactor";
58 char const* CacheSizeInBytes = "CacheSizeInBytes";
59 
60 char const* TileHintX = "TileHintX";
61 char const* TileHintY = "TileHintY";
62 }
63 
65  {
89  };
90 
92 {
94 
95  for (unsigned int i = 0; i < NBKEYS; ++i)
96  {
97  if ( name.find(Types[i].keyname) != std::string::npos )
98  {
99  ktype = Types[i].type;
100  break;
101  }
102  }
103  return (ktype);
104 }
105 
107  : m_GCPCol(0),
108  m_GCPRow(0),
109  m_GCPX(0),
110  m_GCPY(0),
111  m_GCPZ(0)
112 {
113 }
114 
116 {
117 }
118 
119 void OTB_GCP::Print(std::ostream& os) const
120 {
121  os << " GCP Id = " << this->m_Id << std::endl;
122  os << " GCP Info = " << this->m_Info << std::endl;
123  os << " GCP (Row, Col) = (" << this->m_GCPRow << "," << this->m_GCPCol << ")" << std::endl;
124  os << " GCP (X, Y, Z) = (" << this->m_GCPX << "," << this->m_GCPY << "," << this->m_GCPZ << ")" << std::endl;
125 }
126 
127 } // end namespace otb

Generated at Sat Mar 8 2014 16:08:00 for Orfeo Toolbox with doxygen 1.8.3.1