Skip to content

Commit

Permalink
remove map.vis and trip.vis
Browse files Browse the repository at this point in the history
  • Loading branch information
chenchenplus committed Sep 25, 2024
1 parent 0604c9a commit b8284ec
Show file tree
Hide file tree
Showing 13 changed files with 34 additions and 598 deletions.
7 changes: 0 additions & 7 deletions examples/build_map.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import geojson

from mosstool.map.builder import Builder
from mosstool.map.vis import VisMap
from mosstool.type import Map
from mosstool.util.format_converter import dict2pb

Expand All @@ -18,9 +17,3 @@
pb = dict2pb(m, Map())
with open("data/temp/map.pb", "wb") as f:
f.write(pb.SerializeToString())
vis_map = VisMap(pb)
fc = vis_map.feature_collection
with open("data/temp/map.geojson", "w") as f:
geojson.dump(fc, f, ensure_ascii=False, indent=2)
deck = vis_map.visualize()
deck.to_html("data/temp/map.html")
5 changes: 0 additions & 5 deletions examples/sumo_map_convert.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import logging

from mosstool.map.sumo.map import MapConverter
from mosstool.map.vis import VisMap
from mosstool.type import Map
from mosstool.util.format_converter import dict2pb

Expand All @@ -18,7 +17,3 @@
pb = dict2pb(m, Map())
with open("data/temp/sumo_map.pb", "wb") as f:
f.write(pb.SerializeToString())
vis_map = VisMap(pb)
fc = vis_map.feature_collection
deck = vis_map.visualize()
deck.to_html("data/temp/sumo_map.html")
16 changes: 0 additions & 16 deletions examples/vis_map.py

This file was deleted.

21 changes: 0 additions & 21 deletions examples/vis_trip.py

This file was deleted.

12 changes: 3 additions & 9 deletions mosstool/map/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,9 @@
MOSS Map Tools
"""

from ._map_util.const import (
LANE_START_ID,
ROAD_START_ID,
JUNC_START_ID,
AOI_START_ID,
POI_START_ID,
)
from . import builder, gmns, osm, public_transport, sumo, vis
from . import builder, gmns, osm, public_transport, sumo
from ._map_util.const import (AOI_START_ID, JUNC_START_ID, LANE_START_ID,
POI_START_ID, ROAD_START_ID)

__all__ = [
"LANE_START_ID",
Expand All @@ -22,5 +17,4 @@
"osm",
"public_transport",
"sumo",
"vis",
]
3 changes: 1 addition & 2 deletions mosstool/map/public_transport/public_transport_post.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
from pycityproto.city.routing.v2.routing_service_pb2 import GetRouteRequest
from tqdm import tqdm

from mosstool.trip.route import RoutingClient

from ...trip.route import RoutingClient
from .._map_util.const import *

__all__ = [
Expand Down
7 changes: 0 additions & 7 deletions mosstool/map/vis/__init__.py

This file was deleted.

275 changes: 0 additions & 275 deletions mosstool/map/vis/map.py

This file was deleted.

4 changes: 2 additions & 2 deletions mosstool/trip/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
MOSS Trip (with route) Tools
"""

from . import generator, gmns, route, sumo, vis
from . import generator, gmns, route, sumo

__all__ = ["generator", "gmns", "route", "sumo", "vis"]
__all__ = ["generator", "gmns", "route", "sumo"]
Loading

0 comments on commit b8284ec

Please sign in to comment.