OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ossimKmlSuperOverlayReader Class Reference

#include <ossimKmlSuperOverlayReader.h>

Inheritance diagram for ossimKmlSuperOverlayReader:
ossimImageHandler ossimImageSource ossimSource ossimConnectableObject ossimErrorStatusInterface ossimObject ossimListenerManager ossimPropertyInterface ossimReferenced

Public Member Functions

 ossimKmlSuperOverlayReader ()
 
virtual ~ossimKmlSuperOverlayReader ()
 
virtual void close ()
 Deletes the overview and clears the valid image vertices. More...
 
virtual bool open ()
 
virtual ossimRefPtr< ossimImageDatagetTile (const ossimIrect &tileRect, ossim_uint32 resLevel=0)
 
virtual ossim_uint32 getNumberOfInputBands () const
 
virtual ossim_uint32 getNumberOfOutputBands () const
 
virtual ossim_uint32 getNumberOfLines (ossim_uint32 reduced_res_level=0) const
 
virtual ossim_uint32 getNumberOfSamples (ossim_uint32 reduced_res_level=0) const
 
virtual ossimIrect getImageRectangle (ossim_uint32 reduced_res_level=0) const
 
virtual bool saveState (ossimKeywordlist &kwl, const char *prefix=0) const
 
virtual bool loadState (const ossimKeywordlist &kwl, const char *prefix=0)
 
virtual ossim_uint32 getImageTileWidth () const
 
virtual ossim_uint32 getImageTileHeight () const
 
virtual ossimRefPtr< ossimImageGeometrygetInternalImageGeometry () const
 Returns the image geometry object associated with this tile source or NULL if non defined. More...
 
virtual ossimRefPtr< ossimImageGeometrygetImageGeometry ()
 Returns the image geometry object associated with this tile source or NULL if non defined. More...
 
ossimScalarType getOutputScalarType () const
 This will be used to query the output pixel type of the tile source. More...
 
virtual bool isOpen () const
 Derived classes must implement this method to be concrete. More...
 
ossimMapProjectioncreateDefaultProj (ossim_float64 north, ossim_float64 south, ossim_float64 east, ossim_float64 west)
 
- Public Member Functions inherited from ossimImageHandler
 ossimImageHandler ()
 Constructor (default): More...
 
virtual ~ossimImageHandler ()
 Destructor: Derived classes should implement. More...
 
virtual void initialize ()
 initialize Does nothing in this class. More...
 
virtual bool openOverview ()
 Searches for an overview. More...
 
virtual bool openOverview (const ossimFilename &overview_file)
 Calls closeOverview(), then attempts to open the overview_file. More...
 
virtual void closeOverview ()
 If theOverview is initialized it will be deleted and set to NULL. More...
 
virtual const ossimImageHandlergetOverview () const
 
virtual bool hasOverviews () const
 
virtual ossimFilename createDefaultOverviewFilename () const
 
virtual ossimFilename createDefaultGeometryFilename () const
 
virtual ossimFilename createDefaultMetadataFilename () const
 
virtual ossimFilename createDefaultHistogramFilename () const
 
virtual ossimFilename createDefaultValidVerticesFilename () const
 
virtual bool writeValidImageVertices (const std::vector< ossimIpt > &vertices, const ossimFilename &file=ossimFilename(""))
 Outputs vertices to file and updates the internal vertex array variable "theValidImageVertices". More...
 
virtual bool openValidVertices (const ossimFilename &vertices_file)
 Opens the valid image vertices file and sets theValidImageVerticesFile variable. More...
 
virtual bool openValidVertices ()
 Creates vertices file name based on image, then tries to open. More...
 
virtual bool open (const ossimFilename &imageFile, ossim_uint32 entryIndex)
 Opens the image file. More...
 
virtual bool open (const ossimFilename &imageFile)
 
virtual bool open (std::shared_ptr< ossim::ImageHandlerState > state)
 
virtual bool buildHistogram (int numberOfRLevels=0, ossimHistogramMode mode=OSSIM_HISTO_MODE_NORMAL)
 Build a histogram for image file. More...
 
virtual bool buildAllHistograms (int numberOfRLevels=0, ossimHistogramMode mode=OSSIM_HISTO_MODE_NORMAL)
 Build a histograms for all image entries. More...
 
virtual bool buildOverview (ossimImageHandlerOverviewCompressionType compressionType=OSSIM_OVERVIEW_COMPRESSION_NONE, ossim_uint32 quality=75, ossimFilterResampler::ossimFilterResamplerType resampleType=ossimFilterResampler::ossimFilterResampler_BOX, bool includeFullResFlag=false)
 Will build over file for theImageFile. More...
 
virtual bool buildAllOverviews (ossimImageHandlerOverviewCompressionType compressionType=OSSIM_OVERVIEW_COMPRESSION_NONE, ossim_uint32 quality=75, ossimFilterResampler::ossimFilterResamplerType resampleType=ossimFilterResampler::ossimFilterResampler_BOX, bool includeFullResFlag=false)
 Will build over file for all image entries. More...
 
virtual bool buildOverview (const ossimFilename &filename, ossimImageHandlerOverviewCompressionType compressionType=OSSIM_OVERVIEW_COMPRESSION_NONE, ossim_uint32 quality=75, ossimFilterResampler::ossimFilterResamplerType resampleType=ossimFilterResampler::ossimFilterResampler_BOX, bool includeFullResFlag=false)
 Will build an over file for filename. More...
 
ossimRefPtr< ossimMultiResLevelHistogramgetImageHistogram () const
 Fetches the current entry image's histogram. More...
 
virtual void setImageGeometry (ossimImageGeometry *geom)
 Sets the image geometry object. More...
 
virtual void saveImageGeometry () const
 Saves the image geometry to a file that will be made based on the image file name. More...
 
virtual void saveImageGeometry (const ossimFilename &geometry_file) const
 Saves the image geometry to a file that will be made based on the image file name. More...
 
virtual ossimIrect getBoundingRect (ossim_uint32 resLevel=0) const
 Returns zero-based bounding rectangle of the image. More...
 
virtual void getDecimationFactor (ossim_uint32 resLevel, ossimDpt &result) const
 
virtual void getDecimationFactors (vector< ossimDpt > &decimations) const
 This returns all decimation for all levels. More...
 
virtual ossim_uint32 getNumberOfDecimationLevels () const
 This returns the total number of decimation levels. More...
 
virtual ossim_uint32 getNumberOfReducedResSets () const
 This method is obsolete. More...
 
