mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
work
This commit is contained in:
@@ -92,4 +92,4 @@ mv image2.btrfs tiles.btrfs
|
||||
|
||||
pigz tiles.btrfs --fast
|
||||
|
||||
echo DONE
|
||||
echo extract_btrfs.sh DONE
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -11,5 +11,6 @@ venv/bin/pip -V
|
||||
|
||||
venv/bin/pip install -U pip wheel setuptools
|
||||
|
||||
venv/bin/pip install click
|
||||
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user