|
3 | 3 | import com.onthegomap.planetiler.ForwardingProfile;
|
4 | 4 | import com.onthegomap.planetiler.Planetiler;
|
5 | 5 | import com.onthegomap.planetiler.config.Arguments;
|
6 |
| -import com.onthegomap.planetiler.util.Downloader; |
7 | 6 | import com.protomaps.basemap.feature.NaturalEarthDb;
|
8 | 7 | import com.protomaps.basemap.feature.QrankDb;
|
9 | 8 | import com.protomaps.basemap.layers.Boundaries;
|
@@ -130,12 +129,13 @@ static void run(Arguments args) throws Exception {
|
130 | 129 | .addShapefileSource("osm_land", sourcesDir.resolve("land-polygons-split-3857.zip"),
|
131 | 130 | "https://osmdata.openstreetmap.de/download/land-polygons-split-3857.zip");
|
132 | 131 |
|
133 |
| - Downloader.create(planetiler.config()).add("ne", neUrl, nePath) |
134 |
| - .add("qrank", "https://qrank.wmcloud.org/download/qrank.csv.gz", sourcesDir.resolve("qrank.csv.gz")).run(); |
| 132 | + // Downloader.create(planetiler.config()).add("ne", neUrl, nePath) |
| 133 | + // .add("qrank", "https://qrank.wmcloud.org/download/qrank.csv.gz", sourcesDir.resolve("qrank.csv.gz")).run(); |
135 | 134 |
|
136 | 135 | var tmpDir = nePath.resolveSibling(nePath.getFileName() + "-unzipped");
|
137 | 136 | var naturalEarthDb = NaturalEarthDb.fromSqlite(nePath, tmpDir);
|
138 |
| - var qrankDb = QrankDb.fromCsv(sourcesDir.resolve("qrank.csv.gz")); |
| 137 | + // var qrankDb = QrankDb.fromCsv(sourcesDir.resolve("qrank.csv.gz")); |
| 138 | + var qrankDb = QrankDb.empty(); |
139 | 139 |
|
140 | 140 | planetiler.setProfile(new Basemap(naturalEarthDb, qrankDb)).setOutput(Path.of(area + ".pmtiles"))
|
141 | 141 | .run();
|
|
0 commit comments