virtual void setFilename (const ossimFilename &filename)
 Sets the filename. More...
 
virtual const ossimFilenamegetFilename () const
 Returns the filename. More...
 
virtual bool isValidRLevel (ossim_uint32 resLevel) const
 Determines if the passed in reslution level is valid. More...
 
bool canConnectMyInputTo (ossim_int32 inputIndex, const ossimConnectableObject *object) const
 Connection rule. More...
 
virtual void getValidImageVertices (vector< ossimIpt > &validVertices, ossimVertexOrdering ordering=OSSIM_CLOCKWISE_ORDER, ossim_uint32 resLevel=0) const
 ordering specifies how the vertices should be arranged. More...
 
virtual bool isBandSelector () const
 Indicates whether or not the image handler can control output band selection via the setOutputBandList method. More...
 
virtual bool setOutputBandList (const std::vector< ossim_uint32 > &band_list)
 If the image handler "isBandSeletor()" then the band selection of the output chip can be controlled. More...
 
virtual bool setOutputToInputBandList ()
 If the image handler "isBandSeletor()" then the band selection of the output are set to input or identity. More...
 
virtual bool isIdentityBandList (const std::vector< ossim_uint32 > &bandList) const
 Convenience method to see if band list is identity. More...
 
virtual bool isImageTiled () const
 Indicates whether or not the image is tiled internally. More...
 
virtual bool hasMetaData () const
 
virtual ossimRefPtr< ossimNBandLutDataObjectgetLut () const
 
virtual bool hasLut () const
 
virtual void loadMetaData ()
 There is an external file with an omd extension. More...
 
virtual double getMinPixelValue (ossim_uint32 band=0) const
 Retuns the min pixel value. More...
 
virtual double getMaxPixelValue (ossim_uint32 band=0) const
 Returns the max pixel of the band. More...
 
virtual double getNullPixelValue (ossim_uint32 band=0) const
 Each band has a null pixel associated with it. More...
 
virtual void setMinPixelValue (ossim_uint32 band, const ossim_float64 &pix)
 convenience method to set min pixel value. More...
 
virtual void setMaxPixelValue (ossim_uint32 band, const ossim_float64 &pix)
 convenience method to set max pixel value. More...
 
virtual void setNullPixelValue (ossim_uint32 band, const ossim_float64 &pix)
 convenience method to set null pixel value. More...
 
virtual ossim_uint32 getCurrentEntry () const
 
virtual ossim_uint32 getNumberOfEntries () const
 
virtual void getEntryName (ossim_uint32 entryIdx, std::string &name) const
 Get the name of entry as a string. More...
 
virtual void getEntryList (std::vector< ossim_uint32 > &entryList) const
 
virtual void getEntryNames (std::vector< ossimString > &entryNames) const
 
bool useEntryIndex () const
 Convenience method to determine if entry index should be used for support files, e.g. More...
 
ossimFilename getOverviewFile () const
 
virtual bool setCurrentEntry (ossim_uint32 entryIdx)
 
virtual void setProperty (ossimRefPtr< ossimProperty > property)
 
virtual ossimRefPtr< ossimPropertygetProperty (const ossimString &name) const
 
virtual void getPropertyNames (std::vector< ossimString > &propertyNames) const
 
ossimFilename getFilenameWithThisExtension (const ossimString &ext, bool set_e0_prefix=false) const
 Returns the image file with extension set using supplentary directory for dirname if set. More...
 
void getFilenameWithThisExt (const ossimString &ext, ossimFilename &f) const
 Returns the image file with extension set using supplentary directory for dirname if set. More...
 
ossim_uint32 getStartingResLevel () const
 
void setStartingResLevel (ossim_uint32 level)
 
bool getOpenOverviewFlag () const
 
void setOpenOverviewFlag (bool flag)
 Sets theOpenOverviewFlag. More...
 
virtual void setSupplementaryDirectory (const ossimFilename &dir)
 Sets the supplementary directory. More...
 
virtual const ossimFilenamegetSupplementaryDirectory () const
 Returns the supplementary directory. More...
 
const ossimStringgetImageID () const
 Fetches the image ID. More...
 
void setImageID (const ossimString &id)
 Sets the image ID in case it is externally generated. More...
 
ossimPixelType getPixelType () const
 Returns the raster pixel alignment type. More...
 
virtual bool getRgbBandList (std::vector< ossim_uint32 > &bandList) const
 Convenience method to get the zero based rgb output band list. More...
 
template<class T >
std::shared_ptr< T > getStateAs ()
 
template<class T >
std::shared_ptr< const T > getStateAs () const
 
std::shared_ptr< ossim::ImageHandlerState > getState ()
 
std::shared_ptr< const ossim::ImageHandlerState > getState () const
 
void setState (std::shared_ptr< ossim::ImageHandlerState > state)
 
- Public Member Functions inherited from ossimImageSource
 ossimImageSource (ossimObject *owner=0)
 
 ossimImageSource (ossimObject *owner, ossim_uint32 inputListSize, ossim_uint32 outputListSize, bool inputListIsFixedFlag=true, bool outputListIsFixedFlag=true)
 
virtual ~ossimImageSource ()
 
virtual ossimRefPtr< ossimImageDatagetTile (const ossimIpt &origin, ossim_uint32 resLevel=0)
 
virtual bool getTile (ossimImageData *result, ossim_uint32 resLevel=0)
 Method to get a tile. More...
 
virtual ossimObjectgetObject ()
 For RTTI support. More...
 
virtual const ossimObjectgetObject () const
 For RTTI support. More...
 
virtual void getDecimationFactors (std::vector< ossimDpt > &decimations) const
 Will return an array of all decimations for each resolution level. More...
 
virtual void getOutputBandList (std::vector< ossim_uint32 > &bandList) const
 Initializes bandList. More...
 
virtual ossim_uint32 getTileWidth () const
 Returns the default processing tile width. More...
 
virtual ossim_uint32 getTileHeight () const
 Returns the default processing tile height. More...
 
virtual void getBoundingRect (ossimIrect &rect, ossim_uint32 resLevel=0) const
 Gets the bounding rectangle of the source. More...
 
virtual void getValidImageVertices (std::vector< ossimIpt > &validVertices, ossimVertexOrdering ordering=OSSIM_CLOCKWISE_ORDER, ossim_uint32 resLevel=0) const
 ordering specifies how the vertices should be arranged. More...
 
virtual void setImageGeometry (const ossimImageGeometry *geom)
 Default implementation sets geometry of the first input to the geometry specified. More...
 
