+ "' is set to '" + tileCachePath
+ "' but the directory either does not exist or is not readable");
}
}
try {
CacheInfoPersister tilingSchemeLoader = new CacheInfoPersister();
cacheInfo = tilingSchemeLoader.load(new FileReader(tilingScheme));
File layerBoundsFile = new File(tilingScheme.getParentFile(), "conf.cdi");
if (!layerBoundsFile.exists()) {
throw new RuntimeException("Layer bounds file not found: "
+ layerBoundsFile.getAbsolutePath());
}
log.info("Parsing layer bounds for " + getName());
this.layerBounds = tilingSchemeLoader.parseLayerBounds(new FileReader(layerBoundsFile));
log.info("Parsed layer bounds for " + getName() + ": " + layerBounds);
} catch (FileNotFoundException e) {
throw new IllegalStateException("Tiling scheme file not found: "
+ tilingScheme.getAbsolutePath());
}