mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-19 19:21:51 +02:00
Move tags to separate file.
This commit is contained in:
parent
1bfdcee1d7
commit
df67d8c37a
2 changed files with 36 additions and 39 deletions
|
@ -14,6 +14,7 @@ from map_machine.geometry.flinger import Flinger
|
||||||
from map_machine.map_configuration import MapConfiguration
|
from map_machine.map_configuration import MapConfiguration
|
||||||
from map_machine.mapper import Map
|
from map_machine.mapper import Map
|
||||||
from map_machine.osm.osm_reader import OSMData, OSMNode, OSMWay
|
from map_machine.osm.osm_reader import OSMData, OSMNode, OSMWay
|
||||||
|
from map_machine.osm.tags import HIGHWAY_VALUES, AEROWAY_VALUES, RAILWAY_TAGS
|
||||||
from map_machine.pictogram.icon import ShapeExtractor
|
from map_machine.pictogram.icon import ShapeExtractor
|
||||||
from map_machine.scheme import Scheme
|
from map_machine.scheme import Scheme
|
||||||
from map_machine.workspace import Workspace
|
from map_machine.workspace import Workspace
|
||||||
|
@ -26,45 +27,6 @@ SHAPE_EXTRACTOR: ShapeExtractor = ShapeExtractor(
|
||||||
)
|
)
|
||||||
DEFAULT_ZOOM: float = 18.0
|
DEFAULT_ZOOM: float = 18.0
|
||||||
|
|
||||||
|
|
||||||
HIGHWAY_VALUES: list[str] = [
|
|
||||||
"motorway",
|
|
||||||
"trunk",
|
|
||||||
"primary",
|
|
||||||
"secondary",
|
|
||||||
"tertiary",
|
|
||||||
"unclassified",
|
|
||||||
"residential",
|
|
||||||
"service",
|
|
||||||
"service_minor",
|
|
||||||
"road",
|
|
||||||
"pedestrian",
|
|
||||||
"living_street",
|
|
||||||
"bridleway",
|
|
||||||
"cycleway",
|
|
||||||
"footway",
|
|
||||||
"steps",
|
|
||||||
"path",
|
|
||||||
"track",
|
|
||||||
"raceway",
|
|
||||||
]
|
|
||||||
|
|
||||||
AEROWAY_VALUES: list[str] = [
|
|
||||||
"runway",
|
|
||||||
"taxiway",
|
|
||||||
]
|
|
||||||
|
|
||||||
RAILWAY_TAGS: list[dict[str, str]] = [
|
|
||||||
{"railway": "rail"},
|
|
||||||
{"railway": "light_rail"},
|
|
||||||
{"railway": "monorail"},
|
|
||||||
{"railway": "funicular"},
|
|
||||||
{"railway": "narrow_gauge"},
|
|
||||||
{"railway": "subway"},
|
|
||||||
{"railway": "subway", "color": "red"},
|
|
||||||
{"railway": "subway", "color": "blue"},
|
|
||||||
]
|
|
||||||
|
|
||||||
ROAD_WIDTHS_AND_FEATURES: list[dict[str, str]] = [
|
ROAD_WIDTHS_AND_FEATURES: list[dict[str, str]] = [
|
||||||
{"width": "4"},
|
{"width": "4"},
|
||||||
{"width": "8"},
|
{"width": "8"},
|
||||||
|
|
35
map_machine/osm/tags.py
Normal file
35
map_machine/osm/tags.py
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
HIGHWAY_VALUES: list[str] = [
|
||||||
|
"motorway",
|
||||||
|
"trunk",
|
||||||
|
"primary",
|
||||||
|
"secondary",
|
||||||
|
"tertiary",
|
||||||
|
"unclassified",
|
||||||
|
"residential",
|
||||||
|
"service",
|
||||||
|
"service_minor",
|
||||||
|
"road",
|
||||||
|
"pedestrian",
|
||||||
|
"living_street",
|
||||||
|
"bridleway",
|
||||||
|
"cycleway",
|
||||||
|
"footway",
|
||||||
|
"steps",
|
||||||
|
"path",
|
||||||
|
"track",
|
||||||
|
"raceway",
|
||||||
|
]
|
||||||
|
AEROWAY_VALUES: list[str] = [
|
||||||
|
"runway",
|
||||||
|
"taxiway",
|
||||||
|
]
|
||||||
|
RAILWAY_TAGS: list[dict[str, str]] = [
|
||||||
|
{"railway": "rail"},
|
||||||
|
{"railway": "light_rail"},
|
||||||
|
{"railway": "monorail"},
|
||||||
|
{"railway": "funicular"},
|
||||||
|
{"railway": "narrow_gauge"},
|
||||||
|
{"railway": "subway"},
|
||||||
|
{"railway": "subway", "color": "red"},
|
||||||
|
{"railway": "subway", "color": "blue"},
|
||||||
|
]
|
Loading…
Add table
Add a link
Reference in a new issue