OTB  6.7.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
otb::KmzProductWriter< TInputImage > Class Template Reference

#include <otbKmzProductWriter.h>

+ Inheritance diagram for otb::KmzProductWriter< TInputImage >:
+ Collaboration diagram for otb::KmzProductWriter< TInputImage >:

Public Types

typedef itk::CastImageFilter
< InputImageType, VectorImage
< OutputPixelType > > 
CastFilterType
 
typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef
VectorDataType::DataNodeType 
DataNodeType
 
typedef InputImageType::IndexType IndexType
 
typedef InputImageType::PixelType InputImagePixelType
 
typedef InputImageType::Pointer InputImagePointer
 
typedef TInputImage InputImageType
 
typedef
TransformType::InputPointType 
InputPointType
 
typedef
InputImageType::InternalPixelType 
InternalPixelType
 
typedef std::pair< std::string,
InputImagePointer
LegendPairType
 
typedef std::vector
< LegendPairType
LegendVectorType
 
typedef unsigned char OutputPixelType
 
typedef
TransformType::OutputPointType 
OutputPointType
 
typedef itk::SmartPointer< SelfPointer
 
typedef DataNodeType::PolygonType PolygonType
 
typedef InputImageType::RegionType RegionType
 
typedef KmzProductWriter Self
 
typedef InputImageType::SizeType SizeType
 
typedef
StreamingShrinkImageFilter
< InputImageType,
InputImageType
StreamingShrinkImageFilterType
 
typedef itk::ProcessObject Superclass
 
typedef GenericRSTransform TransformType
 
typedef VectorDataFileWriter
< VectorDataType
VectorDataFileWriterType
 
typedef VectorData< double, 2 > VectorDataType
 
typedef MultiChannelExtractROI
< InternalPixelType,
OutputPixelType
VectorImageExtractROIFilterType
 
typedef
VectorRescaleIntensityImageFilter
< InputImageType,
InputImageType
VectorRescaleIntensityImageFilterType
 
typedef ImageFileWriter
< VectorImage< OutputPixelType > > 
VectorWriterType
 
typedef PolygonType::VertexType VertexType
 
- Public Types inherited from itk::ProcessObject
typedef SmartPointer< const SelfConstPointer
 
typedef
DataObject::DataObjectIdentifierType 
DataObjectIdentifierType
 
typedef DataObject::Pointer DataObjectPointer
 
typedef std::vector
< DataObjectPointer
DataObjectPointerArray
 
typedef
DataObjectPointerArray::size_type 
DataObjectPointerArraySizeType
 
typedef std::vector
< DataObjectIdentifierType
NameArray
 
typedef SmartPointer< SelfPointer
 
typedef ProcessObject Self
 
typedef Object Superclass
 
- Public Types inherited from itk::Object
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef Object Self
 
typedef LightObject Superclass
 
- Public Types inherited from itk::LightObject
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef LightObject Self
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
const InputImageTypeGetInput (void)
 
const InputImageTypeGetInput (unsigned int idx)
 
virtual const char * GetNameOfClass () const
 
virtual void SetInput (const InputImageType *image)
 
virtual void SetInput (unsigned int, const TInputImage *image)
 
virtual void SetLogo (InputImagePointer _arg)
 
virtual void SetPath (const char *_arg)
 
void Update () override
 
void AddLegend (const std::string &description, const InputImagePointer legend)
 
void AddLegend (const InputImagePointer legend)
 
- Public Member Functions inherited from itk::ProcessObject
virtual void AbortGenerateDataOff ()
 
virtual void AbortGenerateDataOn ()
 
virtual void EnlargeOutputRequestedRegion (DataObject *)
 
virtual const bool & GetAbortGenerateData () const
 
DataObjectPointerArray GetIndexedInputs ()
 
DataObjectPointerArray GetIndexedOutputs ()
 
NameArray GetInputNames () const
 
DataObjectPointerArray GetInputs ()
 
MultiThreader * GetMultiThreader () const
 
DataObjectPointerArraySizeType GetNumberOfIndexedInputs () const
 
DataObjectPointerArraySizeType GetNumberOfIndexedOutputs () const
 
DataObjectPointerArraySizeType GetNumberOfInputs () const
 
DataObjectPointerArraySizeType GetNumberOfOutputs () const
 
virtual const ThreadIdTypeGetNumberOfThreads () const
 
