21 #ifndef otbCoordinateToName_h
22 #define otbCoordinateToName_h
25 #include "itkPlatformMultiThreader.h"
27 #include "itkConfigure.h"
29 #include "OTBCartoExport.h"
63 itkGetMacro(Lon,
double);
64 itkGetMacro(Lat,
double);
66 itkSetMacro(Lon,
double);
67 itkSetMacro(Lat,
double);
77 if ((std::abs(point[0] - m_Lon) > m_UpdateDistance) || (std::abs(point[1] - m_Lat) > m_UpdateDistance))
110 return m_CountryName;
118 itkGetMacro(Multithread,
bool);
119 itkSetMacro(Multithread,
bool);
120 itkBooleanMacro(Multithread);
131 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
Retrieve geographical information for longitude and latitude coordinates.
bool SetLonLat(PointType point)
itk::Point< double, 2 > PointType
std::string m_CountryName
std::string GetPlaceName() const
itk::SmartPointer< Self > Pointer
std::string GetCountryName() const
virtual void DoEvaluate()
CoordinateToName(const Self &)=delete
CurlHelperInterface::Pointer m_Curl
PlatformMultiThreader::Pointer m_Threader
void operator=(const Self &)=delete
itk::PlatformMultiThreader PlatformMultiThreader
void PrintSelf(std::ostream &os, itk::Indent indent) const override
static itk::ITK_THREAD_RETURN_TYPE ThreadFunction(void *)
itk::SmartPointer< const Self > ConstPointer
~CoordinateToName() override
void ParseXMLGeonames(std::string &placeName, std::string &countryName) const
Class to use the curl capabilities from OTB.
itk::SmartPointer< Self > Pointer
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.