Skip to content

Commit

Permalink
add landcover
Browse files Browse the repository at this point in the history
  • Loading branch information
0xFA11 committed Oct 19, 2024
1 parent 970d028 commit beecf2d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ WORKDIR /tilemaker/coastline
RUN curl -O https://osmdata.openstreetmap.de/download/water-polygons-split-4326.zip
RUN unzip -oj water-polygons-split-4326.zip

WORKDIR /tilemaker/landcover
RUN curl -O https://naciscdn.org/naturalearth/10m/physical/ne_10m_antarctic_ice_shelves_polys.zip
RUN curl -O https://naciscdn.org/naturalearth/10m/physical/ne_10m_glaciated_areas.zip
RUN curl -O https://naciscdn.org/naturalearth/10m/cultural/ne_10m_urban_areas.zip
RUN unzip -oj ne_10m_antarctic_ice_shelves_polys.zip
RUN unzip -oj ne_10m_glaciated_areas.zip
RUN unzip -oj ne_10m_urban_areas.zip

FROM debian:bookworm-slim AS tilemaker-generate

RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends \
Expand All @@ -26,6 +34,7 @@ WORKDIR /tilemaker
COPY --from=tilemaker-compile /tilemaker/build/tilemaker .
COPY --from=tilemaker-compile /tilemaker/resources ./resources
COPY --from=tilemaker-compile /tilemaker/coastline ./coastline
COPY --from=tilemaker-compile /tilemaker/landcover ./landcover

# RUN jq ".settings.include_ids=true" resources/config-openmaptiles.json | sponge resources/config-openmaptiles.json
RUN jq '.settings.include_ids=true | .settings.maxzoom = 16 | .settings.basezoom = 16 | .settings.combine_below = 16 | .layers.building.minzoom = 12 | (.layers[] | .maxzoom) |= if . == 14 then 16 else . end' resources/config-openmaptiles.json | sponge resources/config-openmaptiles.json
Expand Down

0 comments on commit beecf2d

Please sign in to comment.