virtual bool isIndexedData () const
 
- Public Member Functions inherited from ossimSource
 ossimSource (ossimObject *owner=0)
 
 ossimSource (ossimObject *owner, ossim_uint32 inputListSize, ossim_uint32 outputListSize, bool inputListIsFixedFlag=true, bool outputListIsFixedFlag=true)
 
virtual ~ossimSource ()
 
virtual bool isSourceEnabled () const
 
virtual void enableSource ()
 
virtual void disableSource ()
 
virtual bool getEnableFlag () const
 
virtual void setEnableFlag (bool flag)
 
virtual bool isInitialized () const
 
virtual void setInitializedFlag (bool flag)
 
virtual std::ostream & print (std::ostream &out) const
 Outputs theErrorStatus as an ossimErrorCode and an ossimString. More...
 
- Public Member Functions inherited from ossimConnectableObject
 ossimConnectableObject (ossimObject *owner=0)
 Base constructor of this object. More...
 
 ossimConnectableObject (ossimObject *owner, ossim_int32 inputListSize, ossim_int32 outputListSize, bool inputListIsFixedFlag=true, bool outputListIsFixedFlag=true)
 
virtual ~ossimConnectableObject ()
 
void setId (const ossimId &id)
 All connectable objects will have id's. More...
 
const ossimIdgetId () const
 Will allow us to get this object's id. More...
 
const ossimObjectgetOwner () const
 Fetches the current owner, most likely a container but not limited to one. More...
 
virtual void changeOwner (ossimObject *owner)
 Permits changing the object's owner. More...
 
virtual void setDescription (const ossimString &description)
 
virtual ossimString getDescription () const
 
virtual bool isConnected (ossimConnectableObjectDirectionType direction=CONNECTABLE_DIRECTION_INPUT) const
 will check the direction specified to see if all slots are full. More...
 
 OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findConnectableObject(const ossimId &id))
 
 OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findObjectOfType(RTTItypeid typeId, ossimConnectableObjectDirectionType directionType, bool recurse=true))
 
 OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findObjectOfType(const ossimString &obj, ossimConnectableObjectDirectionType directionType, bool recurse=true))
 
 OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findInputObjectOfType(const ossimString &className))
 
virtual ossim_int32 findInputIndex (const ossimConnectableObject *object)
 Return a valid index of the input list if the passed in object is found else return -1. More...
 
virtual ossim_int32 findInputIndex (const ossimId &id)
 Return a valid index of the input list if the passed id is found else return -1. More...
 
virtual ossim_int32 findOutputIndex (const ossimConnectableObject *object)
 Return a valid index of the output list if the passed in object is found else return -1. More...
 
virtual ossim_int32 findOutputIndex (const ossimId &id)
 Return a valid index of the output list if the passed in object is found else return -1. More...
 
virtual ossim_int32 getMyInputIndexToConnectTo (ossimConnectableObject *object) const
 Should return the first available index to connect to. More...
 
virtual ossim_int32 getMyOutputIndexToConnectTo (ossimConnectableObject *object) const
 Should return the first available index to connect to. More...
 
virtual bool canConnectMyOutputTo (ossim_int32 myOutputIndex, const ossimConnectableObject *object) const
 default implementation is to allow anyone to connect to us. More...
 
virtual void disconnect (ossimConnectableObject *object=0)
 Will disconnect the object passed in. More...
 
virtual void disconnect (const ossimId &id)
 Will disconnect the object passed in. More...
 
virtual ossimRefPtr< ossimConnectableObjectdisconnectMyInput (ossim_int32 inputIndex, bool disconnectOutputFlag=true, bool createEventFlag=true)
 Will disconnect the object at the given input index and generate a connection event. More...
 
virtual void disconnectMyInput (ossimConnectableObject *input, bool disconnectOutputFlag=true, bool createEventFlag=true)
 Finds the index of the passed in input and calls disconnectMyInput(inputIndex, disconnectOutputFlag, createEventFlag);. More...
 
virtual void disconnectMyInputs (ConnectableObjectList &inputList, bool disconnectOutputFlag=true, bool createEventFlag=true)
 
virtual ossimRefPtr< ossimConnectableObjectdisconnectMyOutput (ossim_int32 outputIndex, bool disconnectInputFlag=true, bool createEventFlag=true)
 Will disconnect the object at the given output index and generate a connection event. More...
 
virtual void disconnectMyOutput (ossimConnectableObject *output, bool disconnectInputFlag=true, bool createEventFlag=true)
 Will disconnect the output object. More...
 
virtual void disconnectMyOutputs (ConnectableObjectList &outputList, bool disconnectOutputFlag=true, bool createEventFlag=true)
 
virtual void disconnectAllInputs ()
 Will disconnect all of the input objects. More...
 
virtual void disconnectAllOutputs ()
 Will disconnect all of the output objects. More...
 
virtual ossim_int32 connectMyInputTo (ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true)
 Will try to connect this objects input to the passed in object. More...
 
virtual ossim_int32 connectMyInputTo (ossim_int32 inputIndex, ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true)
 Will connect the specified input to the passed in object. More...
 
virtual bool connectMyInputTo (ConnectableObjectList &inputList, bool makeOutputConnection=true, bool createEventFlag=true)
 
virtual ossim_int32 connectMyOutputTo (ossimConnectableObject *outputObject, bool makeInputConnection=true, bool createEventFlag=true)
 Will try to connect this objects output to the passed in object. More...
 
virtual bool connectMyOutputTo (ConnectableObjectList &outputList, bool makeInputConnection=true, bool createEventFlag=true)
 
virtual bool connectInputList (ConnectableObjectList &inputList)
 Will disconnect itself from all inputs and reset to the passed in input list. More...
 
virtual bool connectOutputList (ConnectableObjectList &outputList)
 Will disconnect itself from all outputs and reset to the passed in output list. More...
 
virtual ossim_uint32 getNumberOfInputs () const
 Returns the number of input objects. More...
 
virtual ossim_uint32 getNumberOfOutputs () const
 Return the number of output objects. More...
 
ossimConnectableObjectgetInput (ossim_uint32 index=0)
 returns the object at the specified index. More...
 
const ossimConnectableObjectgetInput (ossim_uint32 index=0) const
 returns the object at the specified index. More...
 
ossimConnectableObjectgetOutput (ossim_uint32 index=0)
 returns the object at the specified index. More...
 
const ossimConnectableObjectgetOutput (ossim_uint32 index=0) const
 returns the object at the specified index. More...
 
