18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-01 18:47:06 +01:00
Files
maszyna/tests/unit/data/project/migration
maj00r f24714c6d6 feat(editor): the //$ lines of an old scenery taken into the project file when its map is first opened
Continues E3 (editor-tracks-domain.md §9 "Migracja", §10): what the //$ lines describe of the track geometry becomes the lines and the
nodes of the domain where the domain lays it as the editor laid it; the rest is kept in the project file as it was written. The lines
stay in the scenery files, untouched; the scenery files aren't written.

- //$h, an alignment: a line between two nodes at its ends, its vertices where the design puts them (from the tangents of the ends
  for one, by the offsets for the first and the last of more), their radii, transitions and cants, the shape of the transitions,
  the origin as the chainage of the start, the speed as the highest of the class; a curve going on from the adjoining track as an end
  going on from the curvature and the cant of its node. Not a compound curve, two transitions with no arc between them, cant ramps
  of its own, a curve turning the longer way, a curve going on from a switch, a design kept for a part of its line, nor one the domain
  lays to a length 5 mm off the old one: kept as it was, with why. The free ends of two lines within 0.5 mm, running on from one
  another, join at a node (a turn of the headings over 1e-9 rad told). The record is kept whole in the project with the line it
  became: the points clicked, the old norms, the pieces and the fit have no place in the domain yet.
- //$p, a grade line along such a line (its ends and length within 5 cm, either way): its breaks with their vertical curves as the
  breaks of the line, the heights of its ends as those of the nodes; not one with a break of no vertical curve, or along no line, or
  one the line can't be laid with. Kept whole too.
- //$r switches (E5), //$k the kilometrage of the railway lines (the line's own chainage is the //$h origin), //$t the tracks fitted,
  //$w the tracks sharing a grade line, //$b the objects bound to the tracks (E6, the anchors), //$s the stations (E7): no place in
  the domain yet, kept as they were, a block a kind a file. //$c, //$o, //$z, what the editor keeps of itself, aren't taken.
- The lines read as the editor reads them: the old letters of the marks under the new ones, the lines other tools put after the same
  marks (Rainsted's includes after //$r) left out. marked_files() finds the files of the map with their includes followed and the
  placement in effect at each; open_project() reads the project of the map, or makes it of the //$ lines and writes it where there's
  none.

Tests: G: the sceneries of data/records/ made into a project: the alignment of clothoids a line within a millimetre of the old design
along all of it, the one kept for a part of its line and the grade line along nothing kept with why, each other kind kept as the file
has it and read back by editor_records as from the scenery, the camera, the orthophoto and the area left; written and read back the
same. A map of data/project/migration (its tracks included at an origin) opened the first time: two alignments joined at a node in the
world, the grade line of the second one its break and the heights of its ends, the one along the first refused for a break of no
vertical curve, the compound curve kept; the scenery files byte for byte as they were; opened again, the file read and not made again.
2026-11-23 13:11:47 +01:00
..