virtual
DataObjectPointerArraySizeType 
GetNumberOfValidRequiredInputs () const
 
NameArray GetOutputNames () const
 
DataObjectPointerArray GetOutputs ()
 
virtual const float & GetProgress () const
 
virtual const bool & GetReleaseDataBeforeUpdateFlag () const
 
virtual bool GetReleaseDataFlag () const
 
NameArray GetRequiredInputNames () const
 
bool HasInput (const DataObjectIdentifierType &key) const
 
bool HasOutput (const DataObjectIdentifierType &key) const
 
virtual DataObjectPointer MakeOutput (const DataObjectIdentifierType &)
 
virtual DataObjectPointer MakeOutput (DataObjectPointerArraySizeType idx)
 
virtual void PrepareOutputs ()
 
virtual void PropagateRequestedRegion (DataObject *output)
 
virtual void ReleaseDataBeforeUpdateFlagOff ()
 
virtual void ReleaseDataBeforeUpdateFlagOn ()
 
void ReleaseDataFlagOff ()
 
void ReleaseDataFlagOn ()
 
virtual void ResetPipeline ()
 
virtual void SetAbortGenerateData (bool _arg)
 
virtual void SetNumberOfThreads (ThreadIdType _arg)
 
void SetProgress (float progress)
 
virtual void SetReleaseDataBeforeUpdateFlag (bool _arg)
 
virtual void SetReleaseDataFlag (bool flag)
 
virtual void UpdateLargestPossibleRegion ()
 
virtual void UpdateOutputData (DataObject *output)
 
virtual void UpdateOutputInformation ()
 
void UpdateProgress (float progress)
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
const MetaDataDictionaryGetMetaDataDictionary () const
 
MetaDataDictionaryGetMetaDataDictionary ()
 
virtual ModifiedTimeType GetMTime () const
 
virtual const std::string & GetObjectName () const
 
virtual const TimeStampGetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
virtual void Register () const override
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
void SetDebug (bool debugFlag) const
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
virtual void SetObjectName (std::string _arg)
 
virtual void SetReferenceCount (int) override
 
virtual void UnRegister () const noexceptoverride
 
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
 itkCloneMacro (Self)
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::Object
static bool GetGlobalWarningDisplay ()
 
static void GlobalWarningDisplayOff ()
 
static void GlobalWarningDisplayOn ()
 
static Pointer New ()
 
static void SetGlobalWarningDisplay (bool flag)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Static Public Attributes

static const unsigned int InputImageDimension = InputImageType::ImageDimension
 

Protected Member Functions

 KmzProductWriter ()
 
virtual void Write ()
 
 ~KmzProductWriter () override
 
- Protected Member Functions inherited from itk::ProcessObject
virtual void AddInput (DataObject *input)
 
virtual void AddOutput (DataObject *output)
 
bool AddRequiredInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx)
 
bool AddRequiredInputName (const DataObjectIdentifierType &)
 
virtual void CacheInputReleaseDataFlags ()
 
virtual void GenerateData ()
 
virtual void GenerateInputRequestedRegion ()
 
virtual void GenerateOutputInformation ()
 
virtual void GenerateOutputRequestedRegion (DataObject *output)
 
const DataObjectGetInput (const DataObjectIdentifierType &key) const
 
DataObjectGetInput (DataObjectPointerArraySizeType idx)
 
const DataObjectGetInput (DataObjectPointerArraySizeType idx) const
 
DataObjectGetInput (const DataObjectIdentifierType &key)
 
virtual const
DataObjectPointerArraySizeType
GetNumberOfRequiredInputs () const
 
virtual const
DataObjectPointerArraySizeType
GetNumberOfRequiredOutputs () const
 
DataObjectGetOutput (const DataObjectIdentifierType &key)
 
const DataObjectGetOutput (const DataObjectIdentifierType &key) const
 
DataObjectGetOutput (DataObjectPointerArraySizeType idx)
 
const DataObjectGetOutput (DataObjectPointerArraySizeType idx) const
 
DataObjectGetPrimaryInput ()
 
const DataObjectGetPrimaryInput () const
 
virtual const char * GetPrimaryInputName (void) const
 
DataObjectGetPrimaryOutput ()
 
const DataObjectGetPrimaryOutput () const
 
virtual const char * GetPrimaryOutputName (void) const
 
