mirror of
https://github.com/enzet/map-machine.git
synced 2025-08-03 08:40:11 +02:00
Issue #23: fix building perspective.
This commit is contained in:
parent
6705f7418a
commit
2fccc9cf67
10 changed files with 374 additions and 137 deletions
|
@ -42,7 +42,7 @@ class OSMNode(Tagged):
|
|||
super().__init__()
|
||||
|
||||
self.id_: Optional[int] = None
|
||||
self.position: Optional[np.array] = None
|
||||
self.coordinates: Optional[np.array] = None
|
||||
|
||||
self.visible: Optional[str] = None
|
||||
self.changeset: Optional[str] = None
|
||||
|
@ -58,7 +58,7 @@ class OSMNode(Tagged):
|
|||
:param is_full: if false, parse only ID, latitude and longitude
|
||||
"""
|
||||
self.id_ = int(get_value("id", text))
|
||||
self.position = np.array((
|
||||
self.coordinates = np.array((
|
||||
float(get_value("lat", text)), float(get_value("lon", text))))
|
||||
|
||||
if is_full:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue