OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimStatePlaneProjectionInfo.h
Go to the documentation of this file.
1 //*******************************************************************
2 //
3 // License: See top LICENSE.txt file.
4 //
5 // Author: Garrett Potts
6 //*******************************************************************
7 // $Id: ossimStatePlaneProjectionInfo.h 23353 2015-06-01 19:19:10Z dburken $
8 #ifndef ossimStatePlaneProjectionInfo_HEADER
9 #define ossimStatePlaneProjectionInfo_HEADER 1
10 
11 #include <ossim/base/ossimConstants.h> /* for OSSIM_DLL macro */
12 #include <ossim/base/ossimDms.h>
13 #include <ossim/base/ossimGpt.h>
14 #include <ossim/base/ossimString.h>
15 #include <ostream>
16 
17 class ossimDatum;
18 class ossimMapProjection;
19 class ossimKeywordlist;
20 
22 {
25 
26 public:
27 
28  ossimStatePlaneProjectionInfo(const std::string& name,
29  int pcsCode,
30  const std::string& projCode,
31  const std::string& param1,
32  const std::string& param2,
33  const std::string& param3,
34  const std::string& param4,
35  double falseEast,
36  double falseNorth,
37  const std::string& units,
38  const std::string& datumName);
39 
40  int code() const;
41  const ossimString& name() const;
42  const ossimString& projName() const;
43  double originLat() const;
44  double originLon() const;
45  const ossimDatum* datum() const;
46  ossimGpt origin() const;
47  double parallel1() const;
48  double parallel2() const;
49  double falseEasting() const;
50  double falseNorthing() const;
51  double falseEastingInMeters() const;
52  double falseNorthingInMeters() const;
53  double scaleFactor() const;
54 
56  ossimString units() const;
57 
62  ossimUnitType getUnitType() const;
63 
69  bool matchesProjection(const ossimMapProjection* proj) const;
70 
71  bool isSameCode( int Code ) const;
72 
73  void populateProjectionKeywords(ossimKeywordlist& kwl,
74  const char* prefix=0)const;
75 private:
76 
77  int thePcsCode; // The Geotiff code
78  ossimString theName; // Descriptive PCS name
79 
85 
86  const ossimDatum* theDatum; // Either NAD83 or NAD27 based on name
87 
91 
92  double theParameter3; // parallel 1 or Scale factor
93  double theParameter4; // parallel 2 or 0
94 
97 
99 
100  ossimUnitType theUnits; // "us_survey_ft" "feet" or "meters"
101 };
102 
103 #endif /* #ifndef ossimStatePlaneProjectionInfo_HEADER */
ossimUnitType
Represents serializable keyword/value map.
ostream & operator<<(ostream &out, const ossimAxes &axes)
Definition: ossimAxes.h:88
#define OSSIM_DLL
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23