bool IsIndexedInputName (const DataObjectIdentifierType &) const
 
bool IsIndexedOutputName (const DataObjectIdentifierType &) const
 
bool IsRequiredInputName (const DataObjectIdentifierType &) const
 
 itkLegacyMacro (virtual void RemoveInput(DataObject *input))
 
 itkLegacyMacro (void SetNumberOfInputs(DataObjectPointerArraySizeType num))
 
 itkLegacyMacro (virtual void RemoveOutput(DataObject *output))
 
 itkLegacyMacro (void SetNumberOfOutputs(DataObjectPointerArraySizeType num))
 
DataObjectPointerArraySizeType MakeIndexFromInputName (const DataObjectIdentifierType &name) const
 
DataObjectPointerArraySizeType MakeIndexFromOutputName (const DataObjectIdentifierType &name) const
 
DataObjectIdentifierType MakeNameFromInputIndex (DataObjectPointerArraySizeType idx) const
 
DataObjectIdentifierType MakeNameFromOutputIndex (DataObjectPointerArraySizeType idx) const
 
virtual void PopBackInput ()
 
virtual void PopFrontInput ()
 
 ProcessObject ()
 
virtual void PropagateResetPipeline ()
 
virtual void PushBackInput (const DataObject *input)
 
virtual void PushFrontInput (const DataObject *input)
 
virtual void ReleaseInputs ()
 
virtual void RemoveInput (const DataObjectIdentifierType &key)
 
virtual void RemoveInput (DataObjectPointerArraySizeType)
 
virtual void RemoveOutput (const DataObjectIdentifierType &key)
 
virtual void RemoveOutput (DataObjectPointerArraySizeType idx)
 
bool RemoveRequiredInputName (const DataObjectIdentifierType &)
 
virtual void RestoreInputReleaseDataFlags ()
 
virtual void SetInput (const DataObjectIdentifierType &key, DataObject *input)
 
virtual void SetNthInput (DataObjectPointerArraySizeType num, DataObject *input)
 
virtual void SetNthOutput (DataObjectPointerArraySizeType num, DataObject *output)
 
void SetNumberOfIndexedInputs (DataObjectPointerArraySizeType num)
 
void SetNumberOfIndexedOutputs (DataObjectPointerArraySizeType num)
 
virtual void SetNumberOfRequiredInputs (DataObjectPointerArraySizeType)
 
virtual void SetNumberOfRequiredOutputs (DataObjectPointerArraySizeType _arg)
 
virtual void SetOutput (const DataObjectIdentifierType &key, DataObject *output)
 
virtual void SetPrimaryInput (DataObject *input)
 
virtual void SetPrimaryInputName (const DataObjectIdentifierType &key)
 
virtual void SetPrimaryOutput (DataObject *output)
 
virtual void SetPrimaryOutputName (const DataObjectIdentifierType &key)
 
void SetRequiredInputNames (const NameArray &)
 
virtual void VerifyInputInformation ()
 
virtual void VerifyPreconditions ()
 
 ~ProcessObject ()
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &time)
 
virtual ~Object ()
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Private Member Functions

void AddLogo ()
 
virtual void Initialize ()
 
 KmzProductWriter (const Self &)=delete
 
void operator= (const Self &)=delete
 
void GenerateKMLWithLink (const std::string &pathname, int depth, int x, int y, int tileStartX, int tileStartY, double north, double south, double east, double west, double centerLong, double centerLat)
 
void GenerateKMLExtendedWithLink (const std::string &pathname, int depth, int x, int y, int tileStartX, int tileStartY, OutputPointType lowerLeft, OutputPointType lowerRight, OutputPointType upperRight, OutputPointType upperLeft, double centerLong, double centerLat)
 

Private Attributes

unsigned int m_CurIdx
 
int m_CurrentDepth
 
std::string m_CurrentImageName
 
std::string m_FileName
 
DataNodeType::Pointer m_Folder
 
std::string m_KmlExtension
 
std::string m_KmzExtension
 
kmlengine::KmzFilePtr m_KmzFile
 
std::ostringstream m_KmzFileName
 
LegendVectorType m_LegendVector
 
InputImagePointer m_Logo
 
int m_MaxDepth
 
DataNodeType::Pointer m_MultiPolygon
 
std::string m_Path
 
DataNodeType::Pointer m_Polygon
 
