BHoM / BHoM/OpenStreetMap_Toolkit
Way object duplicates Node data. Ways should only store references to Node ids
- Dominant language
- C#
- Stars
- 4
- Forks
- 2
- Avg merge
- 10d 18h
- Merged PRs (30d)
- 1
Description
#### Broken rules:
`ElementContainer` stores the results of an OSM query as collections of `Node`s, `Way`s and eventually `Relation`s. At present the collection of `Node`s contains values for latitude and longitude of each `Node` and the Key Value pairs scraped from OSM. The `Way` object duplicates these rather than just storing the Node id as a reference.
#### Suggestions to restore compliance:
Switch the `Way` object to store ids only.
While the current system is convenient for converting a `Way` to a polyline (as there is no need to reference the `Node`s) it appears to break the rules and result in unnecessary storage of duplicated data.
'ToUTMPolyline' method will also need updating / refactoring to reference set of Nodes
Contributor guide
Assessment
This issue has not been assessed yet.