/// <inheritdoc /> public void Configure(IConfigSection configSection) { _mapDataServerUri = configSection.GetString(@"data/mapzen/ele_server", null); _mapDataApiKey = configSection.GetString(@"data/mapzen/api_key", null); _mapDataFormatExtension = "." + configSection.GetString(@"data/mapzen/ele_format", "ele"); _eleGrid = configSection.GetInt(@"data/mapzen/ele_grid", 10); _cachePath = configSection.GetString(@"data/cache", null); }
/// <inheritdoc /> public void Configure(IConfigSection configSection) { _osmMapDataProvider.Configure(configSection); _mapzenMapDataProvider.Configure(configSection); _srtmElevationDataProvider.Configure(configSection); _mapzenElevationDataProvider.Configure(configSection); _eleDataType = (ElevationDataType)configSection.GetInt("data/elevation/type", 2); }
/// <inheritdoc /> public void Configure(IConfigSection configSection) { _mapDataServerUri = configSection.GetString(@"data/mapzen/ele_server"); _mapDataApiKey = configSection.GetString(@"data/mapzen/api_key"); _mapDataFormatExtension = "." + configSection.GetString(@"data/mapzen/ele_format", "ele"); // TODO this parameter depends on height data precision and tile size _eleGrid = configSection.GetInt(@"data/mapzen/ele_grid", 10); _elePath = configSection.GetString(@"data/elevation/local", null); }
/// <inheritdoc /> public void Configure(IConfigSection configSection) { var stringPath = _pathResolver.Resolve(configSection.GetString("data/index/strings")); var mapDataPath = _pathResolver.Resolve(configSection.GetString("data/index/spatial")); _eleDataType = (ElevationDataType)configSection.GetInt("data/elevation/type", 0); string errorMsg = null; CoreLibrary.Configure(stringPath, mapDataPath, error => errorMsg = error); if (errorMsg != null) { throw new MapDataException(errorMsg); } }
public void CanReadIntValue() { var value = _stubSection.GetInt("int", -1); Assert.AreEqual(55, value); }
/// <inheritdoc /> public void Configure(IConfigSection configSection) { _eleDataType = (ElevationDataType)configSection.GetInt("data/elevation/type", 0); }
/// <inheritdoc /> public void Configure(IConfigSection configSection) { _moveSensitivity = configSection.GetFloat(@"tile/sensitivity", 30); _offsetRatio = configSection.GetFloat(@"tile/offset", 10); // percentage of tile size _maxTileDistance = configSection.GetInt(@"tile/max_tile_distance", 2); }