From 7171538bd512ef89db4a644bd456f5165c04e5e5 Mon Sep 17 00:00:00 2001 From: Peter Hanecak <115141505+phanecak-maptiler@users.noreply.github.com> Date: Thu, 1 Dec 2022 18:36:46 +0100 Subject: [PATCH] align source data URLs with OpenMapTiles (#54) URLs for Natural Earth and Lake Centerline updated to match what is used in the OpenMapTiles --- src/main/java/org/openmaptiles/OpenMapTilesMain.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/openmaptiles/OpenMapTilesMain.java b/src/main/java/org/openmaptiles/OpenMapTilesMain.java index 0e0b729..8a98245 100644 --- a/src/main/java/org/openmaptiles/OpenMapTilesMain.java +++ b/src/main/java/org/openmaptiles/OpenMapTilesMain.java @@ -35,14 +35,17 @@ public class OpenMapTilesMain { // or osm_path=... osm_url=... in a config file .addShapefileSource("EPSG:3857", OpenMapTilesProfile.LAKE_CENTERLINE_SOURCE, sourcesDir.resolve("lake_centerline.shp.zip"), - // was previously using this old build from 2016: https://github.com/lukasmartinelli/osm-lakelines/releases/download/v0.9/lake_centerline.shp.zip - "https://github.com/acalcutt/osm-lakelines/releases/download/latest/lake_centerline.shp.zip") + // upstream is at https://github.com/acalcutt/osm-lakelines/releases/download/latest/lake_centerline.shp.zip , + // following is same URL as used in the OpenMapTiles (but SHP format), a mirror maintained by MapTiler + "https://dev.maptiler.download/geodata/omt/lake_centerline.shp.zip") .addShapefileSource(OpenMapTilesProfile.WATER_POLYGON_SOURCE, sourcesDir.resolve("water-polygons-split-3857.zip"), "https://osmdata.openstreetmap.de/download/water-polygons-split-3857.zip") .addNaturalEarthSource(OpenMapTilesProfile.NATURAL_EARTH_SOURCE, sourcesDir.resolve("natural_earth_vector.sqlite.zip"), - "https://naciscdn.org/naturalearth/packages/natural_earth_vector.sqlite.zip") + // upstream is at https://naciscdn.org/naturalearth/packages/natural_earth_vector.sqlite.zip , + // following is same URL as used in the OpenMapTiles, a mirror maintained by MapTiler + "https://dev.maptiler.download/geodata/omt/natural_earth_vector.sqlite.zip") .addOsmSource(OpenMapTilesProfile.OSM_SOURCE, sourcesDir.resolve(area.replaceAll("[^a-zA-Z]+", "_") + ".osm.pbf"), "planet".equalsIgnoreCase(area) ? ("aws:latest") : ("geofabrik:" + area))