virtual void setNumberOfInputs (ossim_int32 numberOfInputs)
 Will set the number of inputs. More...
 
virtual bool getInputListIsFixedFlag () const
 
virtual bool getOutputListIsFixedFlag () const
 
virtual void setNumberOfOutputs (ossim_int32 numberOfInputs)
 Will set the number of outputs. More...
 
const ConnectableObjectListgetInputList () const
 
const ConnectableObjectListgetOutputList () const
 
ConnectableObjectListgetInputList ()
 
ConnectableObjectListgetOutputList ()
 
 OSSIM_DEPRECATE_METHOD (virtual void findAllObjectsOfType(ConnectableObjectList &result, const RTTItypeid &typeInfo, bool recurse=true))
 
 OSSIM_DEPRECATE_METHOD (virtual void findAllObjectsOfType(ConnectableObjectList &result, const ossimString &className, bool recurse=true))
 
virtual void propagateEventToOutputs (ossimEvent &event)
 
virtual void propagateEventToInputs (ossimEvent &event)
 
virtual void setProperty (const ossimString &name, const ossimString &value)
 
virtual ossim_uint32 saveStateOfAllInputs (ossimKeywordlist &kwl, bool saveThisStateFlag=true, ossim_uint32 objectIndex=1, const char *prefix=0) const
 Save the state of all inputs to a keyword list. More...
 
virtual bool fillContainer (ossimConnectableContainer &container)
 Inserts this object and all of its children and inputs into the container provided. More...
 
bool moveInputUp (const ossimId &id)
 Moves the input connection matching id up one in the connection list. More...
 
bool moveInputDown (const ossimId &id)
 Moves the input connection matching id down one in the connection list. More...
 
bool moveInputToTop (const ossimId &id)
 Moves the input connection matching id to the top of the connection list. More...
 
bool moveInputToBottom (const ossimId &id)
 Moves the input connection matching id to the bottom of the connection list. More...
 
virtual void accept (ossimVisitor &visitor)
 We will add a visitor interface for all connectable objects. More...
 
- Public Member Functions inherited from ossimObject
 ossimObject ()
 
virtual ~ossimObject ()
 
virtual ossimObjectdup () const
 
virtual ossimString getShortName () const
 
virtual ossimString getLongName () const
 
virtual ossimString getClassName () const
 
virtual RTTItypeid getType () const
 
virtual bool canCastTo (ossimObject *obj) const
 
virtual bool canCastTo (const RTTItypeid &id) const
 
virtual bool canCastTo (const ossimString &parentClassName) const
 
virtual bool isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const
 
- Public Member Functions inherited from ossimReferenced
 ossimReferenced ()
 
 ossimReferenced (const ossimReferenced &)
 
ossimReferencedoperator= (const ossimReferenced &)
 
void ref () const
 increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
 
void unref () const
 decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
void unref_nodelete () const
 decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
int referenceCount () const
 
- Public Member Functions inherited from ossimListenerManager
 ossimListenerManager ()
 
virtual ~ossimListenerManager ()
 
virtual void fireEvent (ossimEvent &event)
 
virtual bool addListener (ossimListener *listener)
 
virtual bool removeListener (ossimListener *listener)
 
virtual bool findListener (ossimListener *listener)
 
- Public Member Functions inherited from ossimPropertyInterface
 ossimPropertyInterface ()
 
virtual ~ossimPropertyInterface ()
 
virtual ossimString getPropertyValueAsString (const ossimString &name) const
 
void getPropertyList (std::vector< ossimRefPtr< ossimProperty > > &propertyList) const
 
void setProperties (std::vector< ossimRefPtr< ossimProperty > > &propertyList)
 
- Public Member Functions inherited from ossimErrorStatusInterface
 ossimErrorStatusInterface ()
 
virtual ~ossimErrorStatusInterface ()
 
virtual ossimErrorCode getErrorStatus () const
 
virtual ossimString getErrorStatusString () const
 
virtual void setErrorStatus (ossimErrorCode error_status) const
 
virtual void setErrorStatus () const
 
virtual void clearErrorStatus () const
 
bool hasError () const
 

Private Member Functions

bool getCoordinate (std::vector< ossimRefPtr< ossimXmlNode > > nodes, ossim_float64 &north, ossim_float64 &south, ossim_float64 &east, ossim_float64 &west)
 
ossimRefPtr< ossimXmlNodefindLatLonNode (std::vector< ossimRefPtr< ossimXmlNode > >nodes)
 
bool isKmlSuperOverlayFile (std::vector< ossimRefPtr< ossimXmlNode > > nodes)
 
bool getTopLevelKmlFileInfo ()
 

Private Attributes

ossimRefPtr< ossimXmlDocumentm_xmlDocument
 
ossimRefPtr< ossimImageGeometrytheImageGeometry
 
ossimDrect theImageBound
 

Additional Inherited Members

- Public Types inherited from ossimImageHandler
enum  ossimImageHandlerOverviewCompressionType {
  OSSIM_OVERVIEW_COMPRESSION_NONE = 0, OSSIM_OVERVIEW_COMPRESSION_JPEG, OSSIM_OVERVIEW_COMPRESSION_LZW, OSSIM_OVERVIEW_COMPRESSION_DEFLATE,
  OSSIM_OVERVIEW_COMPRESSION_PACKBITS
}
 
- Public Types inherited from ossimConnectableObject
enum  ossimConnectableObjectDirectionType { CONNECTABLE_DIRECTION_NONE = 0, CONNECTABLE_DIRECTION_INPUT = 1, CONNECTABLE_DIRECTION_OUTPUT = 2 }
 
typedef std::vector< ossimRefPtr< ossimConnectableObject > > ConnectableObjectList
 
- Protected Member Functions inherited from ossimImageHandler
virtual ossimRefPtr< ossimImageGeometrygetExternalImageGeometry () const
 Returns the image geometry object associated with this tile source or NULL if non defined. More...
 
virtual bool getOverviewTile (ossim_uint32 resLevel, ossimImageData *result)
 Method to get an overview tile. More...
 
bool initVertices (const char *file)
 Opens file and attempts to initialize the valid image vertices. More...
 
virtual void completeOpen ()
 Will complete the opening process. More...
 
void initImageParameters (ossimImageGeometry *geom) const
 Convenience method to set things needed in the image geometry from the image handler. More...
 
virtual void establishDecimationFactors ()
 Virtual method determines the decimation factors at each resolution level. More...
 
