bauzertifikate.de

Dokumentation / Schema-Referenz

plan-state.json

Ein Planstand: seine Dateien und ihre Transformationen.

BZF 0.3.0Entwurf/schema/bzf/1/plan-state.jsonStand: .md
  • Status: Entwurf
  • Klasse: building – Gebäudedaten, Weitergabe nur mit Einwilligung des Eigentümers
  • Ablage: Daten/plans/<id>.json
  • $id: https://bauzertifikate.de/schema/bzf/1/plan-state.json
  • Schema laden: /schema/bzf/1/plan-state.json (JSON Schema 2020-12)

#Beschreibung

A plan state, plans/<id>.json: the files that came together, by their hash, each with its storey and its transform into the frame. A partial update shares the files that didn't change; the folder Zeichnungen/ holds them under their own names, and this document, not the folder, says what belongs to which state. This schema describes documents of schema version 1.x; a document of another major version is only required to say which.

#Das Dokument

Ein Dokument der Hauptversion 1 ("schema": "1.x") hat die folgenden Felder, die des Typs planState. Eine andere Hauptversion muss nur sagen, welche sie ist.

Feld Typ Beschreibung
schema Pflicht schemaVersion A document's schema version, major.minor.
id Pflicht id An item's identity for life.
label string "Planstand 2", "Index b".
from string From whom it came.
received time When it came.
note string A note.
previous id The plan state it replaces.
files Pflicht Liste von file Its files.

#Typen

Die Typen dieses Schemas, auf die seine Felder verweisen.

#planState

Feld Typ Beschreibung
schema Pflicht schemaVersion A document's schema version, major.minor.
id Pflicht id An item's identity for life.
label string "Planstand 2", "Index b".
from string From whom it came.
received time When it came.
note string A note.
previous id The plan state it replaces.
files Pflicht Liste von file Its files.

#file

A file of a plan state.

Feld Typ Beschreibung
hash Pflicht hash Its content's hash, as the store keeps it.
name Pflicht string Its name as received: "eg.dwg".
storey string The storey it shows, where it shows one ("EG"); a section, an elevation or a site plan shows none.
transform transform From a file's coordinates into the frame.

#transform

From a file's coordinates into the frame: scaled to millimetres, turned about its origin, moved. Absent where the file is in the frame's own coordinates.

Feld Typ Beschreibung
scale Pflicht number Millimetres per unit of the source: 1000 for a drawing in metres. (> 0)
rotation number Degrees counter-clockwise. Standard: 0
offset Tupel (number, number) Then moved by, mm. (mindestens 2 Einträge) Standard: [0,0]
height number Its heights moved by, mm. Standard: 0
proposed boolean Found automatically and not yet confirmed. Standard: false

#Lesen und prüfen

Die Beschreibungen stammen unverändert aus dem Schema und sind wie die Spezifikation englisch. Jedes Objekt lässt weitere Felder zu (additionalProperties: true): Programme bewahren Felder und Werte, die sie nicht kennen. Wie ein Dokument geprüft wird, steht im Schnellstart.

Grundlage: BZF 0.3.0 von Bauzertifikate contributors. Spezifikation und Dokumentation: CC BY 4.0, Schemas und Beispiele: CC0 1.0. Maßgeblich ist der englische Text der Spezifikation.