InputImagePointer m_ResampleVectorImage
 
std::ofstream m_RootKmlFile
 
StreamingShrinkImageFilterType::Pointer m_StreamingShrinkImageFilter
 
std::ofstream m_TempRootKmlFile
 
unsigned int m_TileSize
 
TransformType::Pointer m_Transform
 
bool m_UseExtendMode
 
VectorDataType::Pointer m_VectorDataIndexTile
 
InputImagePointer m_VectorImage
 
VectorImageExtractROIFilterType::Pointer m_VectorImageExtractROIFilter
 
VectorRescaleIntensityImageFilterType::Pointer m_VectorRescaleIntensityImageFilter
 
VectorWriterType::Pointer m_VectorWriter
 
void SetTileSize (unsigned int tileSize)
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
virtual void Tiling ()
 
void CloseRootKML ()
 
void BoundingBoxKmlProcess (double north, double south, double east, double west)
 
void RootKmlProcess (double north, double south, double east, double west)
 
void AddLegendToRootKml (double north, double south, double east, double west)
 
void GenerateKMLRoot (const std::string &title, double north, double south, double east, double west, bool extended)
 
void GenerateKML (const std::string &pathname, int depth, int x, int y, double north, double south, double east, double west)
 
void GenerateKMLExtended (const std::string &pathname, int depth, int x, int y, OutputPointType lowerLeft, OutputPointType lowerRight, OutputPointType upperRight, OutputPointType upperLeft)
 
void GenerateBoundingKML (double north, double south, double east, double west)
 
void AddNetworkLinkToRootKML (double north, double south, double east, double west, const std::string &directory, bool addRegion, unsigned int pos)
 
virtual int AddFileToKMZ (const std::ostringstream &absolutePath, const std::ostringstream &kmz_in_path)
 
std::string GetCuttenFileName (const std::string &description, unsigned int idx)
 
void ProcessLegends ()
 

Additional Inherited Members

- Protected Attributes inherited from itk::ProcessObject
TimeStamp m_OutputInformationMTime
 
bool m_Updating
 
- Protected Attributes inherited from itk::LightObject
AtomicInt< int > m_ReferenceCount
 

Detailed Description

template<class TInputImage>
class otb::KmzProductWriter< TInputImage >

This class generate a Kmz from one or several input images. The inputs must have a non empty metadata information.

This class writes kmz files, supported by Google Earth. The input must have metadata (a non empty keywordlist)

The size of the tiles can be set via the method SetTileSize(unsigned int), the user can also specify the name of the output Kmz filename via SetPath().

Definition at line 75 of file otbKmzProductWriter.h.

Member Typedef Documentation

Definition at line 128 of file otbKmzProductWriter.h.

template<class TInputImage>
typedef itk::SmartPointer<const Self> otb::KmzProductWriter< TInputImage >::ConstPointer

Definition at line 82 of file otbKmzProductWriter.h.

template<class TInputImage>
typedef VectorDataType::DataNodeType otb::KmzProductWriter< TInputImage >::DataNodeType

Definition at line 101 of file otbKmzProductWriter.h.

template<class TInputImage>
typedef InputImageType::IndexType otb::KmzProductWriter< TInputImage >::IndexType

Definition at line 94 of file otbKmzProductWriter.h.

template<class TInputImage>
typedef InputImageType::PixelType otb::KmzProductWriter< TInputImage >::InputImagePixelType

Definition at line 98 of file otbKmzProductWriter.h.

template<class TInputImage>
typedef InputImageType::Pointer otb::KmzProductWriter< TInputImage >::InputImagePointer

Definition at line 97 of file otbKmzProductWriter.h.

template<class TInputImage>
typedef TInputImage otb::KmzProductWriter< TInputImage >::InputImageType

Some convenient typedefs.

Definition at line 88 of file otbKmzProductWriter.h.

template<class TInputImage>
typedef TransformType::InputPointType otb::KmzProductWriter< TInputImage >::InputPointType

Definition at line 123 of file otbKmzProductWriter.h.

template<class TInputImage>
typedef InputImageType::InternalPixelType otb::KmzProductWriter< TInputImage >::InternalPixelType

Definition at line 92 of file otbKmzProductWriter.h.

template<class TInputImage>
typedef std::pair<std::string, InputImagePointer> otb::KmzProductWriter< TInputImage >::LegendPairType

