OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimLlxyProjection.h
Go to the documentation of this file.
1 //*******************************************************************
2 //
3 // License: See top level LICENSE.txt file.
4 //
5 // Author: David Burken
6 //
7 // Description:
8 //
9 // Contains class declaration for ossimLlxy. This is a simple "latitude /
10 // longitude to x / y" projection. Note that "origin" and "tie_point" are
11 // synonymous in this projection.
12 //
13 //*******************************************************************
14 // $Id: ossimLlxyProjection.h 19651 2011-05-25 18:49:22Z gpotts $
15 
16 #ifndef ossimLlxyProjection_HEADER
17 #define ossimLlxyProjection_HEADER
18 
20 
22 {
23 public:
26  ossimLlxyProjection(const ossimEllipsoid& ellipsoid,
27  const ossimGpt& origin);
28  ossimLlxyProjection(const ossimGpt& origin,
29  double latSpacing, // decimal degrees
30  double lonSpacing);
31 
32  virtual ~ossimLlxyProjection();
33 
34  virtual ossimObject *dup()const;
35 
36  virtual bool isGeographic()const;
37 
38  virtual ossimDpt forward(const ossimGpt &worldPoint) const;
39  virtual ossimGpt inverse(const ossimDpt &projectedPoint) const;
40 
45  virtual double getLatSpacing() const;
46 
51  virtual double getLonSpacing() const;
52 
57  virtual void setLatSpacing(double spacing);
58 
63  virtual void setLonSpacing(double spacing);
64 
69  virtual void worldToLineSample(const ossimGpt& worldPoint,
70  ossimDpt& lineSampPt) const;
71 
76  virtual void lineSampleToWorld(const ossimDpt& lineSampPt,
77  ossimGpt& worldPt) const;
78 
79 
84  virtual bool saveState(ossimKeywordlist& kwl,
85  const char* prefix=0)const;
86 
91  virtual bool loadState(const ossimKeywordlist& kwl,
92  const char* prefix=0);
93 
94  virtual std::ostream& print(std::ostream& out) const;
95 
96  virtual bool operator==(const ossimProjection& projection) const;
97 
98  // virtual ossimDpt getMetersPerPixel() const;
99  virtual void setMetersPerPixel(const ossimDpt& pt);
105  virtual void computeDegreesPerPixel(const ossimGpt& ground,
106  const ossimDpt& metersPerPixel,
107  double &deltaLat,
108  double &deltaLon);
109 
110 
116  virtual void computeMetersPerPixel(const ossimGpt& center,
117  double deltaDegreesPerPixelLat,
118  double deltaDegreesPerPixelLon,
119  ossimDpt &metersPerPixel);
120 
121 private:
122 
123 TYPE_DATA
124 };
125 
126 #endif
virtual ossimObject * dup() const =0
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of an object from a keyword list.
#define OSSIMDLLEXPORT
Represents serializable keyword/value map.
virtual ossimDpt worldToLineSample(const ossimGpt &worldPoint) const
virtual void computeMetersPerPixel()
This will go from the ground point and give you an approximate meters per pixel.
virtual bool isGeographic() const
virtual ossimGpt inverse(const ossimDpt &projectedPoint) const =0
Will take a point in meters and convert it to ground.
virtual void setMetersPerPixel(const ossimDpt &gsd)
virtual ossimGpt lineSampleToWorld(const ossimDpt &projectedPoint) const
virtual bool operator==(const ossimProjection &projection) const
Compares this to arg projection and returns TRUE if the same.
#define TYPE_DATA
Definition: ossimRtti.h:339
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save the state of an object to a keyword list.
virtual ossimDpt forward(const ossimGpt &worldPoint) const =0
All map projections will convert the world coordinate to an easting northing (Meters).
virtual void computeDegreesPerPixel()
Computes the approximate resolution in degrees/pixel.
virtual std::ostream & print(std::ostream &out) const
Prints data members to stream.
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23