topo_map_processor 0.1.19__tar.gz → 0.1.21__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: topo_map_processor
3
- Version: 0.1.19
3
+ Version: 0.1.21
4
4
  Summary: Library for processing topographic maps
5
5
  Project-URL: homepage, https://github.com/ramSeraph/topo_map_processor
6
6
  Project-URL: repository, https://github.com/ramSeraph/topo_map_processor.git
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
28
28
  commit_id: COMMIT_ID
29
29
  __commit_id__: COMMIT_ID
30
30
 
31
- __version__ = version = '0.1.19'
32
- __version_tuple__ = version_tuple = (0, 1, 19)
31
+ __version__ = version = '0.1.21'
32
+ __version_tuple__ = version_tuple = (0, 1, 21)
33
33
 
34
34
  __commit_id__ = commit_id = None
@@ -8,7 +8,7 @@ from pathlib import Path
8
8
  from multiprocessing import set_start_method
9
9
 
10
10
  from pmtiles_mosaic.partition import partition_main
11
- from release_tools.download_from_release import cli as download_from_release_main
11
+ from release_tools.download_from_release import main as download_from_release_main
12
12
 
13
13
  from .retile import retile_main
14
14
  from .create_force_redo_bounds import main as create_force_redo_bounds_main
@@ -52,6 +52,7 @@ def cli():
52
52
  parser.add_argument("-g", "--gtiffs-release", required=True, help="GeoTIFFs release tag")
53
53
  parser.add_argument("-x", "--pmtiles-prefix", required=True, help="Prefix for PMTiles files")
54
54
  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")
55
56
  args = parser.parse_args()
56
57
 
57
58
  # Define paths and filenames
@@ -143,7 +144,7 @@ def cli():
143
144
  "--from-source", f"{from_pmtiles_prefix}*.pmtiles",
144
145
  "--to-pmtiles", f"{to_pmtiles_prefix}.pmtiles",
145
146
  "--exclude-transparent"
146
- ])
147
+ ] + (["--no-cache"] if args.no_cache else []))
147
148
 
148
149
  # Upload new PMTiles and manage release assets
149
150
  print("Deleting old PMTiles files from the release...")