Definition at line 131 of file otbKmzProductWriter.h.

template<class TInputImage>
typedef std::vector<LegendPairType> otb::KmzProductWriter< TInputImage >::LegendVectorType

Definition at line 132 of file otbKmzProductWriter.h.

template<class TInputImage>
typedef unsigned char otb::KmzProductWriter< TInputImage >::OutputPixelType

Definition at line 96 of file otbKmzProductWriter.h.

template<class TInputImage>
typedef TransformType::OutputPointType otb::KmzProductWriter< TInputImage >::OutputPointType

Definition at line 124 of file otbKmzProductWriter.h.

template<class TInputImage>
typedef itk::SmartPointer<Self> otb::KmzProductWriter< TInputImage >::Pointer

Definition at line 81 of file otbKmzProductWriter.h.

template<class TInputImage>
typedef DataNodeType::PolygonType otb::KmzProductWriter< TInputImage >::PolygonType

Definition at line 102 of file otbKmzProductWriter.h.

template<class TInputImage>
typedef InputImageType::RegionType otb::KmzProductWriter< TInputImage >::RegionType

Definition at line 95 of file otbKmzProductWriter.h.

template<class TInputImage>
typedef KmzProductWriter otb::KmzProductWriter< TInputImage >::Self

Standard class typedefs.

Definition at line 79 of file otbKmzProductWriter.h.

template<class TInputImage>
typedef InputImageType::SizeType otb::KmzProductWriter< TInputImage >::SizeType

Definition at line 93 of file otbKmzProductWriter.h.

Definition at line 115 of file otbKmzProductWriter.h.

template<class TInputImage>
typedef itk::ProcessObject otb::KmzProductWriter< TInputImage >::Superclass

Definition at line 80 of file otbKmzProductWriter.h.

template<class TInputImage>
typedef GenericRSTransform otb::KmzProductWriter< TInputImage >::TransformType

Definition at line 122 of file otbKmzProductWriter.h.

template<class TInputImage>
typedef VectorDataFileWriter<VectorDataType> otb::KmzProductWriter< TInputImage >::VectorDataFileWriterType

Definition at line 105 of file otbKmzProductWriter.h.

template<class TInputImage>
typedef VectorData<double, 2> otb::KmzProductWriter< TInputImage >::VectorDataType

Definition at line 100 of file otbKmzProductWriter.h.

Definition at line 109 of file otbKmzProductWriter.h.

Definition at line 119 of file otbKmzProductWriter.h.

template<class TInputImage>
typedef ImageFileWriter< VectorImage<OutputPixelType> > otb::KmzProductWriter< TInputImage >::VectorWriterType

Definition at line 112 of file otbKmzProductWriter.h.

template<class TInputImage>
typedef PolygonType::VertexType otb::KmzProductWriter< TInputImage >::VertexType

Definition at line 103 of file otbKmzProductWriter.h.

Constructor & Destructor Documentation

template<class TInputImage >
otb::KmzProductWriter< TInputImage >::KmzProductWriter ( )
protected

Definition at line 36 of file otbKmzProductWriter.hxx.

template<class TInputImage >
otb::KmzProductWriter< TInputImage >::~KmzProductWriter ( )
overrideprotected

Definition at line 49 of file otbKmzProductWriter.hxx.

template<class TInputImage>
otb::KmzProductWriter< TInputImage >::KmzProductWriter ( const Self )
privatedelete

Member Function Documentation

template<class TInputImage >
int otb::KmzProductWriter< TInputImage >::AddFileToKMZ ( const std::ostringstream &  absolutePath,
const std::ostringstream &  kmz_in_path 
)
privatevirtual

Add file to KMZ : return the number of error when writing the file in the kmz

Definition at line 614 of file otbKmzProductWriter.hxx.

template<class TInputImage>
void otb::KmzProductWriter< TInputImage >::AddLegend ( const std::string &  description,
const InputImagePointer  legend 
)
inline

Method to store the legend and their description in the legendVector

Definition at line 158 of file otbKmzProductWriter.h.

template<class TInputImage>
void otb::KmzProductWriter< TInputImage >::AddLegend ( const InputImagePointer  legend)
inline

Method to add legend with empty description

Definition at line 168 of file otbKmzProductWriter.h.

