Dokumentation / Schema-Referenz
project.json
Die Projektwurzel: Lagebezug, Gebäude und Planstände.
- Status: Stabil
- Klasse: building – Gebäudedaten, Weitergabe nur mit Einwilligung des Eigentümers
- Ablage:
Daten/project.json - $id:
https://bauzertifikate.de/schema/bzf/1/project.json - Schema laden: /schema/bzf/1/project.json (JSON Schema 2020-12)
#Beschreibung
The project's root document, project.json: the frame every plan coordinate is in, and the buildings and plan states it holds. 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 root. 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 |
The project's id, as its project file says. |
frame Pflicht |
frame |
– |
language |
string |
The language of the project's free text (labels, names, notes, descriptions, reasons), as a BCP 47 tag: "de", "de-AT". Keys and listed values are English in every language; only what people write is in this one. (Muster ^[a-z]{2,3}(-[A-Za-z0-9]{1,8})*$) Standard: "de" |
buildings |
Liste von id |
Its buildings' documents, buildings/<id>.json. |
planStates |
Liste von id |
Its plan states, oldest first, plans/<id>.json. |
classes |
Zuordnung string → documentClass |
The class of the apps' own documents by path prefix ("energieberatung/": "building"), so that a share leaves out what may not leave the organisation. The documents this spec defines have their class in their schema; an app's document without one here counts as party data and stays. |
needs |
string |
The lowest app version that reads everything in the project, once something needs a newer one than the schema version says. |
#Typen
Die Typen dieses Schemas, auf die seine Felder verweisen.
#root
| Feld | Typ | Beschreibung |
|---|---|---|
schema Pflicht |
schemaVersion |
A document's schema version, major.minor. |
id Pflicht |
id |
The project's id, as its project file says. |
frame Pflicht |
frame |
The project's frame, fixed when the project is created. |
language |
string |
The language of the project's free text (labels, names, notes, descriptions, reasons), as a BCP 47 tag: "de", "de-AT". Keys and listed values are English in every language; only what people write is in this one. (Muster ^[a-z]{2,3}(-[A-Za-z0-9]{1,8})*$) Standard: "de" |
buildings |
Liste von id |
Its buildings' documents, buildings/<id>.json. |
planStates |
Liste von id |
Its plan states, oldest first, plans/<id>.json. |
classes |
Zuordnung string → documentClass |
The class of the apps' own documents by path prefix ("energieberatung/": "building"), so that a share leaves out what may not leave the organisation. The documents this spec defines have their class in their schema; an app's document without one here counts as party data and stays. |
needs |
string |
The lowest app version that reads everything in the project, once something needs a newer one than the schema version says. |
#frame
The project's frame, fixed when the project is created: plan coordinates are integer millimetres in it and heights are relative to its ±0,00. Each source has its own transform into it. With origin and crs it is a local engineering frame with a map conversion, as IFC's IfcMapConversion.
| Feld | Typ | Beschreibung |
|---|---|---|
north |
number |
The compass bearing of the frame's +y axis, degrees clockwise from north: 0 when +y points north, 90 when east. Standard: 0 |
northConfirmed |
boolean |
Whether north was confirmed or aligned with LoD2; until then it is what the plans' north arrow gives where northSource names one, else the assumption that up in the plan is north. Standard: false |
northSource |
source |
The north arrow north was read from: its plan state, file, layer and entity. Absent while north is assumed or LoD2's. |
origin |
Tupel (number, number) |
Where the frame's origin lies, metres (easting, northing) in crs, where known. (mindestens 2 Einträge) |
crs |
string |
The coordinate reference system of origin: "EPSG:25832" (ETRS89 / UTM 32N). |
datum |
number |
The height of ±0,00 above sea level (NHN), metres, where known. |
#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.