Cogs.Core
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Cogs::Core::TerrainProvider::WMSRasterSource Class Reference
Inheritance diagram for Cogs::Core::TerrainProvider::WMSRasterSource:
Cogs::Core::TerrainProvider::HTTPRasterSource Cogs::Core::TerrainProvider::BaseRasterSource Cogs::Core::TerrainProvider::IRasterSource

Public Member Functions

 WMSRasterSource (Context *context)
 
bool init (const WMSConfig &conf, std::unique_ptr< ICache > &&icache)
 
void getConfig (WMSConfig &conf) const
 
- Public Member Functions inherited from Cogs::Core::TerrainProvider::HTTPRasterSource
 HTTPRasterSource (Context *context)
 
bool init (const HTTPConfig &conf, std::unique_ptr< ICache > &&icache)
 
void getConfig (HTTPConfig &conf) const
 
- Public Member Functions inherited from Cogs::Core::TerrainProvider::BaseRasterSource
 BaseRasterSource (Context *context)
 
Cogs::RasterSourceParameters getParameters () const override
 
const CoordSysgetCoordSys () const
 
ErrorCode getErrorCode () const final
 
void setErrorCode (ErrorCode newErrorCode)
 
- Public Member Functions inherited from Cogs::Core::TerrainProvider::IRasterSource
virtual Cogs::RasterSourceParameters getParameters () const =0
 
virtual ErrorCode getErrorCode () const =0
 
uint64_t id () const
 

Protected Member Functions

bool createFetchTileUrl (std::string &url, TileId id) final
 
- Protected Member Functions inherited from Cogs::Core::TerrainProvider::HTTPRasterSource
void requestTile (Request *req) final
 
virtual bool createFetchTileUrl (std::string &url, TileId id)=0
 
- Protected Member Functions inherited from Cogs::Core::TerrainProvider::BaseRasterSource
bool init (const BaseConfig &conf, std::unique_ptr< ICache > &&icache)
 
void getConfig (BaseConfig &conf) const
 
void addTile (const Cogs::Memory::MemoryBuffer &contents, MimeType kind, Request *req, StringView debugLog)
 
void addTileFailure (Request *req, StringView debugLog)
 
virtual void requestTile (Request *req)=0
 

Protected Attributes

std::vector< WMSLayerDescriptionlayerDescriptions
 
std::vector< std::pair< StringRef, StringRef > > otherArguments
 
WMSVersion version = WMSVersion::v1_1_0
 
WMSValueDataType dataType = WMSValueDataType::Short
 
bool serverIsLittleEndian = true
 
bool retryFailedRequests = true
 
- Protected Attributes inherited from Cogs::Core::TerrainProvider::HTTPRasterSource
StringRef baseUrl = NoString
 
StringRef username = NoString
 
StringRef password = NoString
 
Cogs::Desktop::HTTPDataFetcher httpDataFetcher
 
- Protected Attributes inherited from Cogs::Core::TerrainProvider::BaseRasterSource
Contextcontext = nullptr
 
Extent extent
 
Tiling tiling
 
CoordSys coordsys
 
TextureFormat textureFormat = TextureFormat::Unknown
 
StringRef name = NoString
 
float noDataValue = std::numeric_limits<float>::quiet_NaN()
 
bool emitDebugLog = true
 

Additional Inherited Members

- Public Types inherited from Cogs::Core::TerrainProvider::IRasterSource
enum struct  ErrorCode {
  NoError , Done , FailedToOpenDiskCache , FailedToCreateDiskCache ,
  MismatchedDiskCache , NoHTTPService
}
 

Detailed Description

Definition at line 45 of file WMSRasterSource.h.

Constructor & Destructor Documentation

◆ WMSRasterSource()

Cogs::Core::TerrainProvider::WMSRasterSource::WMSRasterSource ( Context context)

Definition at line 44 of file WMSRasterSource.cpp.

◆ ~WMSRasterSource()

Cogs::Core::TerrainProvider::WMSRasterSource::~WMSRasterSource ( )

Definition at line 49 of file WMSRasterSource.cpp.

Member Function Documentation

◆ createFetchTileUrl()

bool Cogs::Core::TerrainProvider::WMSRasterSource::createFetchTileUrl ( std::string &  url,
TileId  id 
)
finalprotectedvirtual

Implements Cogs::Core::TerrainProvider::HTTPRasterSource.

Definition at line 75 of file WMSRasterSource.cpp.

◆ getConfig()

void Cogs::Core::TerrainProvider::WMSRasterSource::getConfig ( WMSConfig conf) const

Definition at line 64 of file WMSRasterSource.cpp.

◆ init()

bool Cogs::Core::TerrainProvider::WMSRasterSource::init ( const WMSConfig conf,
std::unique_ptr< ICache > &&  icache 
)

Definition at line 53 of file WMSRasterSource.cpp.

Member Data Documentation

◆ dataType

WMSValueDataType Cogs::Core::TerrainProvider::WMSRasterSource::dataType = WMSValueDataType::Short
protected

Definition at line 58 of file WMSRasterSource.h.

◆ layerDescriptions

std::vector<WMSLayerDescription> Cogs::Core::TerrainProvider::WMSRasterSource::layerDescriptions
protected

Definition at line 55 of file WMSRasterSource.h.

◆ otherArguments

std::vector<std::pair<StringRef, StringRef> > Cogs::Core::TerrainProvider::WMSRasterSource::otherArguments
protected

Definition at line 56 of file WMSRasterSource.h.

◆ retryFailedRequests

bool Cogs::Core::TerrainProvider::WMSRasterSource::retryFailedRequests = true
protected

Definition at line 60 of file WMSRasterSource.h.

◆ serverIsLittleEndian

bool Cogs::Core::TerrainProvider::WMSRasterSource::serverIsLittleEndian = true
protected

Definition at line 59 of file WMSRasterSource.h.

◆ version

WMSVersion Cogs::Core::TerrainProvider::WMSRasterSource::version = WMSVersion::v1_1_0
protected

Definition at line 57 of file WMSRasterSource.h.


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