Search in sources :

Example 1 with StyledConverter

use of uk.me.parabola.mkgmap.osmstyle.StyledConverter 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);
}
Also used : EnhancedProperties(uk.me.parabola.util.EnhancedProperties) FormatStyle(java.time.format.FormatStyle) StyledConverter(uk.me.parabola.mkgmap.osmstyle.StyledConverter)

Aggregations

FormatStyle (java.time.format.FormatStyle)1 StyledConverter (uk.me.parabola.mkgmap.osmstyle.StyledConverter)1 EnhancedProperties (uk.me.parabola.util.EnhancedProperties)1