daem-on / wtherion

A web-based Therion map editor
https://daem-on.github.io/wtherion/
MIT License
17 stars 2 forks source link

not all scrap metadata survives round trip from th2 to WTherion to json and back #7

Open CaverBruce opened 2 years ago

CaverBruce commented 2 years ago

Original scrap definition in th2:

scrap 3-HawkesPlan-s1 -projection plan -station-names []@3 -author 2022.05.06 "B Mutton" -copyright 2022 NZSS -scale [0 0 787.4 787.4 0 0 10 10 m]

Scrap definition in resultant th2:

scrap 3-HawkesPlan-s1 -scale [0 0 787.4 787.4 0 0 10 10 m] -projection "plan" -author "2022.05.06" -copyright "2022" undefined -station-names []@3

-author is missing the author's name -copyright is missing the copyrighter's name (becomes 'undefined').

There may be an issue with data type also (string instead of date).

CaverBruce commented 1 year ago

Checked as discussed in #11 (to be posted soon) Original scrap definition in th2: scrap 3-HawkesPlan-s1 -projection plan -station-names []@3 -author 2022.05.06 "B Mutton" -copyright 2022 NZSS -scale [0 0 787.4 787.4 0 0 10 10 m]

Scrap definition in resultant th2: scrap 3-HawkesPlan-s1 -scale [0 0 787.4 787.4 0 0 10 10 m] -projection "plan" -author "2022.05.06 "B Mutton" -copyright "2022 NZSS" -station-names []@3