Skip to content

Commit

Permalink
v2
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdajack committed Apr 10, 2022
2 parents 5dc9258 + 611cb70 commit b0653d0
Show file tree
Hide file tree
Showing 43 changed files with 2,212 additions and 1,917 deletions.
6 changes: 6 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/sh

echo "RUNNING PRE-COMMIT HOOK | .githooks/pre-commit"

echo "Running go fmt"
go fmt ./...
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
mbtiles
openmaptiles
tippecanoe
tilemaker
pbf
coastline
water-polygons*
test.json
my.json
my.json
tmp
data
main
REPORT.txt

!/configs/tilemaker
297 changes: 35 additions & 262 deletions README.md

Large diffs are not rendered by default.

34 changes: 34 additions & 0 deletions build/osmium/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
FROM ubuntu
ARG DEBIAN_FRONTEND=noninteractive

ENV OSMIUM_VERSION 2.18.0
ENV OSMIUM_TOOL_VERSION 1.14.0

RUN apt-get update
RUN apt-get update && apt-get install -y \
wget libosmium2-dev libprotozero-dev libboost-program-options-dev libbz2-dev zlib1g-dev liblz4-dev libexpat1-dev cmake pandoc build-essential

RUN mkdir /var/install
WORKDIR /var/install

RUN wget https://github.com/osmcode/libosmium/archive/v${OSMIUM_VERSION}.tar.gz && \
tar xzvf v${OSMIUM_VERSION}.tar.gz && \
rm v${OSMIUM_VERSION}.tar.gz && \
mv libosmium-${OSMIUM_VERSION} libosmium

RUN cd libosmium && \
mkdir build && cd build && \
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -DINSTALL_PROTOZERO=ON .. && \
make

RUN wget https://github.com/osmcode/osmium-tool/archive/v${OSMIUM_TOOL_VERSION}.tar.gz && \
tar xzvf v${OSMIUM_TOOL_VERSION}.tar.gz && \
rm v${OSMIUM_TOOL_VERSION}.tar.gz && \
mv osmium-tool-${OSMIUM_TOOL_VERSION} osmium-tool

RUN cd osmium-tool && \
mkdir build && cd build && \
cmake -DOSMIUM_INCLUDE_DIR=/var/install/libosmium/include/ .. && \
make

RUN mv /var/install/osmium-tool/build/src/osmium /usr/bin/osmium
27 changes: 27 additions & 0 deletions cmd/sequentially-generate-planet-mbtiles/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package main

import (
"github.com/lambdajack/sequentially-generate-planet-mbtiles/internal/buildthirdpartycontainers"
"github.com/lambdajack/sequentially-generate-planet-mbtiles/internal/clonerepos"
"github.com/lambdajack/sequentially-generate-planet-mbtiles/internal/downloadosmdata"
"github.com/lambdajack/sequentially-generate-planet-mbtiles/internal/extractquadrants"
"github.com/lambdajack/sequentially-generate-planet-mbtiles/internal/extractslices"
"github.com/lambdajack/sequentially-generate-planet-mbtiles/internal/flags"
"github.com/lambdajack/sequentially-generate-planet-mbtiles/internal/folders"
"github.com/lambdajack/sequentially-generate-planet-mbtiles/internal/genmbtiles"
"github.com/lambdajack/sequentially-generate-planet-mbtiles/internal/genplanet"
"github.com/lambdajack/sequentially-generate-planet-mbtiles/internal/unzipwaterpolygons"
)

func main() {
flags.GetFlags()
folders.SetupFolderStructure()
clonerepos.CloneRepos()
buildthirdpartycontainers.BuildContainers()
downloadosmdata.DownloadOsmData()
unzipwaterpolygons.UnzipWaterPolygons()
extractquadrants.ExtractQuadrants()
extractslices.ExtractSlicesFromQuadrants()
genmbtiles.GenMbtiles()
genplanet.GenPlanet()
}
Loading

0 comments on commit b0653d0

Please sign in to comment.