virtual bool setOutputBandList (const std::vector< ossim_uint32 > &inBandList, std::vector< ossim_uint32 > &outBandList)
 Convenience method to set output band list. More...
 
void getFilenameWithNoExtension (ossimFilename &f) const
 Get filename with no extension, using supplentary directory for dirname if set. More...
 
- Protected Member Functions inherited from ossimImageSource
 ossimImageSource (const ossimImageSource &rhs)
 
const ossimImageSourceoperator= (const ossimImageSource &)
 
- Protected Member Functions inherited from ossimSource
 ossimSource (const ossimSource &rhs)
 
const ossimSourceoperator= (const ossimSource &rhs)
 
- Protected Member Functions inherited from ossimConnectableObject
ossimConnectableObjectfindObjectOfType (ConnectableObjectList *connectableList, ossimVisitor &visitor)
 
- Protected Member Functions inherited from ossimReferenced
virtual ~ossimReferenced ()
 
- Protected Member Functions inherited from ossimListenerManager
 ossimListenerManager (const ossimListenerManager &rhs)
 
- Protected Attributes inherited from ossimImageHandler
ossimFilename theImageFile
 
ossimFilename theOverviewFile
 
ossimFilename theSupplementaryDirectory
 
ossimRefPtr< ossimImageHandlertheOverview
 
vector< ossimIpttheValidImageVertices
 
ossimImageMetaData theMetaData
 
ossimRefPtr< ossimImageGeometrytheGeometry
 
ossimRefPtr< ossimNBandLutDataObjecttheLut
 
std::vector< ossimDpttheDecimationFactors
 
ossimString theImageID
 
ossim_uint32 theStartingResLevel
 theStartingResLevel If set to something other than zero(default) this is indicative that the reader is an overview. More...
 
bool theOpenOverviewFlag
 If true opening of overviews will be attempted. More...
 
ossimPixelType thePixelType
 
std::shared_ptr< ossim::ImageHandlerState > m_state
 
- Protected Attributes inherited from ossimSource
bool theEnableFlag
 
bool theInitializedFlag
 
- Protected Attributes inherited from ossimConnectableObject
ossimId theId
 
ossimString theDescription
 
ossimObjecttheOwner
 
bool theInputListIsFixedFlag
 Indicates whether the theInputObjectList is fixed. More...
 
bool theOutputListIsFixedFlag
 Indicates whether the theOutputObjectList is fixed. More...
 
ConnectableObjectList theInputObjectList
 Holds a list of input objects. More...
 
ConnectableObjectList theOutputObjectList
 Holds a list of output objects. More...
 
- Protected Attributes inherited from ossimListenerManager
std::list< ossimListener * > theListenerList
 
bool theEnabledFlag
 
std::list< ossimListener * > theDelayedAdd
 
std::list< ossimListener * > theDelayedRemove
 
bool theFireEventFlag
 
- Protected Attributes inherited from ossimErrorStatusInterface
ossimErrorCode theErrorStatus
 

Detailed Description

Definition at line 32 of file ossimKmlSuperOverlayReader.h.

Constructor & Destructor Documentation

◆ ossimKmlSuperOverlayReader()

ossimKmlSuperOverlayReader::ossimKmlSuperOverlayReader ( )

Definition at line 45 of file ossimKmlSuperOverlayReader.cpp.

47  m_xmlDocument(0),
49 {
50 }
ossimRefPtr< ossimXmlDocument > m_xmlDocument
ossimImageHandler()
Constructor (default):

◆ ~ossimKmlSuperOverlayReader()

ossimKmlSuperOverlayReader::~ossimKmlSuperOverlayReader ( )
virtual

Definition at line 55 of file ossimKmlSuperOverlayReader.cpp.

References close().

56 {
57  close();
58 }
virtual void close()
Deletes the overview and clears the valid image vertices.

Member Function Documentation

◆ close()

void ossimKmlSuperOverlayReader::close ( )
virtual

Deletes the overview and clears the valid image vertices.

Derived classes should implement.

Reimplemented from ossimImageHandler.

Definition at line 182 of file ossimKmlSuperOverlayReader.cpp.

References m_xmlDocument, theImageGeometry, and ossimRefPtr< T >::valid().

Referenced by open(), and ~ossimKmlSuperOverlayReader().

183 {
184  if (theImageGeometry.valid())
185  {
186  theImageGeometry = 0;
187  }
188  if (m_xmlDocument.valid())
189  {
190  m_xmlDocument = 0;
191  }
192 }
ossimRefPtr< ossimImageGeometry > theImageGeometry
bool valid() const
Definition: ossimRefPtr.h:75
ossimRefPtr< ossimXmlDocument > m_xmlDocument

◆ createDefaultProj()

ossimMapProjection * ossimKmlSuperOverlayReader::createDefaultProj ( ossim_float64  north,
ossim_float64  south,
ossim_float64  east,
ossim_float64  west 
)

Definition at line 336 of file ossimKmlSuperOverlayReader.cpp.

References ossim::cosd(), ossimMapProjection::setDecimalDegreesPerPixel(), ossimEquDistCylProjection::setOrigin(), and ossimMapProjection::setUlGpt().

Referenced by open().

340 {
342 
343  ossim_float64 centerLat = (south + north) / 2.0;
344  ossim_float64 centerLon = (west + east) / 2.0;
345  ossim_float64 deltaLat = north - south;
346 
347  // Scale that gives 1024 pixel in the latitude direction.
348  ossim_float64 scaleLat = deltaLat / 1024.0;
349  ossim_float64 scaleLon = scaleLat*ossim::cosd(std::fabs(centerLat));
350  ossimGpt origin(centerLat, centerLon, 0.0);
351  ossimDpt scale(scaleLon, scaleLat);
352 
353  // Set the origin.
354  proj->setOrigin(origin);
355 
356  // Set the tie point.
357  proj->setUlGpt( ossimGpt(north, west));
358 
359  // Set the scale. Note this will handle computing meters per pixel.
360  proj->setDecimalDegreesPerPixel(scale);
361 
362  return proj;
363 }
virtual void setDecimalDegreesPerPixel(const ossimDpt &gsd)
virtual void setUlGpt(const ossimGpt &ulGpt)
double ossim_float64
virtual void setOrigin(const ossimGpt &origin)
double cosd(double x)
Definition: ossimCommon.h:259

◆ findLatLonNode()

ossimRefPtr< ossimXmlNode > ossimKmlSuperOverlayReader::findLatLonNode ( std::vector< ossimRefPtr< ossimXmlNode > >  nodes)
private

