public final class AtlasFilePathResolver
extends java.lang.Object
implements java.io.Serializable
basePath points to a path containing
Atlas files or country folders that contain the Atlas files. Path templates are
configured through a key-value map, mapping schema to path template. The path template
follows String.format(java.lang.String, java.lang.Object...) rules, given a base path and country code to determine the final
path.
{
"AtlasFilePathResolver": {
"schema.path.templates": {
"file": "%s"
"http": "%s/%s"
}
}
}
If no schema templates are found, country specific sub-folders are assumed and "%s/%s" is
used.| Constructor and Description |
|---|
AtlasFilePathResolver(org.openstreetmap.atlas.utilities.configuration.Configuration configuration)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
resolvePath(java.lang.String basePath,
java.lang.String country) |
public AtlasFilePathResolver(org.openstreetmap.atlas.utilities.configuration.Configuration configuration)
configuration - The Configurationpublic java.lang.String resolvePath(java.lang.String basePath,
java.lang.String country)
basePath - the base directory, which contains either the country directories or the atlas
files themselvescountry - the atlas file country we're interested in