Skip to content

Commit

Permalink
TileAPI/Tippecanoe
Browse files Browse the repository at this point in the history
  • Loading branch information
docuracy committed Dec 24, 2024
1 parent 7e9f8c9 commit 6c1953a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
File renamed without changes.
8 changes: 1 addition & 7 deletions tileserver/docker/tippecanoe/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ubuntu:22.04

LABEL description="Tippecanoe and Tyler Too: incorporates additional dependencies for GIS data processing."
LABEL description="Tippecanoe and Tyler Too: incorporates additional dependencies for debugging."

# Install dependencies
RUN apt-get update && apt-get install -y \
Expand All @@ -15,13 +15,7 @@ RUN apt-get update && apt-get install -y \
wget \
curl \
make \
postgresql-client # Facilitates communication with the Django Postgres database \
gdal-bin # Facilitates GIS data processing \
python3 \
python3-pip \
jq \
netcat \
tee \
&& rm -rf /var/lib/apt/lists/*

# Clone Tippecanoe and build
Expand Down
6 changes: 3 additions & 3 deletions tileserver/repository/api/utils/kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from kubernetes.stream import stream
import time
import requests
import json
import shlex
from typing import Dict, Any

TILESERVER_HEALTH_URL = "http://tileserver-gl:8080/health"
Expand Down Expand Up @@ -100,8 +100,8 @@ def start_tippecanoe_job(tileset_type: str, tileset_id: int, geojson_url: str, n
"/tippecanoe/tippecanoe", # Path to the Tippecanoe binary
"-o", f"{tileset_type}-{tileset_id}.mbtiles", # Output file name
"-f", # Force overwrite output file if it exists
"-n", name, # Name of the tileset
"-A", attribution, # Attribution text
"-n", shlex.quote(name), # Name of the tileset
"-A", shlex.quote(attribution), # Attribution text
"-l", "features", # Layer name
"-B", "4", # Buffer size (larger values = more detail but larger tiles)
"-rg", "10", # Generalization factor (higher = more simplified geometry)
Expand Down
2 changes: 1 addition & 1 deletion tileserver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ tileserver:

tippecanoe:
image: "worldhistoricalgazetteer/tippecanoe"
imageTag: "latest"
imageTag: "v0.0.2"
imagePullPolicy: "IfNotPresent"

pv:
Expand Down

0 comments on commit 6c1953a

Please sign in to comment.