mirror of
https://github.com/dataforcanada/d4c-datapkg-orthoimagery.git
synced 2026-06-13 14:10:53 +02:00
Barebones commit. Need to fill it all out
This commit is contained in:
@@ -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
|
||||||
+38
@@ -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}
|
||||||
+41
@@ -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}
|
||||||
Reference in New Issue
Block a user