Cogs.Core
Extensions
TerrainProvider
Source
WCSRasterSource.h
1
#pragma once
2
#include "HTTPRasterSource.h"
3
4
namespace
Cogs::Core::TerrainProvider {
5
6
struct
WCSConfig
:
HTTPConfig
7
{
8
virtual
~WCSConfig
() {}
9
glm::dvec2 offset;
10
StringRef
layer = NoString;
11
StringRef
format = Strings::add(
"GeoTIFF"
);;
12
StringRef
interpolation = Strings::add(
"bilinear"
);
13
StringRef
interpolationFieldName = Strings::add(
"INTERPOLATION"
);
14
bool
invertZ =
false
;
15
bool
allowNoData =
false
;
16
};
17
18
class
WCSRasterSource
:
public
HTTPRasterSource
19
{
20
public
:
21
WCSRasterSource
(
Context
* context);
22
~WCSRasterSource
();
23
24
bool
init(
const
WCSConfig
& conf, std::unique_ptr<ICache>&& icache);
25
void
getConfig(
WCSConfig
& conf)
const
;
26
27
protected
:
28
StringRef
layer = NoString;
29
StringRef
format = NoString;
30
StringRef
interpolation = NoString;
31
StringRef
interpolationFieldName = NoString;
32
33
bool
createFetchTileUrl(std::string& url,
TileId
id
)
final
;
34
};
35
36
}
Cogs::Core::Context
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Definition:
Context.h:83
Cogs::Core::TerrainProvider::HTTPRasterSource
Definition:
HTTPRasterSource.h:18
Cogs::Core::TerrainProvider::WCSRasterSource
Definition:
WCSRasterSource.h:19
Cogs::Core::StringRef
Definition:
Strings.h:8
Cogs::Core::TerrainProvider::HTTPConfig
Definition:
HTTPRasterSource.h:10
Cogs::Core::TerrainProvider::TileId
Definition:
BaseRasterSource.h:63
Cogs::Core::TerrainProvider::WCSConfig
Definition:
WCSRasterSource.h:7
Generated by
1.9.6