Barebones commit. Need to fill it all out

This commit is contained in:
Diego Ripley
2026-01-29 15:08:59 -05:00
parent 89cc0dcb54
commit 011045114b
16 changed files with 95 additions and 0 deletions
View File
View File
@@ -0,0 +1,16 @@
-mbtiles_compatible
-srs_epsg
-jpeg_allow_large
-scale 2.000000
-store mbtiles
-f webp32 -webp_quality 85 -webp_lossy -webp_preset photo
-name "City of Burnaby Orthoimagery for 2020 / Ortho-imagerie de la Ville de Burnaby de 2020"
-description "Orthoimagery 7.5cm resolution. / Ortho-imagerie à résolution de 7,5 cm."
-attribution "Source: data.burnaby.ca / Source: data.burnaby.ca"
-sparse
-resampling cubic
-overviews_resampling average
"/home/ripd/Documents/Personal/Projects/dataforcanada/process-orthoimagery/data/input/ca-bc_burnaby-2020A00055915025/Burnaby_2020_7.5cm.sid"
-nodata 255 255 255
-ignore_alpha
-b 1 -b 2 -b 3
@@ -0,0 +1,38 @@
#!/bin/bash
PROJECT_DIR="~/Documents/Personal/Projects/dataforcanada/process-orthoimagery-dev"
DATA_DIR="${PROJECT_DIR}/data"
DATA_INPUT_DIR="${DATA_DIR}/input/maptiler_engine_experiments"
DATA_OUTPUT_DIR="${DATA_DIR}/output/maptiler_engine_experiments"
INPUT_DIR="${PROJECT_DIR}/data/input/gine_experiments/winnipeg/original/2024"
MBTILES_OUTPUT_FILE="${DATA_OUTPUT_DIR}/ca-mb_winnipeg-2024A00054611040_orthoimagery_2024_075mm.mbtiles"
PMTILES_OUTPUT_FILE="${DATA_OUTPUT_DIR}/ca-mb_winnipeg-2024A00054611040_orthoimagery_2024_075mm.pmtiles"
# Define arguments in an array
ARGS=(
-progress
-name "City of Vancouver Orthoimagery for 2022 / Ortho-imagerie de la Ville de Vancouver de 2022"
-description "Orthoimagery 7.5cm resolution. / Ortho-imagerie à résolution de 7,5 cm."
-attribution "Source: opendata.vancouver.ca / Source: opendata.vancouver.ca"
-srs_epsg
-mbtiles_compatible
-wo "NUM_THREADS=ALL_CPUS"
-wo "USE_OPENCL=TRUE"
-sparse
-scale 2.000000
-work_dir ~/tmp/maptiler_engine
-f webp32
-webp_quality 85
-webp_lossy
-webp_preset photo
-resampling cubic
-overviews_resampling average
-o "${MBTILES_OUTPUT_FILE}"
$INPUT_DIR/*.ecw
)
# Run the command with the array
maptiler-engine "${ARGS[@]}"
pmtiles convert --tmpdir=~/tmp/pmtiles ${MBTILES_OUTPUT_FILE} ${PMTILES_OUTPUT_FILE}
@@ -0,0 +1,41 @@
#!/bin/bash
PROJECT_DIR="/home/ripd/Documents/Personal/Projects/tiles_experiments"
DATA_DIR="${PROJECT_DIR}/data"
DATA_INPUT_DIR="${DATA_DIR}/input/maptiler_engine_experiments"
DATA_OUTPUT_DIR="${DATA_DIR}/output/maptiler_engine_experiments"
INPUT_DIR="${PROJECT_DIR}/data/input/maptiler_engine_experiments/winnipeg/original/2024"
MBTILES_OUTPUT_FILE="${DATA_OUTPUT_DIR}/ca-mb_winnipeg-2024A00054611040_orthoimagery_2024_075mm.mbtiles"
PMTILES_OUTPUT_FILE="${DATA_OUTPUT_DIR}/ca-mb_winnipeg-2024A00054611040_orthoimagery_2024_075mm.pmtiles"
echo "Output file: $OUTPUT_FILE"
echo "Input file: ${DATA_INPUT_DIR}/*.ecw"
# Define arguments in an array
ARGS=(
-progress
-name "City of Winnipeg Orthoimagery for 2024 / Ortho-imagerie de la Ville de Winnipeg de 2024"
-description "Orthoimagery 7.5cm resolution. / Ortho-imagerie à résolution de 7,5 cm."
-attribution "Source: data.winnipeg.ca / Source: data.winnipeg.ca"
-srs_epsg
-mbtiles_compatible
-wo "NUM_THREADS=ALL_CPUS"
-wo "USE_OPENCL=TRUE"
-sparse
-scale 2.000000
-work_dir ~/tmp/maptiler_engine
-f webp32
-webp_quality 85
-webp_lossy
-webp_preset photo
-resampling cubic
-overviews_resampling average
-o "${MBTILES_OUTPUT_FILE}"
$INPUT_DIR/*.ecw
)
# Run the command with the array
maptiler-engine "${ARGS[@]}"
pmtiles convert --tmpdir=~/tmp/pmtiles ${MBTILES_OUTPUT_FILE} ${PMTILES_OUTPUT_FILE}