use of uk.me.parabola.util.EnhancedProperties in project mkgmap by openstreetmap.
the class SeaGenerator method loadPrecompTile.
/**
* Loads the precomp sea tile with the given filename.
* @param filename the filename of the precomp sea tile
* @return all ways of the tile
* @throws FileNotFoundException if the tile could not be found
*/
private Collection<Way> loadPrecompTile(InputStream is, String filename) {
OsmPrecompSeaDataSource src = new OsmPrecompSeaDataSource();
EnhancedProperties props = new EnhancedProperties();
props.setProperty("style", "empty");
src.config(props);
log.info("Started loading coastlines from", filename);
try {
src.parse(is, filename);
} catch (FormatException e) {
log.error("Failed to read " + filename);
log.error(e);
}
log.info("Finished loading coastlines from", filename);
return src.getElementSaver().getWays().values();
}
use of uk.me.parabola.util.EnhancedProperties in project mkgmap by openstreetmap.
the class OsmMapDataSource method createConverter.
/**
* Create the appropriate converter from osm to garmin styles.
*/
protected void createConverter() {
EnhancedProperties props = getConfig();
Style style = StyleImpl.readStyle(props);
setStyle(style);
usedTags.addAll(style.getUsedTags());
usedTags.addAll(NameFinder.getNameTags(props));
converter = new StyledConverter(style, mapper, props);
}
Aggregations