te::ws::core Namespace Reference

Classes

class  CurlWrapper
 An abstraction to Lib Curl functions. More...
 
struct  Exception
 Base exception class for WS Core Runtime Library. More...
 
struct  UnsupportedVersionException
 Exception to be used when a XML has an unsupported version by WMSClient or WCSClient. More...
 
struct  WrongVersionException
 Exception to be used when a XML has an unsupported version by XMLParser. More...
 

Enumerations

enum  AuthenticationMethod { NOT_AUTH = 0, HTTP_BASIC = 1, HTTP_DIGEST = 2 }
 

Functions

TEWSCOREEXPORT te::map::ImageType FormatToImageType (const std::string &format)
 This function gets an ImageType Enum according to an image format string (e.g. image/png). More...
 
TEWSCOREEXPORT long GetFileSize (const std::string &filename)
 This function gets the size of a file, using C runtime stat struct that works on Windows, Mac and Linux. More...
 
TEWSCOREEXPORT bool IsInvertedEPSG (const std::string &epsg)
 This function gets true for EPSGs that has inverted axis-order. Otherwise false. This implementation is using the MapServer's rule to define if the EPSG has inverted axis-order or not. If the EPSG code number is between 4000 and 5000, the axis-order of such EPSG is inverted. More...
 

Enumeration Type Documentation

Enumerator
NOT_AUTH 
HTTP_BASIC 
HTTP_DIGEST 

Definition at line 49 of file CurlWrapper.h.

Function Documentation

TEWSCOREEXPORT te::map::ImageType te::ws::core::FormatToImageType ( const std::string &  format)

This function gets an ImageType Enum according to an image format string (e.g. image/png).

Parameters
format(e.g. image/png).
Returns
An ImageType according to specified format.
TEWSCOREEXPORT long te::ws::core::GetFileSize ( const std::string &  filename)

This function gets the size of a file, using C runtime stat struct that works on Windows, Mac and Linux.

Parameters
filenameabsolute name of a file.
Returns
filesize of long type.
TEWSCOREEXPORT bool te::ws::core::IsInvertedEPSG ( const std::string &  epsg)

This function gets true for EPSGs that has inverted axis-order. Otherwise false. This implementation is using the MapServer's rule to define if the EPSG has inverted axis-order or not. If the EPSG code number is between 4000 and 5000, the axis-order of such EPSG is inverted.

Parameters
epsgAn EPSG in the following format EPSG:XXXX (e.g.: EPSG:4326)
Returns
true if the EPSG axis-order is inverted. Otherwise false.