Beispiel #1
0
        /// <inheritdoc />
        public void Configure(IConfigSection configSection)
        {
            _mapDataLoader.Configure(configSection);

            var stringPath  = _pathResolver.Resolve(configSection.GetString("data/index/strings"));
            var mapDataPath = _pathResolver.Resolve(configSection.GetString("data/index/spatial"));

            _mapDataStorageType = MapDataStorageType.Persistent;

            string errorMsg = CoreLibrary.Configure(stringPath, mapDataPath);

            if (!String.IsNullOrEmpty(errorMsg))
            {
                throw new MapDataException(errorMsg);
            }
        }