Cogs.Core
WCSRasterSource.h
1#pragma once
2#include "HTTPRasterSource.h"
3
4namespace Cogs::Core::TerrainProvider {
5
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
19 {
20 public:
21 WCSRasterSource(Context* context);
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}
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Definition: Context.h:83