Renderer CLI

For more help, run renderer <task> -h

usage: __main__.py [-h] {info,render,merge,1to2} ...

positional arguments:
  {info,render,merge,1to2}
                        task to run
    info                view info about the renderer
    render              render tiles
    merge               merge tiles
    1to2                convert PLA 1 to PLA 2

options:
  -h, --help            show this help message and exit
renderer 1to2

Converts PLA1 files to PLA2 format.

usage: __main__.py 1to2 [-h] [-c Path] [-n Path] [-o Path] [--json]

options:
  -h, --help            show this help message and exit
  -c Path, --comps Path
                        the directory of PLA 1 components
  -n Path, --nodes Path
                        the directory of PLA 1 nodes
  -o Path, --out Path   the directory to output PLA 2 files
  --json                save PLA 2 as json instead of msgpack
renderer render

Render from JSON files.

usage: __main__.py render [-h] -f Path -m int -M int -r float [-e str]
                          [-td Path] [-s str] [-ad Path] [-sd Path] [-p int]
                          [-t tile_coord [tile_coord ...]] [-z int [int ...]]
                          [-o int int] [-p1b int] [-p1c int] [-p1s]
                          [-p2ab int] [-p2ac int] [-p2as] [-p2bb int]
                          [-p2bc int] [-p2bs] [-p3b int] [-p3c int] [-p3s]

options:
  -h, --help            show this help message and exit
  -f Path, --file Path  the PLA 2 file to render from
  -m int, --min_zoom int
                        Minimum zoom value
  -M int, --max_zoom int
                        Maximum zoom value
  -r float, --max_zoom_range float
                        Actual distance covered by a tile in the maximum zoom
  -e str, --export_id str
                        The name of the rendering task
  -td Path, --temp_dir Path
                        the temporary data folder that will be used to save
                        data
  -s str, --skin str    The skin to use for rendering the tiles
  -ad Path, --assets_dir Path
                        The asset directory for the skin
  -sd Path, --save_dir Path
                        The directory to save tiles to
  -p int, --processes int
                        The number of processes to run for rendering
  -t tile_coord [tile_coord ...], --tiles tile_coord [tile_coord ...]
                        a list of tiles to render, given as `z,x,y [z,x,y...]`
  -z int [int ...], --zooms int [int ...]
                        a list of zooms to render, given as `z [z...]`
  -o int int, --offset int int
                        the offset of node coordinates, given as `x y`
  -p1b int, --part1_batch_size int
                        The batch size for part 1
  -p1c int, --part1_chunk_size int
                        The chunk size for part 1
  -p1s, --part1_serial  Whether part 1 will be run serially
  -p2ab int, --part2a_batch_size int
                        The batch size for part 2a
  -p2ac int, --part2a_chunk_size int
                        The chunk size for part 2a
  -p2as, --part2a_serial
                        Whether part 2a will be run serially
  -p2bb int, --part2b_batch_size int
                        The batch size for part 2b
  -p2bc int, --part2b_chunk_size int
                        The chunk size for part 2b
  -p2bs, --part2b_serial
                        Whether part 2b will be run serially
  -p3b int, --part3_batch_size int
                        The batch size for part 3
  -p3c int, --part3_chunk_size int
                        The chunk size for part 3
  -p3s, --part3_serial  Whether part 3 will be run serially
renderer merge

Merge tiles.

usage: __main__.py merge [-h] [-i Path] [-s Path] [-z [int ...]]

options:
  -h, --help            show this help message and exit
  -i Path, --image_dir Path
                        the directory of tiles
  -s Path, --save_dir Path
                        the directory to save the merged image to
  -z [int ...], --zoom [int ...]
                        the zoom levels to merge
renderer info

Get renderer info.

usage: __main__.py info [-h]

options:
  -h, --help  show this help message and exit