Definition at line 275 of file ossimKmlSuperOverlayReader.cpp.

References ossimRefPtr< T >::valid().

Referenced by getCoordinate().

276 {
277  ossimRefPtr<ossimXmlNode> latlonNode = 0;
278  for (ossim_uint32 i = 0; i < nodes.size(); i++)
279  {
280  if (nodes[i]->getTag().downcase() == "latlonaltbox")
281  {
282  return nodes[i];
283  }
284  }
285  for (ossim_uint32 j = 0; j < nodes.size(); j++)
286  {
287  latlonNode = findLatLonNode(nodes[j]->getChildNodes());
288  if (latlonNode.valid())
289  {
290  return latlonNode;
291  }
292  }
293  return latlonNode;
294 }
bool valid() const
Definition: ossimRefPtr.h:75
ossimRefPtr< ossimXmlNode > findLatLonNode(std::vector< ossimRefPtr< ossimXmlNode > >nodes)
unsigned int ossim_uint32

◆ getCoordinate()

bool ossimKmlSuperOverlayReader::getCoordinate ( std::vector< ossimRefPtr< ossimXmlNode > >  nodes,
ossim_float64 north,
ossim_float64 south,
ossim_float64 east,
ossim_float64 west 
)
private

Definition at line 296 of file ossimKmlSuperOverlayReader.cpp.

References ossimString::downcase(), findLatLonNode(), ossimXmlNode::getChildNodes(), ossimString::toFloat64(), and ossimRefPtr< T >::valid().

Referenced by open().

301 {
302  ossimRefPtr<ossimXmlNode> latlonNode = findLatLonNode(nodes);
303  if (!latlonNode.valid())
304  {
305  return false;
306  }
307 
308  std::vector<ossimRefPtr<ossimXmlNode> > latlonNodes = latlonNode->getChildNodes();
309  if (latlonNodes.size() != 4)
310  {
311  return false;
312  }
313  for (ossim_uint32 i = 0; i < latlonNodes.size(); i++)
314  {
315  ossimString str = latlonNodes[i]->getTag().downcase();
316  if (str == "north")
317  {
318  north = latlonNodes[i]->getText().toFloat64();
319  }
320  else if (str == "south")
321  {
322  south = latlonNodes[i]->getText().toFloat64();
323  }
324  else if (str == "east")
325  {
326  east = latlonNodes[i]->getText().toFloat64();
327  }
328  else if (str == "west")
329  {
330  west = latlonNodes[i]->getText().toFloat64();
331  }
332  }
333  return true;
334 }
bool valid() const
Definition: ossimRefPtr.h:75
const ossimXmlNode::ChildListType & getChildNodes() const
ossimRefPtr< ossimXmlNode > findLatLonNode(std::vector< ossimRefPtr< ossimXmlNode > >nodes)
unsigned int ossim_uint32
ossim_float64 toFloat64() const
static ossimString downcase(const ossimString &aString)
Definition: ossimString.cpp:48

◆ getImageGeometry()

ossimRefPtr< ossimImageGeometry > ossimKmlSuperOverlayReader::getImageGeometry ( )
virtual

Returns the image geometry object associated with this tile source or NULL if non defined.

The geometry contains full-to-local image transform as well as projection (image-to-world).

Reimplemented from ossimImageHandler.

Definition at line 235 of file ossimKmlSuperOverlayReader.cpp.

References theImageGeometry.

236 {
237  return theImageGeometry;
238 }
ossimRefPtr< ossimImageGeometry > theImageGeometry

◆ getImageRectangle()

ossimIrect ossimKmlSuperOverlayReader::getImageRectangle ( ossim_uint32  reduced_res_level = 0) const
virtual

Returns the zero based image rectangle for the reduced resolution data set (rrds) passed in. Note that rrds 0 is the highest resolution rrds.

Reimplemented from ossimImageHandler.

Definition at line 230 of file ossimKmlSuperOverlayReader.cpp.

References theImageBound.

231 {
232  return theImageBound;
233 }

◆ getImageTileHeight()

ossim_uint32 ossimKmlSuperOverlayReader::getImageTileHeight ( ) const
virtual

Returns the tile width of the image or 0 if the image is not tiled. Note: this is not the same as the ossimImageSource::getTileWidth which returns the output tile width which can be different than the internal image tile width on disk.

Implements ossimImageHandler.

Definition at line 210 of file ossimKmlSuperOverlayReader.cpp.

211 {
212  return 0;
213 }

◆ getImageTileWidth()

ossim_uint32 ossimKmlSuperOverlayReader::getImageTileWidth ( ) const
virtual

Returns the tile width of the image or 0 if the image is not tiled. Note: this is not the same as the ossimImageSource::getTileWidth which returns the output tile width which can be different than the internal image tile width on disk.

Implements ossimImageHandler.

Definition at line 215 of file ossimKmlSuperOverlayReader.cpp.

216 {
217  return 0;
218 }

◆ getInternalImageGeometry()

ossimRefPtr< ossimImageGeometry > ossimKmlSuperOverlayReader::getInternalImageGeometry ( ) const
virtual

Returns the image geometry object associated with this tile source or NULL if non defined.

The geometry contains full-to-local image transform as well as projection (image-to-world)

Reimplemented from ossimImageHandler.

Definition at line 177 of file ossimKmlSuperOverlayReader.cpp.

References theImageGeometry.

178 {
179  return theImageGeometry;
180 }
ossimRefPtr< ossimImageGeometry > theImageGeometry

◆ getNumberOfInputBands()

ossim_uint32 ossimKmlSuperOverlayReader::getNumberOfInputBands ( ) const
virtual

Returns the number 0 for bands for kml super overlay Satisfies pure virtual from ImageHandler class.

Implements ossimImageSource.

Definition at line 200 of file ossimKmlSuperOverlayReader.cpp.

201 {
202  return 0;
203 }

◆ getNumberOfLines()

ossim_uint32 ossimKmlSuperOverlayReader::getNumberOfLines ( ossim_uint32  reduced_res_level = 0) const
virtual

Returns the number of bands in the image. Satisfies pure virtual from ImageHandler class.

Implements ossimImageHandler.

Definition at line 220 of file ossimKmlSuperOverlayReader.cpp.

References ossimDrect::height(), and theImageBound.

221 {
222  return theImageBound.height();
223 }
ossim_float64 height() const
Definition: ossimDrect.h:517

◆ getNumberOfOutputBands()

