MCPcopy Create free account
hub / github.com/comaps/comaps / ft2osm

Method ft2osm

tools/python/mwm/__main__.py:93–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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():

Callers

nothing calls this directly

Calls 2

ft2osmFunction · 0.90
parse_argsMethod · 0.45

Tested by

no test coverage detected