Skip to content

Commit 41c5da5

Browse files
committed
expose the pmtiles no-cache flag in retile-e2e
1 parent 02301ff commit 41c5da5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

topo_map_processor/tools/retile_e2e.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def cli():
5252
parser.add_argument("-g", "--gtiffs-release", required=True, help="GeoTIFFs release tag")
5353
parser.add_argument("-x", "--pmtiles-prefix", required=True, help="Prefix for PMTiles files")
5454
parser.add_argument("--bounds-file-tiled", required=True, help="Name of the bounds file in the pmtiles release (the old bounds file)")
55+
parser.add_argument("--no-cache", action='store_true', required=False, help="Don't cache files locally during pmtiles partitioning")
5556
args = parser.parse_args()
5657

5758
# Define paths and filenames
@@ -143,7 +144,7 @@ def cli():
143144
"--from-source", f"{from_pmtiles_prefix}*.pmtiles",
144145
"--to-pmtiles", f"{to_pmtiles_prefix}.pmtiles",
145146
"--exclude-transparent"
146-
])
147+
] + (["--no-cache"] if args.no_cache else []))
147148

148149
# Upload new PMTiles and manage release assets
149150
print("Deleting old PMTiles files from the release...")

0 commit comments

Comments
 (0)