ossim_uint32 ossimKmlSuperOverlayReader::getNumberOfOutputBands ( ) const
virtual

Returns the number 0 for bands for kml super overlay Satisfies pure virtual from ImageHandler class.

Reimplemented from ossimImageSource.

Definition at line 205 of file ossimKmlSuperOverlayReader.cpp.

206 {
207  return 0;
208 }

◆ getNumberOfSamples()

ossim_uint32 ossimKmlSuperOverlayReader::getNumberOfSamples ( ossim_uint32  reduced_res_level = 0) const
virtual

Returns the number of bands available from an image. Satisfies pure virtual from ImageHandler class.

Implements ossimImageHandler.

Definition at line 225 of file ossimKmlSuperOverlayReader.cpp.

References theImageBound, and ossimDrect::width().

226 {
227  return theImageBound.width();
228 }
ossim_float64 width() const
Definition: ossimDrect.h:522

◆ getOutputScalarType()

ossimScalarType ossimKmlSuperOverlayReader::getOutputScalarType ( ) const
virtual

This will be used to query the output pixel type of the tile source.

Please ignore the argument. It will soon be removed.

Reimplemented from ossimImageSource.

Definition at line 240 of file ossimKmlSuperOverlayReader.cpp.

References OSSIM_SCALAR_UNKNOWN.

241 {
242  return OSSIM_SCALAR_UNKNOWN;
243 }

◆ getTile()

ossimRefPtr< ossimImageData > ossimKmlSuperOverlayReader::getTile ( const ossimIrect tileRect,
ossim_uint32  resLevel = 0 
)
virtual

Returns a null pointer for kml super overlay. Satisfies pure virtual from ImageHandler class.

Reimplemented from ossimImageSource.

Definition at line 194 of file ossimKmlSuperOverlayReader.cpp.

196 {
197  return 0;
198 }

◆ getTopLevelKmlFileInfo()

bool ossimKmlSuperOverlayReader::getTopLevelKmlFileInfo ( )
private

Definition at line 365 of file ossimKmlSuperOverlayReader.cpp.

References ossimString::c_str(), ossimObject::getClassName(), m_xmlDocument, ossimFilename::noExtension(), ossimErrorCodes::OSSIM_ERROR, ossimSetError(), ossimXmlDocument::read(), ossimFilename::rename(), and ossimImageHandler::theImageFile.

Referenced by open().

366 {
368  ossimFilename tmpZipfile = ossimString(theImageFile.noExtension() + ".zip");
369  unzFile unzipfile = unzOpen(tmpZipfile.c_str());
370  if (!unzipfile)
371  {
374  "Unable to open target zip file..");
375 
376  tmpZipfile.rename(ossimString(tmpZipfile.noExtension() + ".kmz"));//if open fails, rename the file back to .kmz
377  return false;
378  }
379 
380  std::string kmzStringBuffer;
381 
382  if (unzGoToFirstFile(unzipfile) == UNZ_OK)
383  {
384  if (unzOpenCurrentFile(unzipfile) == UNZ_OK)
385  {
386  unsigned char buffer[4096] = {0};
387  int bytesRead = 0;
388  int read = 1;
389  while (read > 0)
390  {
391  read = unzReadCurrentFile(unzipfile, buffer, 4096);
392  bytesRead += read;
393  }
394  if ( bytesRead )
395  {
396  for (int i = 0; i < bytesRead; ++i)
397  {
398  // Copy to string casting to char.
399  kmzStringBuffer.push_back( static_cast<char>(buffer[i]) );
400  }
401  }
402  }
403  else
404  {
405  tmpZipfile.rename(ossimString(tmpZipfile.noExtension() + ".kmz"));//if read fails, rename the file back to .kmz
406  unzCloseCurrentFile(unzipfile);
407  unzClose(unzipfile);
408  return false;
409  }
410  }
411  else
412  {
413  tmpZipfile.rename(ossimString(tmpZipfile.noExtension() + ".kmz"));
414  unzClose(unzipfile);
415  return false;
416  }
417  unzCloseCurrentFile(unzipfile);
418  unzClose(unzipfile);
419 
420  std::istringstream in(kmzStringBuffer);
421  if ( in.good() )
422  {
424  m_xmlDocument->read( in );
425  }
426  else
427  {
428  tmpZipfile.rename(ossimString(tmpZipfile.noExtension() + ".kmz"));
429  return false;
430  }
431 
432  tmpZipfile.rename(ossimString(tmpZipfile.noExtension() + ".kmz"));
433 
434  return true;
435 }
OSSIMDLLEXPORT void ossimSetError(const char *className, ossim_int32 error, const char *fmtString=0,...)
ossimFilename noExtension() const
ossimFilename theImageFile
static const ossimErrorCode OSSIM_ERROR
virtual ossimString getClassName() const
Definition: ossimObject.cpp:64
ossimRefPtr< ossimXmlDocument > m_xmlDocument
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string&#39;s contents...
Definition: ossimString.h:396
bool read(std::istream &in)
std::basic_istringstream< char > istringstream
Class for char input memory streams.
Definition: ossimIosFwd.h:32
bool rename(const ossimFilename &destFile, bool overwriteDestinationFlag=true) const

◆ isKmlSuperOverlayFile()

bool ossimKmlSuperOverlayReader::isKmlSuperOverlayFile ( std::vector< ossimRefPtr< ossimXmlNode > >  nodes)
private

Definition at line 254 of file ossimKmlSuperOverlayReader.cpp.

Referenced by open().

255 {
256  for (ossim_uint32 i = 0; i < nodes.size(); i++)
257  {
258  if (nodes[i]->getTag().downcase() == "placemark") //means vector kml file with point, polygon, or lines
259  {
260  return false;
261  }
262 
263  if (nodes[i]->getTag().downcase() == "region" || nodes[i]->getTag().downcase() == "networkLink") //means super overlay kml file
264  {
265  return true;
266  }
267  }
268  for (ossim_uint32 i = 0; i < nodes.size(); i++)
269  {
270  return isKmlSuperOverlayFile(nodes[i]->getChildNodes());
271  }
272  return false;
273 }
unsigned int ossim_uint32
bool isKmlSuperOverlayFile(std::vector< ossimRefPtr< ossimXmlNode > > nodes)

◆ isOpen()

bool ossimKmlSuperOverlayReader::isOpen ( ) const
virtual

Derived classes must implement this method to be concrete.

Returns
true if open, false if not.

Implements ossimImageHandler.

Definition at line 245 of file ossimKmlSuperOverlayReader.cpp.

