# plan-import.json

> Das Ergebnis eines Planimports und die Körper, aus denen Bauteile kamen.

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

- **Status:** Entwurf
- **Klasse:** building – Gebäudedaten, Weitergabe nur mit Einwilligung des Eigentümers
- **Ablage:** `Daten/imports/<id>.json`
- **$id:** `https://bauzertifikate.de/schema/bzf/1/plan-import.json`
- **Schema laden:** [/schema/bzf/1/plan-import.json](https://bauzertifikate.de/schema/bzf/1/plan-import.json) (JSON Schema 2020-12)

## Beschreibung

An import's result, `imports/<id>.json`, kept unchanged with its plan state: the buildings as the plans gave them, with the reader, the kernel and the settings that made them, and the ids carried over from the previous import. It is the base for merging the next plan state with the edits made since. 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 [`planImport`](#planimport). 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. |
| `planState` **Pflicht** | [`id`](https://bauzertifikate.de/docs/bzf/schemas/common.md#id) | The plan state it read. |
| `reader` **Pflicht** | `string` | The reader and its version: "aufmass 0.5.0". |
| `kernel` **Pflicht** | `string` | The kernel version. |
| `settings` | beliebig | The settings it read with (the joint, the office's layer names), as the reader keeps them: opaque to other readers. |
| `buildings` **Pflicht** | Liste von [`building.json`](https://bauzertifikate.de/docs/bzf/schemas/building.md) | The buildings as the plans gave them, each a building document. |
| `cadastre` | Liste von [`footprint`](#footprint) | The cadastre's buildings a site plan of it shows, around the buildings and under them: they place the plans in a LoD2 scene, whose footprints come from the cadastre too. |
| `lineage` | Liste von [`lineage`](#lineage) | The previous import's items that this one's carry on, and those that replace several or are replaced. |
| `solids` | Zuordnung `string` → [`solid`](#solid) | The solids its buildings' elements came as, by the key an element's `solid` names (Aufmaß: the element's id). A volume is measured from its solid while the element's plate is unchanged: a wall layer cut by the roof across its thickness holds less than its plate times its thickness. |

## Typen

Die Typen dieses Schemas, auf die seine Felder verweisen.

### `planImport`

| Feld | Typ | Beschreibung |
|---|---|---|
| `schema` **Pflicht** | [`schemaVersion`](https://bauzertifikate.de/docs/bzf/schemas/common.md#schemaversion) | A document's schema version, major.minor. |
| `planState` **Pflicht** | [`id`](https://bauzertifikate.de/docs/bzf/schemas/common.md#id) | The plan state it read. |
| `reader` **Pflicht** | `string` | The reader and its version: "aufmass 0.5.0". |
| `kernel` **Pflicht** | `string` | The kernel version. |
| `settings` | beliebig | The settings it read with (the joint, the office's layer names), as the reader keeps them: opaque to other readers. |
| `buildings` **Pflicht** | Liste von [`building.json`](https://bauzertifikate.de/docs/bzf/schemas/building.md) | The buildings as the plans gave them, each a building document. |
| `cadastre` | Liste von [`footprint`](#footprint) | The cadastre's buildings a site plan of it shows, around the buildings and under them: they place the plans in a LoD2 scene, whose footprints come from the cadastre too. |
| `lineage` | Liste von [`lineage`](#lineage) | The previous import's items that this one's carry on, and those that replace several or are replaced. |
| `solids` | Zuordnung `string` → [`solid`](#solid) | The solids its buildings' elements came as, by the key an element's `solid` names (Aufmaß: the element's id). A volume is measured from its solid while the element's plate is unchanged: a wall layer cut by the roof across its thickness holds less than its plate times its thickness. |

### `footprint`

A building of the cadastre as a site plan shows it.

| Feld | Typ | Beschreibung |
|---|---|---|
| `outline` **Pflicht** | [`ring`](https://bauzertifikate.de/docs/bzf/schemas/common.md#ring) | Its outline, mm in the frame, counter-clockwise. |
| `source` | [`source`](https://bauzertifikate.de/docs/bzf/schemas/common.md#source) | The plan, layer and entity it is. |

### `solid`

A solid as its faces, as the reader gave them: in metres in the frame, not rounded to the millimetre (a 6 cm roof plate of 80 m² would gain or lose 40 litres).

| Feld | Typ | Beschreibung |
|---|---|---|
| `faces` **Pflicht** | Liste von Liste von Liste von Liste von `number` | Each face's loops of corners, the outer one first, each turning counter-clockwise seen from outside (a hole's the other way): x, y and height, m. |

### `lineage`

Items of the previous import and what they became: the same item (one id each way), or a split or a merge.

| Feld | Typ | Beschreibung |
|---|---|---|
| `from` **Pflicht** | Liste von [`id`](https://bauzertifikate.de/docs/bzf/schemas/common.md#id) | The previous import's items. |
| `to` **Pflicht** | Liste von [`id`](https://bauzertifikate.de/docs/bzf/schemas/common.md#id) | What they became. |

## 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).
