OTB  6.7.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Member Functions | Private Attributes | List of all members
otb::CoordinateToName Class Reference

#include <otbCoordinateToName.h>

+ Inheritance diagram for otb::CoordinateToName:
+ Collaboration diagram for otb::CoordinateToName:

Public Types

typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::Point< double, 2 > PointType
 
typedef CoordinateToName Self
 
typedef itk::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
 
virtual bool Evaluate ()
 
std::string GetCountryName () const
 
virtual double GetLat ()
 
virtual double GetLon ()
 
virtual bool GetMultithread ()
 
virtual const char * GetNameOfClass () const
 
std::string GetPlaceName () const
 
virtual void MultithreadOff ()
 
virtual void MultithreadOn ()
 
virtual void SetCurl (CurlHelperInterface *_arg)
 
virtual void SetLat (double _arg)
 
virtual void SetLon (double _arg)
 
virtual void SetMultithread (bool _arg)
 
bool SetLonLat (PointType point)
 
- 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 ()
 

Protected Member Functions

 CoordinateToName ()
 
virtual void DoEvaluate ()
 
void ParseXMLGeonames (std::string &placeName, std::string &countryName) const
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
 ~CoordinateToName () override
 
- 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 ()
 

Static Protected Member Functions

static ITK_THREAD_RETURN_TYPE ThreadFunction (void *)
 

Private Member Functions

 CoordinateToName (const Self &)=delete
 
void operator= (const Self &)=delete
 

Private Attributes

std::string m_CountryName
 
CurlHelperInterface::Pointer m_Curl
 
std::string m_CurlOutput
 
bool m_IsValid
 
double m_Lat
 
double m_Lon
 
bool m_Multithread
 
std::string m_PlaceName
 
itk::MultiThreader::Pointer m_Threader
 
double m_UpdateDistance
 

Additional Inherited Members

- Protected Attributes inherited from itk::LightObject
AtomicInt< int > m_ReferenceCount
 

Detailed Description

Retrieve geographical information for longitude and latitude coordinates.

This class can work in asynchronous mode using

. In this case, the web request does not block the rest of the program.

Definition at line 44 of file otbCoordinateToName.h.

Member Typedef Documentation

Definition at line 50 of file otbCoordinateToName.h.

Definition at line 49 of file otbCoordinateToName.h.

Definition at line 56 of file otbCoordinateToName.h.

Standard class typedefs.

Definition at line 48 of file otbCoordinateToName.h.

Definition at line 52 of file otbCoordinateToName.h.

Constructor & Destructor Documentation

otb::CoordinateToName::CoordinateToName ( )
protected
otb::CoordinateToName::~CoordinateToName ( )
inlineoverrideprotected

Definition at line 123 of file otbCoordinateToName.h.

otb::CoordinateToName::CoordinateToName ( const Self )
privatedelete

Member Function Documentation

virtual::itk::LightObject::Pointer otb::CoordinateToName::CreateAnother ( void  ) const
virtual

Reimplemented from itk::Object.

virtual void otb::CoordinateToName::DoEvaluate ( )
protectedvirtual
virtual bool otb::CoordinateToName::Evaluate ( )
virtual
std::string otb::CoordinateToName::GetCountryName ( ) const
inline

Definition at line 101 of file otbCoordinateToName.h.

virtual double otb::CoordinateToName::GetLat ( )
virtual
virtual double otb::CoordinateToName::GetLon ( )
virtual
virtual bool otb::CoordinateToName::GetMultithread ( )
virtual
virtual const char* otb::CoordinateToName::GetNameOfClass ( ) const
virtual

Reimplemented from itk::Object.

std::string otb::CoordinateToName::GetPlaceName ( ) const
inline

Definition at line 89 of file otbCoordinateToName.h.

virtual void otb::CoordinateToName::MultithreadOff ( )
virtual
virtual void otb::CoordinateToName::MultithreadOn ( )
virtual
static Pointer otb::CoordinateToName::New ( )
static

Method for creation through the object factory.

void otb::CoordinateToName::operator= ( const Self )
privatedelete
void otb::CoordinateToName::ParseXMLGeonames ( std::string &  placeName,
std::string &  countryName 
) const
protected
void otb::CoordinateToName::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
overrideprotectedvirtual

Reimplemented from itk::Object.

virtual void otb::CoordinateToName::SetCurl ( CurlHelperInterface _arg)
virtual
virtual void otb::CoordinateToName::SetLat ( double  _arg)
virtual
virtual void otb::CoordinateToName::SetLon ( double  _arg)
virtual
bool otb::CoordinateToName::SetLonLat ( PointType  point)
inline

Set the lon/lat only if they are far enough from the current point to avoid triggering too many updates

Definition at line 70 of file otbCoordinateToName.h.

virtual void otb::CoordinateToName::SetMultithread ( bool  _arg)
virtual
static ITK_THREAD_RETURN_TYPE otb::CoordinateToName::ThreadFunction ( void *  )
staticprotected

Member Data Documentation

std::string otb::CoordinateToName::m_CountryName
private

Definition at line 146 of file otbCoordinateToName.h.

CurlHelperInterface::Pointer otb::CoordinateToName::m_Curl
private

Definition at line 149 of file otbCoordinateToName.h.

std::string otb::CoordinateToName::m_CurlOutput
private

Definition at line 147 of file otbCoordinateToName.h.

bool otb::CoordinateToName::m_IsValid
private

Definition at line 139 of file otbCoordinateToName.h.

double otb::CoordinateToName::m_Lat
private

Definition at line 136 of file otbCoordinateToName.h.

double otb::CoordinateToName::m_Lon
private

Definition at line 135 of file otbCoordinateToName.h.

bool otb::CoordinateToName::m_Multithread
private

Definition at line 138 of file otbCoordinateToName.h.

std::string otb::CoordinateToName::m_PlaceName
private

Definition at line 145 of file otbCoordinateToName.h.

itk::MultiThreader::Pointer otb::CoordinateToName::m_Threader
private

Definition at line 151 of file otbCoordinateToName.h.

double otb::CoordinateToName::m_UpdateDistance
private

Definition at line 143 of file otbCoordinateToName.h.


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