(args)
| 90 | |
| 91 | |
| 92 | def main(args): |
| 93 | if args.input_format != "flat": |
| 94 | geometries = deserialize_geometries(args.input, args.input_format) |
| 95 | tagged_points = flatten(geometries) |
| 96 | else: |
| 97 | tagged_points = deserialize_flat(args.input) |
| 98 | transformed_points = project(tagged_points, args.kind, args.dimensions, args.scale) |
| 99 | |
| 100 | if args.output_format != "flat": |
| 101 | transformed_geoms = unflatten(transformed_points) |
| 102 | serialize_geometries(transformed_geoms, args.output, args.output_format) |
| 103 | else: |
| 104 | serialize_flat(transformed_points, args.output) |
| 105 | |
| 106 | |
| 107 | if __name__ == "__main__": |
no test coverage detected