OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimOgrGdalTileSource.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: Garrett Potts
8 //
9 // Description:
10 //
11 // Contains class definition for the class "ossimOgrGdalTileSource".
12 // ossimOgrGdalTileSource is derived from ImageHandler which is derived from
13 // TileSource.
14 //
15 //*******************************************************************
16 // $Id: ossimOgrGdalTileSource.h 19733 2011-06-06 23:35:25Z dburken $
17 
18 #ifndef ossimOgrGdalTileSource_HEADER
19 #define ossimOgrGdalTileSource_HEADER 1
20 
21 #include <vector>
22 #include <list>
23 #include <map>
24 
29 #include <ossim/base/ossimIrect.h>
31 
33 class ossimProjection;
34 class ossimMapProjection;
39 
41  public ossimImageHandler,
42  public ossimViewInterface,
44 {
45 public:
47  virtual ~ossimOgrGdalTileSource();
48 
49  virtual void close();
50 
59  virtual bool open();
60 
66  virtual ossimRefPtr<ossimImageData> getTile(const ossimIrect& tileRect,
67  ossim_uint32 resLevel=0);
68 
73  virtual ossim_uint32 getNumberOfInputBands() const;
74 
80  virtual ossim_uint32 getNumberOfOutputBands() const;
81 
86  virtual ossim_uint32 getNumberOfLines(ossim_uint32 reduced_res_level = 0) const;
87 
92  virtual ossim_uint32 getNumberOfSamples(ossim_uint32 reduced_res_level = 0) const;
93 
101 
106  virtual ossimIrect getImageRectangle(ossim_uint32 reduced_res_level = 0) const;
107 
112  virtual bool saveState(ossimKeywordlist& kwl,
113  const char* prefix=0)const;
114 
119  virtual bool loadState(const ossimKeywordlist& kwl,
120  const char* prefix=0);
121 
125 
129  virtual ossimScalarType getOutputScalarType() const;
130 
134  virtual ossim_uint32 getTileWidth() const;
135 
139  virtual ossim_uint32 getTileHeight() const;
140 
147  virtual ossim_uint32 getImageTileWidth() const;
148 
155  virtual ossim_uint32 getImageTileHeight() const;
156 
157  virtual bool isOpen()const;
158 
159  virtual double getNullPixelValue(ossim_uint32 band=0)const;
160 
161  virtual double getMinPixelValue(ossim_uint32 band=0)const;
162 
163  virtual double getMaxPixelValue(ossim_uint32 band=0)const;
164 
165  virtual ossimObject* getView();
166 
167  virtual const ossimObject* getView()const;
168 
187  virtual bool setView(ossimObject* baseObject);
188 
189  virtual void setProperty(ossimRefPtr<ossimProperty> property);
190  virtual ossimRefPtr<ossimProperty> getProperty(const ossimString& name)const;
191  virtual void getPropertyNames(std::vector<ossimString>& propertyNames)const;
192 
193  virtual std::multimap<long, ossimAnnotationObject*> getFeatureTable();
194 
195  virtual void setQuery(const ossimString& query);
196 
198 
199  virtual bool setCurrentEntry(ossim_uint32 entryIdx);
200 
201 private:
203 TYPE_DATA
204 };
205 
206 #endif
virtual bool open()=0
Pure virtual open.
ossimRefPtr< ossimGdalOgrVectorAnnotation > theAnnotationSource
virtual void setQuery(const ossimString &query)=0
Pure virtual setQuery method.
ossimUnitType
Represents serializable keyword/value map.
virtual ossim_uint32 getNumberOfOutputBands() const
Returns the number of bands in a tile returned from this TileSource.
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of an object from a keyword list.
virtual ossim_uint32 getNumberOfLines(ossim_uint32 resLevel=0) const =0
Pure virtual, derived classes must implement.
virtual ossim_uint32 getTileHeight() const
Returns the default processing tile height.
Class derived from ossimImageModel, this adds an image projection for lineSampleToWorld and worldToLi...
virtual void setProperty(ossimRefPtr< ossimProperty > property)
virtual ossim_uint32 getTileWidth() const
Returns the default processing tile width.
virtual ossim_uint32 getNumberOfDecimationLevels() const
This returns the total number of decimation levels.
virtual bool isOpen() const =0
Derived classes must implement this method to be concrete.
virtual double getMinPixelValue(ossim_uint32 band=0) const
Retuns the min pixel value.
virtual void getPropertyNames(std::vector< ossimString > &propertyNames) const
double ossim_float64
#define TYPE_DATA
Definition: ossimRtti.h:339
virtual ossim_uint32 getImageTileHeight() const =0
Returns the tile width of the image or 0 if the image is not tiled.
unsigned int ossim_uint32
virtual void close()
Deletes the overview and clears the valid image vertices.
virtual ossimIrect getImageRectangle(ossim_uint32 resLevel=0) const
Returns zero-based bounding rectangle of the image.
#define OSSIM_PLUGINS_DLL
virtual ossimRefPtr< ossimImageGeometry > getInternalImageGeometry() const
ossimScalarType
virtual ossimRefPtr< ossimProperty > getProperty(const ossimString &name) const
virtual ossim_uint32 getImageTileWidth() const =0
Returns the tile width of the image or 0 if the image is not tiled.
virtual ossimScalarType getOutputScalarType() const
This will be used to query the output pixel type of the tile source.
This class defines an abstract Handler which all image handlers(loaders) should derive from...
virtual bool setView(ossimObject *baseObject)=0
virtual std::multimap< long, ossimAnnotationObject * > getFeatureTable()=0
Pure virtual getFeatureTable method.
virtual ossim_uint32 getNumberOfSamples(ossim_uint32 resLevel=0) const =0
Pure virtual, derived classes must implement.
virtual ossimObject * getView()=0
virtual double getMaxPixelValue(ossim_uint32 band=0) const
Returns the max pixel of the band.
virtual ossim_uint32 getNumberOfInputBands() const =0
virtual bool setCurrentEntry(ossim_uint32 entryIdx)
float distance(double lat1, double lon1, double lat2, double lon2, int units)
virtual double getNullPixelValue(ossim_uint32 band=0) const
Each band has a null pixel associated with it.
virtual void setGeometryBuffer(ossim_float64 distance, ossimUnitType type)=0
Pure virtual setGeometryBuffer method.
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save the state of an object to a keyword list.
virtual ossimRefPtr< ossimImageData > getTile(const ossimIpt &origin, ossim_uint32 resLevel=0)