-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
43 changed files
with
2,212 additions
and
1,917 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | ||
} |
Oops, something went wrong.