template<class TInputImage >
void otb::KmzProductWriter< TInputImage >::AddLegendToRootKml ( double  north,
double  south,
double  east,
double  west 
)
private

Add Roi to kmz

Add the legends available

Definition at line 875 of file otbKmzProductWriter.hxx.

template<class TInputImage >
void otb::KmzProductWriter< TInputImage >::AddLogo ( )
private

Method to add logo if any

Add Logo if any

Definition at line 181 of file otbKmzProductWriter.hxx.

template<class TInputImage >
void otb::KmzProductWriter< TInputImage >::AddNetworkLinkToRootKML ( double  north,
double  south,
double  east,
double  west,
const std::string &  directory,
bool  addRegion,
unsigned int  pos 
)
private

Add a networkLink <NetworkLink> .... </NetworkLink> to root kml (used to handle several image in the same kmz)

Add A networkLink to the root kml

If the last depth, put level of detail LOD to infinite (ie -1)

Definition at line 757 of file otbKmzProductWriter.hxx.

template<class TInputImage >
void otb::KmzProductWriter< TInputImage >::BoundingBoxKmlProcess ( double  north,
double  south,
double  east,
double  west 
)
private

method to generate the bounding box kml

Add the bounding box kml

Definition at line 847 of file otbKmzProductWriter.hxx.

template<class TInputImage >
void otb::KmzProductWriter< TInputImage >::CloseRootKML ( )
private

Close the root kml by adding the last flags and close the std::ofstream

Close the root kml

LOGO

LOGO

Definition at line 717 of file otbKmzProductWriter.hxx.

template<class TInputImage>
virtual::itk::LightObject::Pointer otb::KmzProductWriter< TInputImage >::CreateAnother ( void  ) const
virtual

Reimplemented from itk::Object.

template<class TInputImage >
void otb::KmzProductWriter< TInputImage >::GenerateBoundingKML ( double  north,
double  south,
double  east,
double  west 
)
private

Method to create the bounding kml of the "iteration" th product

Definition at line 1375 of file otbKmzProductWriter.hxx.

template<class TInputImage >
void otb::KmzProductWriter< TInputImage >::GenerateKML ( const std::string &  pathname,
int  depth,
int  x,
int  y,
double  north,
double  south,
double  east,
double  west 
)
private

KML generate Filename - PathName - tile number - North - South - East - West

Definition at line 959 of file otbKmzProductWriter.hxx.

template<class TInputImage >
void otb::KmzProductWriter< TInputImage >::GenerateKMLExtended ( const std::string &  pathname,
int  depth,
int  x,
int  y,
OutputPointType  lowerLeft,
OutputPointType  lowerRight,
OutputPointType  upperRight,
OutputPointType  upperLeft 
)
private

Set the size of the tiles to produce

Definition at line 904 of file otbKmzProductWriter.hxx.

template<class TInputImage >
void otb::KmzProductWriter< TInputImage >::GenerateKMLExtendedWithLink ( const std::string &  pathname,
int  depth,
int  x,
int  y,
int  tileStartX,
int  tileStartY,
OutputPointType  lowerLeft,
OutputPointType  lowerRight,
OutputPointType  upperRight,
OutputPointType  upperLeft,
double  centerLong,
double  centerLat 
)
private

KML with link generate

Definition at line 1010 of file otbKmzProductWriter.hxx.

template<class TInputImage >
void otb::KmzProductWriter< TInputImage >::GenerateKMLRoot ( const std::string &  title,
double  north,
double  south,
double  east,
double  west,
bool  extended 
)
private

KML root generate

Actually the root kml is not fully generated : It generates only the part till the network link In case of multiple inputs, other network liks are needed. See the method Add NetworkLinkToRootKML.

Definition at line 643 of file otbKmzProductWriter.hxx.

template<class TInputImage >
void otb::KmzProductWriter< TInputImage >::GenerateKMLWithLink ( const std::string &  pathname,
int  depth,
int  x,
int  y,
int  tileStartX,
int  tileStartY,
double  north,
double  south,
double  east,
double  west,
double  centerLong,
double  centerLat 
)
private

KML with link generate

Definition at line 1195 of file otbKmzProductWriter.hxx.

template<class TInputImage >
std::string otb::KmzProductWriter< TInputImage >::GetCuttenFileName ( const std::string &  description,
unsigned int  idx 
)
private

Cut the image file name to built the directory name