References ossimString::empty(), and ossimImageHandler::theImageFile.

Referenced by open().

246 {
247  if (theImageFile.empty())
248  {
249  return false;
250  }
251  return true;
252 }
ossimFilename theImageFile
bool empty() const
Definition: ossimString.h:411

◆ loadState()

bool ossimKmlSuperOverlayReader::loadState ( const ossimKeywordlist kwl,
const char *  prefix = 0 
)
virtual

Method to the load (recreate) the state of an object from a keyword list. Return true if ok or false on error.

Reimplemented from ossimImageHandler.

Definition at line 172 of file ossimKmlSuperOverlayReader.cpp.

References ossimImageHandler::loadState().

173 {
174  return ossimImageHandler::loadState(kwl, prefix);
175 }
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of an object from a keyword list.

◆ open()

bool ossimKmlSuperOverlayReader::open ( )
virtual
Returns
Returns true on success, false on error.
Note
This method relies on the data member ossimImageData::theImageFile being set. Callers should do a "setFilename" prior to calling this method or use the ossimImageHandler::open that takes a file name and an entry index.

Implements ossimImageHandler.

Definition at line 63 of file ossimKmlSuperOverlayReader.cpp.

References close(), createDefaultProj(), ossimString::downcase(), ossimFilename::ext(), ossimXmlNode::getChildNodes(), getCoordinate(), ossimXmlDocument::getRoot(), getTopLevelKmlFileInfo(), isKmlSuperOverlayFile(), isOpen(), m_xmlDocument, ossimDrect::makeNan(), theImageBound, ossimImageHandler::theImageFile, theImageGeometry, ossimRefPtr< T >::valid(), and ossimImageGeometry::worldToLocal().

64 {
65  // const char* MODULE = "ossimKmlSuperOverlayReader::open";
66  bool result = false;
67 
68  if(isOpen())
69  {
70  close();
71  }
72 
73  if (theImageFile.ext().downcase() == "kmz")
74  {
75  result = getTopLevelKmlFileInfo();
76  if (result == false)
77  {
78  return result;
79  }
80  }
81  else
82  {
84  }
85 
86  if ( m_xmlDocument.valid() )
87  {
89  if (rootNode.valid())
90  {
91  std::vector<ossimRefPtr<ossimXmlNode> > nodes = rootNode->getChildNodes();
92  result = isKmlSuperOverlayFile(nodes);
93 
94  if (result == false) //let gdal kml handle vector kml file
95  {
96  return result;
97  }
98 
99  ossim_float64 north = 0.0;
100  ossim_float64 south = 0.0;
101  ossim_float64 east = 0.0;
102  ossim_float64 west = 0.0;
103  result = getCoordinate(nodes, north, south, east, west);
104 
105  if (result == false)
106  {
107  return result;
108  }
109 
110  if (!theImageGeometry.valid())
111  {
112  theImageGeometry = new ossimImageGeometry(0, createDefaultProj(north, south, east, west));
113  if (theImageGeometry.valid())
114  {
115  result = true;
116 
118 
119  //if the projection is default or geographic, uses the bounding of the OGR Layer
120  vector<ossimGpt> points;
121  points.push_back(ossimGpt(north, west));
122  points.push_back(ossimGpt(north, east));
123  points.push_back(ossimGpt(south, east));
124  points.push_back(ossimGpt(south, west));
125 
126 
127  std::vector<ossimDpt> rectTmp;
128  rectTmp.resize(points.size());
129  for(std::vector<ossimGpt>::size_type index=0; index < points.size(); ++index)
130  {
131  theImageGeometry->worldToLocal(points[(int)index], rectTmp[(int)index]);
132  }
133 
134  ossimDrect rect = ossimDrect(rectTmp[0],
135  rectTmp[1],
136  rectTmp[2],
137  rectTmp[3]);
138 
139  theImageBound = rect;
140  }
141  else
142  {
143  result = false;
144  }
145  }
146  }
147  else
148  {
149  result = false;
150  }
151  }
152  else
153  {
154  result = false;
155  }
156 
157  return result;
158 }
void makeNan()
Definition: ossimDrect.h:388
ossimRefPtr< ossimImageGeometry > theImageGeometry
ossimFilename theImageFile
bool valid() const
Definition: ossimRefPtr.h:75
const ossimXmlNode::ChildListType & getChildNodes() const
double ossim_float64
static ossimString downcase(const ossimString &aString)
Definition: ossimString.cpp:48
ossimMapProjection * createDefaultProj(ossim_float64 north, ossim_float64 south, ossim_float64 east, ossim_float64 west)
Container class that holds both 2D transform and 3D projection information for an image Only one inst...
virtual bool isOpen() const
Derived classes must implement this method to be concrete.
ossimRefPtr< ossimXmlDocument > m_xmlDocument
ossimString ext() const
bool worldToLocal(const ossimGpt &world_pt, ossimDpt &local_pt) const
Exposes the 3D world-to-local image coordinate reverse projection.
ossimRefPtr< ossimXmlNode > getRoot()
bool getCoordinate(std::vector< ossimRefPtr< ossimXmlNode > > nodes, ossim_float64 &north, ossim_float64 &south, ossim_float64 &east, ossim_float64 &west)
virtual void close()
Deletes the overview and clears the valid image vertices.
bool isKmlSuperOverlayFile(std::vector< ossimRefPtr< ossimXmlNode > > nodes)

◆ saveState()

bool ossimKmlSuperOverlayReader::saveState ( ossimKeywordlist kwl,
const char *  prefix = 0 
) const
virtual

Method to save the state of an object to a keyword list. Return true if ok or false on error.

Reimplemented from ossimImageHandler.

Definition at line 163 of file ossimKmlSuperOverlayReader.cpp.

References ossimImageHandler::saveState().

165 {
166  return ossimImageHandler::saveState(kwl, prefix);
167 }
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save the state of an object to a keyword list.

Member Data Documentation

◆ m_xmlDocument

ossimRefPtr<ossimXmlDocument> ossimKmlSuperOverlayReader::m_xmlDocument
private

Definition at line 146 of file ossimKmlSuperOverlayReader.h.

Referenced by close(), getTopLevelKmlFileInfo(), and open().

◆ theImageBound

ossimDrect ossimKmlSuperOverlayReader::theImageBound
private

◆ theImageGeometry

ossimRefPtr<ossimImageGeometry> ossimKmlSuperOverlayReader::theImageGeometry
private

The documentation for this class was generated from the following files: