mirror of
https://github.com/enzet/map-machine.git
synced 2025-05-06 21:56:41 +02:00
Add single node drawing.
This commit is contained in:
parent
5dfbe17b7e
commit
7b1c8e82a0
1 changed files with 9 additions and 0 deletions
|
@ -7,6 +7,7 @@ import numpy as np
|
||||||
import svgwrite
|
import svgwrite
|
||||||
from svgwrite.path import Path as SVGPath
|
from svgwrite.path import Path as SVGPath
|
||||||
|
|
||||||
|
from element.grid import Grid
|
||||||
from map_machine.map_configuration import LabelMode
|
from map_machine.map_configuration import LabelMode
|
||||||
from map_machine.pictogram.icon import ShapeExtractor
|
from map_machine.pictogram.icon import ShapeExtractor
|
||||||
from map_machine.pictogram.point import Point
|
from map_machine.pictogram.point import Point
|
||||||
|
@ -17,6 +18,14 @@ from map_machine.workspace import workspace
|
||||||
__author__ = "Sergey Vartanov"
|
__author__ = "Sergey Vartanov"
|
||||||
__email__ = "me@enzet.ru"
|
__email__ = "me@enzet.ru"
|
||||||
|
|
||||||
|
from osm.osm_reader import Tags
|
||||||
|
|
||||||
|
|
||||||
|
def draw_node(tags: Tags) -> None:
|
||||||
|
grid: Grid = Grid()
|
||||||
|
grid.add_node(tags, 0, 0)
|
||||||
|
grid.draw(Path("out.svg"))
|
||||||
|
|
||||||
|
|
||||||
def draw_element(options: argparse.Namespace) -> None:
|
def draw_element(options: argparse.Namespace) -> None:
|
||||||
"""Draw single node, line, or area."""
|
"""Draw single node, line, or area."""
|
||||||
|
|
Loading…
Add table
Reference in a new issue