mirror of
https://github.com/cfpwastaken/planetiler-openmaptiles.git
synced 2026-02-04 12:31:10 +00:00
Allow changing Basemap Base-Url (#143)
This commit is contained in:
10
README.md
10
README.md
@@ -1,6 +1,6 @@
|
|||||||
# Planetiler Basemap Profile
|
# Planetiler Basemap Profile
|
||||||
|
|
||||||
This basemap profile is based on [OpenMapTiles](https://github.com/openmaptiles/openmaptiles) v3.12.2.
|
This basemap profile is based on [OpenMapTiles](https://github.com/openmaptiles/openmaptiles) v3.13.
|
||||||
See [README.md](../README.md) in the parent directory for instructions on how to run.
|
See [README.md](../README.md) in the parent directory for instructions on how to run.
|
||||||
|
|
||||||
## Differences from OpenMapTiles
|
## Differences from OpenMapTiles
|
||||||
@@ -41,11 +41,17 @@ To run `Generate.java`, use [scripts/regenerate-openmaptiles.sh](../scripts/rege
|
|||||||
OpenMapTiles release tag:
|
OpenMapTiles release tag:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
./scripts/regenerate-openmaptiles.sh v3.12.2
|
./scripts/regenerate-openmaptiles.sh v3.13
|
||||||
```
|
```
|
||||||
|
|
||||||
Then follow the instructions it prints for reformatting generated code.
|
Then follow the instructions it prints for reformatting generated code.
|
||||||
|
|
||||||
|
If you want to regenerate from a different repository than the default openmaptiles, you can specify the url like this:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
./scripts/regenerate-openmaptiles.sh v3.13 https://raw.githubusercontent.com/openmaptiles/openmaptiles/
|
||||||
|
```
|
||||||
|
|
||||||
## License and Attribution
|
## License and Attribution
|
||||||
|
|
||||||
OpenMapTiles code is licensed under the BSD 3-Clause License, which appears at the top of any file ported from
|
OpenMapTiles code is licensed under the BSD 3-Clause License, which appears at the top of any file ported from
|
||||||
|
|||||||
@@ -128,8 +128,10 @@ public class Generate {
|
|||||||
public static void main(String[] args) throws IOException {
|
public static void main(String[] args) throws IOException {
|
||||||
Arguments arguments = Arguments.fromArgsOrConfigFile(args);
|
Arguments arguments = Arguments.fromArgsOrConfigFile(args);
|
||||||
PlanetilerConfig planetilerConfig = PlanetilerConfig.from(arguments);
|
PlanetilerConfig planetilerConfig = PlanetilerConfig.from(arguments);
|
||||||
String tag = arguments.getString("tag", "openmaptiles tag to use", "v3.12.2");
|
String tag = arguments.getString("tag", "openmaptiles tag to use", "v3.13");
|
||||||
String base = "https://raw.githubusercontent.com/openmaptiles/openmaptiles/" + tag + "/";
|
String baseUrl = arguments.getString("base-url", "the url used to download the openmaptiles.yml",
|
||||||
|
"https://raw.githubusercontent.com/openmaptiles/openmaptiles/");
|
||||||
|
String base = baseUrl + tag + "/";
|
||||||
|
|
||||||
// start crawling from openmaptiles.yaml
|
// start crawling from openmaptiles.yaml
|
||||||
// then crawl schema from each layers/<layer>/<layer>.yaml file that it references
|
// then crawl schema from each layers/<layer>/<layer>.yaml file that it references
|
||||||
|
|||||||
Reference in New Issue
Block a user