# project.json

> Die Projektwurzel: Lagebezug, Gebäude und Planstände.

Quelle: https://bauzertifikate.de/docs/bzf/schemas/project · BZF 0.3.0 (https://github.com/bauzertifikate/bzf/tree/fe92cf4342f2e9140f14f66262c2f5a30a99be45) · Weitere Seiten: https://bauzertifikate.de/llms.txt

- **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](https://bauzertifikate.de/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`](#root). Eine andere Hauptversion muss nur sagen, welche sie ist.

| Feld | Typ | Beschreibung |
|---|---|---|
| `schema` **Pflicht** | [`schemaVersion`](https://bauzertifikate.de/docs/bzf/schemas/common.md#schemaversion) | A document's schema version, major.minor. |
| `id` **Pflicht** | [`id`](https://bauzertifikate.de/docs/bzf/schemas/common.md#id) | The project's id, as its project file says. |
| `frame` **Pflicht** | [`frame`](#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`](https://bauzertifikate.de/docs/bzf/schemas/common.md#id) | Its buildings' documents, `buildings/<id>.json`. |
| `planStates` | Liste von [`id`](https://bauzertifikate.de/docs/bzf/schemas/common.md#id) | Its plan states, oldest first, `plans/<id>.json`. |
| `classes` | Zuordnung `string` → [`documentClass`](https://bauzertifikate.de/docs/bzf/schemas/common.md#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`](https://bauzertifikate.de/docs/bzf/schemas/common.md#schemaversion) | A document's schema version, major.minor. |
| `id` **Pflicht** | [`id`](https://bauzertifikate.de/docs/bzf/schemas/common.md#id) | The project's id, as its project file says. |
| `frame` **Pflicht** | [`frame`](#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`](https://bauzertifikate.de/docs/bzf/schemas/common.md#id) | Its buildings' documents, `buildings/<id>.json`. |
| `planStates` | Liste von [`id`](https://bauzertifikate.de/docs/bzf/schemas/common.md#id) | Its plan states, oldest first, `plans/<id>.json`. |
| `classes` | Zuordnung `string` → [`documentClass`](https://bauzertifikate.de/docs/bzf/schemas/common.md#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`](https://bauzertifikate.de/docs/bzf/schemas/common.md#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](https://bauzertifikate.de/docs/bzf/schnellstart.md#pruefen).
