align source data URLs with OpenMapTiles (#54)

URLs for Natural Earth and Lake Centerline updated to match what is used in the OpenMapTiles
This commit is contained in:
Peter Hanecak
2022-12-01 18:36:46 +01:00
committed by GitHub
parent ba7d61f34b
commit 7171538bd5

View File

@@ -35,14 +35,17 @@ public class OpenMapTilesMain {
// or osm_path=... osm_url=... in a config file // or osm_path=... osm_url=... in a config file
.addShapefileSource("EPSG:3857", OpenMapTilesProfile.LAKE_CENTERLINE_SOURCE, .addShapefileSource("EPSG:3857", OpenMapTilesProfile.LAKE_CENTERLINE_SOURCE,
sourcesDir.resolve("lake_centerline.shp.zip"), 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 // upstream is at https://github.com/acalcutt/osm-lakelines/releases/download/latest/lake_centerline.shp.zip ,
"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, .addShapefileSource(OpenMapTilesProfile.WATER_POLYGON_SOURCE,
sourcesDir.resolve("water-polygons-split-3857.zip"), sourcesDir.resolve("water-polygons-split-3857.zip"),
"https://osmdata.openstreetmap.de/download/water-polygons-split-3857.zip") "https://osmdata.openstreetmap.de/download/water-polygons-split-3857.zip")
.addNaturalEarthSource(OpenMapTilesProfile.NATURAL_EARTH_SOURCE, .addNaturalEarthSource(OpenMapTilesProfile.NATURAL_EARTH_SOURCE,
sourcesDir.resolve("natural_earth_vector.sqlite.zip"), 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, .addOsmSource(OpenMapTilesProfile.OSM_SOURCE,
sourcesDir.resolve(area.replaceAll("[^a-zA-Z]+", "_") + ".osm.pbf"), sourcesDir.resolve(area.replaceAll("[^a-zA-Z]+", "_") + ".osm.pbf"),
"planet".equalsIgnoreCase(area) ? ("aws:latest") : ("geofabrik:" + area)) "planet".equalsIgnoreCase(area) ? ("aws:latest") : ("geofabrik:" + area))