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

Function load_osm2ft

tools/python/post_generation/inject_promo_ids.py:121–127  ·  view source on GitHub ↗
(osm2ft_path, mwm_id)

Source from the content-addressed store, hash-verified

119
120
121def load_osm2ft(osm2ft_path, mwm_id):
122 osm2ft_name = os.path.join(osm2ft_path, mwm_id + ".mwm.osm2ft")
123 if not os.path.exists(osm2ft_name):
124 logging.error(f"Cannot find {osm2ft_name}")
125 sys.exit(3)
126 with open(osm2ft_name, "rb") as f:
127 return read_osm2ft(f, ft2osm=True, tuples=False)
128
129
130def inject_promo_ids(

Callers 1

_findMethod · 0.85

Calls 2

read_osm2ftFunction · 0.90
joinMethod · 0.45

Tested by

no test coverage detected