This commit is contained in:
Zsolt Ero
2023-12-21 03:07:55 +01:00
parent 48736bf87b
commit aaf9d2c74e
10 changed files with 50 additions and 42 deletions

View File

@@ -92,4 +92,4 @@ mv image2.btrfs tiles.btrfs
pigz tiles.btrfs --fast
echo DONE
echo extract_btrfs.sh DONE

View File

@@ -42,7 +42,7 @@ def cli(mbtiles_path: Path, dir_path: Path):
# print(f'Tile number: {calculate_tiles_sum(14)} - OK')
write_metadata(c, dir_path=dir_path)
print('DONE')
print('extract_mbtiles.py DONE')
def write_metadata(c, *, dir_path):

View File

@@ -22,8 +22,8 @@ java -Xmx1g \
`# Store temporary node locations at fixed positions in a memory-mapped file` \
--nodemap-type=array --storage=mmap \
--force \
> "planetiler_out.log" 2> "planetiler_err.log"
> planetiler_out 2> planetiler_err
rm -r data
$TILE_GEN_BIN/extract_btrfs.sh
#$TILE_GEN_BIN/extract_btrfs.sh

View File

@@ -24,7 +24,8 @@ java -Xmx30g \
`# Store temporary node locations at fixed positions in a memory-mapped file` \
--nodemap-type=array --storage=mmap \
--force \
> "planetiler_out.log" 2> "planetiler_err.log"
> planetiler_out 2> planetiler_err
rm -r data
#$TILE_GEN_BIN/extract_btrfs.sh

View File

@@ -11,5 +11,6 @@ venv/bin/pip -V
venv/bin/pip install -U pip wheel setuptools
venv/bin/pip install click

View File

@@ -70,6 +70,7 @@ def cli(btrfs_img: Path):
subprocess.run(['truncate', '-s', str(total_size), btrfs_img])
print(f'Truncated {btrfs_img} to {total_size//1_000_000} MB size')
print('shrink_btrfs.py DONE')
def get_usage(mnt: Path, key: str):