[221] [225] LV95-Projekte lokal um den Projekt-Nullpunkt, Standard-Schnitt/-Ansicht folgen dem Gebäude; Kennzahlenleiste = Flächentabelle
[221] DXF/DWG-Import in Landeskoordinaten setzt ohne Standort-Bezug den Kilometerpunkt unter der Mitte als geoAnchor und importiert lokal (mit Bezug: auf dessen Ursprung). Getippte LV95-Koordinaten werden auf den Nullpunkt gerechnet, die Statusleiste zeigt LV95 des Zeigers. Schnitt A/Ansicht Süd des leeren Projekts (autoLine) führt der Kern im selben Undo-Schritt ans Gebaute bzw. die Parzelle nach, bis man sie bearbeitet (auto_lines.rs). Schnittmarken weit weg vom Gebauten zählen nicht mehr zum Ausmass. [225] kennzahlen::compute liest Flächentabelle und IVHB-Ziffern (GF = NGF + KF, ÜZ = aGbF/aGSF). e2e release10: Schritte [221]/[225] aktiv; kataster.spec auf lokale Koordinaten.
This commit is contained in:
30 files changed
+797
-139
No files matched your search
@@ -0,0 +1,19 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { fromWorldInput, isLv95, parseInput } from "./parseInput";
|
||||
|
||||
describe("[221] getippte Landeskoordinaten", () => {
|
||||
const origin = { e: 2_600_000, n: 1_200_000 };
|
||||
it("absolute LV95-Eingabe wird bei Standort-Bezug auf den Projekt-Nullpunkt gerechnet", () => {
|
||||
expect(fromWorldInput(parseInput("2600048,1200046"), origin)).toEqual({ kind: "absolute", point: { x: 48, y: 46 } });
|
||||
});
|
||||
it("lokale, relative Eingaben und Projekte ohne Bezug bleiben", () => {
|
||||
expect(fromWorldInput(parseInput("48,46"), origin)).toEqual({ kind: "absolute", point: { x: 48, y: 46 } });
|
||||
expect(fromWorldInput(parseInput("r2600048,1200046"), origin).kind).toBe("relative");
|
||||
expect(fromWorldInput(parseInput("2600048,1200046"), null)).toEqual({ kind: "absolute", point: { x: 2600048, y: 1200046 } });
|
||||
});
|
||||
it("LV95-Bereich", () => {
|
||||
expect(isLv95(2_600_000, 1_200_000)).toBe(true);
|
||||
expect(isLv95(600_000, 200_000)).toBe(false);
|
||||
expect(isLv95(48, 46)).toBe(false);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user