Source code for py3dtiles.info

#! /usr/bin/env python
# -*- coding: utf-8 -*-
from py3dtiles import TileContentReader










[docs] def main(args): tile = TileContentReader.read_file(args.filename) magic = tile.header.magic_value if magic == "pnts": print_pnts_info(tile) elif magic == "b3dm": print_b3dm_info(tile) else: raise RuntimeError("Unsupported format " + magic)
[docs] def init_parser(subparser, str2bool): # arg parse parser = subparser.add_parser('info', help='Extract informations from a 3DTiles file') parser.add_argument('filename', type=str)