Definition at line 1423 of file otbKmzProductWriter.hxx.

template<class TInputImage >
const KmzProductWriter< TInputImage >::InputImageType * otb::KmzProductWriter< TInputImage >::GetInput ( void  )

Definition at line 86 of file otbKmzProductWriter.hxx.

template<class TInputImage >
const KmzProductWriter< TInputImage >::InputImageType * otb::KmzProductWriter< TInputImage >::GetInput ( unsigned int  idx)

Definition at line 103 of file otbKmzProductWriter.hxx.

template<class TInputImage>
virtual const char* otb::KmzProductWriter< TInputImage >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::ProcessObject.

template<class TInputImage >
void otb::KmzProductWriter< TInputImage >::Initialize ( void  )
privatevirtual

Mehtod to initialize the variables

Definition at line 136 of file otbKmzProductWriter.hxx.

template<class TInputImage>
static Pointer otb::KmzProductWriter< TInputImage >::New ( )
static

Method for creation through the object factory.

template<class TInputImage>
void otb::KmzProductWriter< TInputImage >::operator= ( const Self )
privatedelete
template<class TInputImage >
void otb::KmzProductWriter< TInputImage >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
overrideprotectedvirtual

Set the size of the tiles to produce

Reimplemented from itk::ProcessObject.

Definition at line 1446 of file otbKmzProductWriter.hxx.

template<class TInputImage >
void otb::KmzProductWriter< TInputImage >::ProcessLegends ( )
private

Method to add Legend if any

Add legend if any

Definition at line 225 of file otbKmzProductWriter.hxx.

template<class TInputImage >
void otb::KmzProductWriter< TInputImage >::RootKmlProcess ( double  north,
double  south,
double  east,
double  west 
)
private

Method to generate the root kml

Definition at line 679 of file otbKmzProductWriter.hxx.

template<class TInputImage >
void otb::KmzProductWriter< TInputImage >::SetInput ( const InputImageType image)
virtual

Definition at line 62 of file otbKmzProductWriter.hxx.

template<class TInputImage >
void otb::KmzProductWriter< TInputImage >::SetInput ( unsigned int  index,
const TInputImage *  image 
)
virtual

Definition at line 73 of file otbKmzProductWriter.hxx.

template<class TInputImage>
virtual void otb::KmzProductWriter< TInputImage >::SetLogo ( InputImagePointer  _arg)
virtual
template<class TInputImage>
virtual void otb::KmzProductWriter< TInputImage >::SetPath ( const char *  _arg)
virtual
template<class TInputImage >
void otb::KmzProductWriter< TInputImage >::SetTileSize ( unsigned int  tileSize)

Set the size of the tiles to produce

Definition at line 1455 of file otbKmzProductWriter.hxx.

template<class TInputImage >
void otb::KmzProductWriter< TInputImage >::Tiling ( )
protectedvirtual

Method for Tiling the input image

Image statistics

TODO : Generate KML for this tile

GX LAT LON

END GX LAT LON

Definition at line 263 of file otbKmzProductWriter.hxx.

template<class TInputImage>
void otb::KmzProductWriter< TInputImage >::Update ( void  )
inlineoverridevirtual

Update Method

Reimplemented from itk::ProcessObject.

Definition at line 147 of file otbKmzProductWriter.h.

References otb::Wrapper::XML::Write().

template<class TInputImage >
void otb::KmzProductWriter< TInputImage >::Write ( )
protectedvirtual

Method for writing

Definition at line 112 of file otbKmzProductWriter.hxx.

Member Data Documentation

template<class TInputImage>
const unsigned int otb::KmzProductWriter< TInputImage >::InputImageDimension = InputImageType::ImageDimension
static

Dimension of input image.

Definition at line 136 of file otbKmzProductWriter.h.

template<class TInputImage>
unsigned int otb::KmzProductWriter< TInputImage >::m_CurIdx
private

Definition at line 303 of file otbKmzProductWriter.h.

template<class TInputImage>
int otb::KmzProductWriter< TInputImage >::m_CurrentDepth
private

Definition at line 302 of file otbKmzProductWriter.h.

template<class TInputImage>
std::string otb::KmzProductWriter< TInputImage >::m_CurrentImageName
private

Definition at line 318 of file otbKmzProductWriter.h.

template<class TInputImage>
std::string otb::KmzProductWriter< TInputImage >::m_FileName
private

