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

#include <otbPlaceNameToLonLat.h>

+ Inheritance diagram for otb::PlaceNameToLonLat:
+ Collaboration diagram for otb::PlaceNameToLonLat:

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef itk::SmartPointer< SelfPointer
 
typedef PlaceNameToLonLat Self
 
typedef itk::Object Superclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual bool Evaluate ()
 
virtual double GetLat ()
 
virtual double GetLon ()
 
virtual const char * GetNameOfClass () const
 
virtual std::string GetPlaceName ()
 
virtual void SetPlaceName (std::string _arg)
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

void ParseXMLGeonames ()
 
void ParseXMLGoogle ()
 
void ParseXMLYahoo ()
 
 PlaceNameToLonLat ()
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
void RetrieveXML (const std::ostringstream &urlStream)
 
 ~PlaceNameToLonLat () override
 

Private Member Functions

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

Private Attributes

CurlHelperInterface::Pointer m_Curl
 
std::string m_CurlOutput
 
double m_Lat
 
double m_Lon
 
std::string m_PlaceName
 
bool m_RequestSucceed
 

Detailed Description

Retrieve Longitude and Latitude coordinates from a place name.

Definition at line 38 of file otbPlaceNameToLonLat.h.

Member Typedef Documentation

◆ ConstPointer

typedef itk::SmartPointer<const Self> otb::PlaceNameToLonLat::ConstPointer

Definition at line 44 of file otbPlaceNameToLonLat.h.

◆ Pointer

typedef itk::SmartPointer<Self> otb::PlaceNameToLonLat::Pointer

Definition at line 43 of file otbPlaceNameToLonLat.h.

◆ Self

Standard class typedefs.

Definition at line 42 of file otbPlaceNameToLonLat.h.

◆ Superclass

Definition at line 46 of file otbPlaceNameToLonLat.h.

Constructor & Destructor Documentation

◆ PlaceNameToLonLat() [1/2]

otb::PlaceNameToLonLat::PlaceNameToLonLat ( )
protected

◆ ~PlaceNameToLonLat()

otb::PlaceNameToLonLat::~PlaceNameToLonLat ( )
inlineoverrideprotected

Definition at line 62 of file otbPlaceNameToLonLat.h.

◆ PlaceNameToLonLat() [2/2]

otb::PlaceNameToLonLat::PlaceNameToLonLat ( const Self )
privatedelete

Member Function Documentation

◆ CreateAnother()

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

◆ Evaluate()

virtual bool otb::PlaceNameToLonLat::Evaluate ( )
virtual

◆ GetLat()

virtual double otb::PlaceNameToLonLat::GetLat ( )
virtual

◆ GetLon()

virtual double otb::PlaceNameToLonLat::GetLon ( )
virtual

◆ GetNameOfClass()

virtual const char* otb::PlaceNameToLonLat::GetNameOfClass ( ) const
virtual

◆ GetPlaceName()

virtual std::string otb::PlaceNameToLonLat::GetPlaceName ( )
virtual

◆ New()

static Pointer otb::PlaceNameToLonLat::New ( )
static

Method for creation through the object factory.

◆ operator=()

void otb::PlaceNameToLonLat::operator= ( const Self )
privatedelete

◆ ParseXMLGeonames()

void otb::PlaceNameToLonLat::ParseXMLGeonames ( )
protected

◆ ParseXMLGoogle()

void otb::PlaceNameToLonLat::ParseXMLGoogle ( )
protected

◆ ParseXMLYahoo()

void otb::PlaceNameToLonLat::ParseXMLYahoo ( )
protected

◆ PrintSelf()

void otb::PlaceNameToLonLat::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
overrideprotected

◆ RetrieveXML()

void otb::PlaceNameToLonLat::RetrieveXML ( const std::ostringstream &  urlStream)
protected

◆ SetPlaceName()

virtual void otb::PlaceNameToLonLat::SetPlaceName ( std::string  _arg)
virtual

Member Data Documentation

◆ m_Curl

CurlHelperInterface::Pointer otb::PlaceNameToLonLat::m_Curl
private

Definition at line 79 of file otbPlaceNameToLonLat.h.

◆ m_CurlOutput

std::string otb::PlaceNameToLonLat::m_CurlOutput
private

Definition at line 80 of file otbPlaceNameToLonLat.h.

◆ m_Lat

double otb::PlaceNameToLonLat::m_Lat
private

Definition at line 76 of file otbPlaceNameToLonLat.h.

◆ m_Lon

double otb::PlaceNameToLonLat::m_Lon
private

Definition at line 75 of file otbPlaceNameToLonLat.h.

◆ m_PlaceName

std::string otb::PlaceNameToLonLat::m_PlaceName
private

Definition at line 77 of file otbPlaceNameToLonLat.h.

◆ m_RequestSucceed

bool otb::PlaceNameToLonLat::m_RequestSucceed
private

Definition at line 81 of file otbPlaceNameToLonLat.h.


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