()
| 91 | |
| 92 | @staticmethod |
| 93 | def ft2osm(): |
| 94 | parser = argparse.ArgumentParser( |
| 95 | description="Finds features in an mwm file based on a query." |
| 96 | ) |
| 97 | parser.add_argument( |
| 98 | "--path", type=str, required=True, help="Path to osm to feature mapping." |
| 99 | ) |
| 100 | parser.add_argument("--id", type=str, required=True, help="Feature id.") |
| 101 | args = parser.parse_args(sys.argv[2:]) |
| 102 | id = ft2osm(args.path, args.id) |
| 103 | if id is None: |
| 104 | print("Error: id not found.") |
| 105 | exit(1) |
| 106 | print(id) |
| 107 | |
| 108 | @staticmethod |
| 109 | def mwm_feature_compare(): |
nothing calls this directly
no test coverage detected