Definition at line 317 of file otbKmzProductWriter.h.

template<class TInputImage>
DataNodeType::Pointer otb::KmzProductWriter< TInputImage >::m_Folder
private

Definition at line 297 of file otbKmzProductWriter.h.

template<class TInputImage>
std::string otb::KmzProductWriter< TInputImage >::m_KmlExtension
private

Definition at line 322 of file otbKmzProductWriter.h.

template<class TInputImage>
std::string otb::KmzProductWriter< TInputImage >::m_KmzExtension
private

Definition at line 321 of file otbKmzProductWriter.h.

template<class TInputImage>
kmlengine::KmzFilePtr otb::KmzProductWriter< TInputImage >::m_KmzFile
private

Definition at line 307 of file otbKmzProductWriter.h.

template<class TInputImage>
std::ostringstream otb::KmzProductWriter< TInputImage >::m_KmzFileName
private

Definition at line 310 of file otbKmzProductWriter.h.

template<class TInputImage>
LegendVectorType otb::KmzProductWriter< TInputImage >::m_LegendVector
private

Definition at line 328 of file otbKmzProductWriter.h.

template<class TInputImage>
InputImagePointer otb::KmzProductWriter< TInputImage >::m_Logo
private

Definition at line 325 of file otbKmzProductWriter.h.

template<class TInputImage>
int otb::KmzProductWriter< TInputImage >::m_MaxDepth
private

Definition at line 301 of file otbKmzProductWriter.h.

template<class TInputImage>
DataNodeType::Pointer otb::KmzProductWriter< TInputImage >::m_MultiPolygon
private

Definition at line 296 of file otbKmzProductWriter.h.

template<class TInputImage>
std::string otb::KmzProductWriter< TInputImage >::m_Path
private

Definition at line 273 of file otbKmzProductWriter.h.

template<class TInputImage>
DataNodeType::Pointer otb::KmzProductWriter< TInputImage >::m_Polygon
private

Definition at line 295 of file otbKmzProductWriter.h.

template<class TInputImage>
InputImagePointer otb::KmzProductWriter< TInputImage >::m_ResampleVectorImage
private

Definition at line 276 of file otbKmzProductWriter.h.

template<class TInputImage>
std::ofstream otb::KmzProductWriter< TInputImage >::m_RootKmlFile
private

Definition at line 313 of file otbKmzProductWriter.h.

template<class TInputImage>
StreamingShrinkImageFilterType::Pointer otb::KmzProductWriter< TInputImage >::m_StreamingShrinkImageFilter
private

Definition at line 285 of file otbKmzProductWriter.h.

template<class TInputImage>
std::ofstream otb::KmzProductWriter< TInputImage >::m_TempRootKmlFile
private

Definition at line 314 of file otbKmzProductWriter.h.

template<class TInputImage>
unsigned int otb::KmzProductWriter< TInputImage >::m_TileSize
private

Definition at line 300 of file otbKmzProductWriter.h.

template<class TInputImage>
TransformType::Pointer otb::KmzProductWriter< TInputImage >::m_Transform
private

Definition at line 291 of file otbKmzProductWriter.h.

template<class TInputImage>
bool otb::KmzProductWriter< TInputImage >::m_UseExtendMode
private

Definition at line 274 of file otbKmzProductWriter.h.

template<class TInputImage>
VectorDataType::Pointer otb::KmzProductWriter< TInputImage >::m_VectorDataIndexTile
private

Definition at line 294 of file otbKmzProductWriter.h.

template<class TInputImage>
InputImagePointer otb::KmzProductWriter< TInputImage >::m_VectorImage
private

Definition at line 275 of file otbKmzProductWriter.h.

template<class TInputImage>
VectorImageExtractROIFilterType::Pointer otb::KmzProductWriter< TInputImage >::m_VectorImageExtractROIFilter
private

Definition at line 279 of file otbKmzProductWriter.h.

template<class TInputImage>
VectorRescaleIntensityImageFilterType::Pointer otb::KmzProductWriter< TInputImage >::m_VectorRescaleIntensityImageFilter
private

Definition at line 288 of file otbKmzProductWriter.h.

template<class TInputImage>
VectorWriterType::Pointer otb::KmzProductWriter< TInputImage >::m_VectorWriter
private

Definition at line 282 of file otbKmzProductWriter.h.


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