[//]: # (WARNING: this file is automatically generated. Please find the sources at the bottom and edit those sources)

## BAG import helper ( [bag](https://mapcomplete.org/bag) )
_This document details some technical information about this MapComplete theme, mostly about the attributes used in the theme. Various links point toward more information about the attributes, e.g. to the OpenStreetMap-wiki, to TagInfo or tools creating statistics_
The theme introduction reads:

> This theme helps with importing data from BAG

This theme contains the following layers:

 - [osm_buildings (defined in this theme)](#osm_buildings)
 - [osm_adresses (defined in this theme)](#osm_adresses)
 - [bag_pand (defined in this theme)](#bag_pand)
 - [bag_verblijfsobject (defined in this theme)](#bag_verblijfsobject)

Available languages:

 - nl
 - en
 - de
 - fr
 - nb_NO
 - ca
 - es
 - cs
 - zh_Hant
 - pl
 - zh_Hans
 - uk
 - ko
 - it

# Table of contents

  - [BAG import helper ( bag )](#bag-import-helper-(-bag-))
1. [Layers defined in this theme configuration file](#layers-defined-in-this-theme-configuration-file)
2. [osm_buildings](#osm_buildings)
  - [Basic tags for this layer](#basic-tags-for-this-layer)
  - [Supported attributes](#supported-attributes)
  - [Featureview elements and TagRenderings](#featureview-elements-and-tagrenderings)
    + [Reference](#reference)
    + [Building type](#building-type)
    + [leftover-questions](#leftover-questions)
    + [lod](#lod)
3. [osm_adresses](#osm_adresses)
  - [Basic tags for this layer](#basic-tags-for-this-layer)
  - [Supported attributes](#supported-attributes)
  - [Featureview elements and TagRenderings](#featureview-elements-and-tagrenderings)
    + [lod](#lod)
    + [leftover-questions](#leftover-questions)
4. [bag_pand](#bag_pand)
  - [Basic tags for this layer](#basic-tags-for-this-layer)
  - [Supported attributes](#supported-attributes)
  - [Featureview elements and TagRenderings](#featureview-elements-and-tagrenderings)
    + [BAG geometry:](#bag-geometry)
    + [OSM geometry:](#osm-geometry)
    + [Import button](#import-button)
    + [Reference](#reference)
    + [Build year](#build-year)
    + [Building type](#building-type)
    + [Overlapping building](#overlapping-building)
    + [BAG geometry:](#bag-geometry)
    + [OSM geometry:](#osm-geometry)
    + [Building status](#building-status)
    + [Buidling function](#buidling-function)
    + [leftover-questions](#leftover-questions)
    + [lod](#lod)
5. [bag_verblijfsobject](#bag_verblijfsobject)
  - [Basic tags for this layer](#basic-tags-for-this-layer)
  - [Supported attributes](#supported-attributes)
  - [Featureview elements and TagRenderings](#featureview-elements-and-tagrenderings)
    + [Import button](#import-button)
    + [Address](#address)
    + [leftover-questions](#leftover-questions)
    + [lod](#lod)

# Layers defined in this theme configuration file
These layers can not be reused in different themes.
# osm_buildings

Layer showing buildings that are in OpenStreetMap

 - This layer is shown at zoomlevel **18** and higher
 - Not rendered on the map by default. If you want to rendering this on the map, override `mapRenderings`

No themes use this layer

## Basic tags for this layer

Elements must match the expression **building~.+**

[Execute on overpass](http://overpass-turbo.eu/?Q=%5Bout%3Ajson%5D%5Btimeout%3A90%5D%3B%28%20%20%20%20nwr%5B%22building%22%5D%28%7B%7Bbbox%7D%7D%29%3B%0A%29%3Bout%20body%3B%3E%3Bout%20skel%20qt%3B)

## Supported attributes

**Warning:**: this quick overview is incomplete

| attribute | type | values which are supported by this layer |
-----|-----|----- |
| <a target="_blank" href='https://taginfo.openstreetmap.org/keys/ref:bag#values'><img src='https://mapcomplete.org/assets/svg/search.svg' height='18px'></a> <a target="_blank" href='https://taghistory.raifer.tech/?#***/ref%3Abag/'><img src='https://mapcomplete.org/assets/svg/statistics.svg' height='18px'></a> [ref:bag](https://wiki.openstreetmap.org/wiki/Key:ref:bag) | Multiple choice | [](https://wiki.openstreetmap.org/wiki/Tag:ref:bag%3D) |
| <a target="_blank" href='https://taginfo.openstreetmap.org/keys/building#values'><img src='https://mapcomplete.org/assets/svg/search.svg' height='18px'></a> <a target="_blank" href='https://taghistory.raifer.tech/?#***/building/'><img src='https://mapcomplete.org/assets/svg/statistics.svg' height='18px'></a> [building](https://wiki.openstreetmap.org/wiki/Key:building) | [string](../SpecialInputElements.md#string) |  |

## Featureview elements and TagRenderings

| id | question | labels | freeform key |
-----|-----|-----|----- |
| [Reference](#Reference)  | _The reference in BAG is <b>{ref:bag}</b>_<br/>1 options |  | _Multiple choice only_ |
| [Building type](#Building type)  | What kind of building is this?<br/>_This building is a <b>{building}</b>_ |  | *[building](https://wiki.osm.org/wiki/Key:building)* ([string](../SpecialInputElements.md#string)) |
| [leftover-questions](#leftover-questions)  | _{questions( ,hidden)}_ | ignore-docs, added_by_default | _Multiple choice only_ |
| [lod](#lod) <br/> _(Original in [questions](./BuiltinQuestions.md#lod))_ | _{linked_data_from_website()}_ | added_by_default | _Multiple choice only_ |

### Reference

_This tagrendering has no question and is thus read-only_

*The reference in BAG is <b>{ref:bag}</b>*

 -  *This building has no reference in the BAG* is shown if with ref:bag=

### Building type

The question is `What kind of building is this?`

*This building is a <b>{building}</b>* is shown if `building` is set.

### leftover-questions

_This tagrendering has no question and is thus read-only_

*{questions( ,hidden)}*

This tagrendering has labels 
`ignore-docs`
`added_by_default`

### lod

_This tagrendering has no question and is thus read-only_

*{linked_data_from_website()}*

This tagrendering has labels 
`added_by_default`
# osm_adresses

Layer showing adresses that are in OpenStreetMap

 - This layer is shown at zoomlevel **18** and higher

No themes use this layer

## Basic tags for this layer

Elements must match **all** of the following expressions:

0. <a href='https://wiki.openstreetmap.org/wiki/Key:source' target='_blank'>source</a>=<a href='https://wiki.openstreetmap.org/wiki/Tag:source%3DBAG' target='_blank'>BAG</a>
1. addr:city~.+
2. addr:housenumber~.+
3. addr:postcode~.+
4. addr:street~.+

[Execute on overpass](http://overpass-turbo.eu/?Q=%5Bout%3Ajson%5D%5Btimeout%3A90%5D%3B%28%20%20%20%20nwr%5B%22source%22%3D%22BAG%22%5D%5B%22addr%3Acity%22%5D%5B%22addr%3Ahousenumber%22%5D%5B%22addr%3Apostcode%22%5D%5B%22addr%3Astreet%22%5D%28%7B%7Bbbox%7D%7D%29%3B%0A%29%3Bout%20body%3B%3E%3Bout%20skel%20qt%3B)

## Supported attributes

## Featureview elements and TagRenderings

| id | question | labels | freeform key |
-----|-----|-----|----- |
| [lod](#lod) <br/> _(Original in [questions](./BuiltinQuestions.md#lod))_ | _{linked_data_from_website()}_ | added_by_default | _Multiple choice only_ |
| [leftover-questions](#leftover-questions)  | _{questions( ,hidden)}_ | ignore-docs, added_by_default | _Multiple choice only_ |

### lod

_This tagrendering has no question and is thus read-only_

*{linked_data_from_website()}*

This tagrendering has labels 
`added_by_default`

### leftover-questions

_This tagrendering has no question and is thus read-only_

*{questions( ,hidden)}*

This tagrendering has labels 
`ignore-docs`
`added_by_default`
# bag_pand

Buildings from BAG register

 - This layer is shown at zoomlevel **18** and higher
 - <img src='../warning.svg' height='1rem'/>

This layer is loaded from an external source, namely 

`https://service.pdok.nl/lv/bag/wfs/v2_0?request=GetFeature&service=WFS&version=2.0.0&outputFormat=application%2Fjson%3B%20subtype%3Dgeojson&typeName=bag%3Apand&bbox={x_min}%2C{y_min}%2C{x_max}%2C{y_max}%2CCRS84&srsName=EPSG%3A4326`

No themes use this layer

## Basic tags for this layer

Elements must match the expression **identificatie~.+**

[Execute on overpass](http://overpass-turbo.eu/?Q=%5Bout%3Ajson%5D%5Btimeout%3A90%5D%3B%28%20%20%20%20nwr%5B%22identificatie%22%5D%28%7B%7Bbbox%7D%7D%29%3B%0A%29%3Bout%20body%3B%3E%3Bout%20skel%20qt%3B)

## Supported attributes

**Warning:**: this quick overview is incomplete

| attribute | type | values which are supported by this layer |
-----|-----|----- |
| <a target="_blank" href='https://taginfo.openstreetmap.org/keys/_bag_obj:in_construction#values'><img src='https://mapcomplete.org/assets/svg/search.svg' height='18px'></a> <a target="_blank" href='https://taghistory.raifer.tech/?#***/_bag_obj%3Ain_construction/'><img src='https://mapcomplete.org/assets/svg/statistics.svg' height='18px'></a> [_bag_obj:in_construction](https://wiki.openstreetmap.org/wiki/Key:_bag_obj:in_construction) | Multiple choice | [true](https://wiki.openstreetmap.org/wiki/Tag:_bag_obj:in_construction%3Dtrue) |
| <a target="_blank" href='https://taginfo.openstreetmap.org/keys/_bag_obj:in_construction#values'><img src='https://mapcomplete.org/assets/svg/search.svg' height='18px'></a> <a target="_blank" href='https://taghistory.raifer.tech/?#***/_bag_obj%3Ain_construction/'><img src='https://mapcomplete.org/assets/svg/statistics.svg' height='18px'></a> [_bag_obj:in_construction](https://wiki.openstreetmap.org/wiki/Key:_bag_obj:in_construction) | Multiple choice | [true](https://wiki.openstreetmap.org/wiki/Tag:_bag_obj:in_construction%3Dtrue) |

## Featureview elements and TagRenderings

| id | question | labels | freeform key |
-----|-----|-----|----- |
| [Import button](#Import button)  | _{import_way_button(osm_buildings,building=$_bag_obj:building; ref:bag=$_bag_obj:ref:bag; source=BAG; source:date=$_bag_obj:source:date; start_date=$_bag_obj:start_date,{"*":"Upload this building to OpenStreetMap"},,,,,,,)}_<br/>3 options |  | _Multiple choice only_ |
| [Reference](#Reference)  | _The reference in BAG is <b>{_bag_obj:ref:bag}</b>_ |  | _Multiple choice only_ |
| [Build year](#Build year)  | _This building was built in <b>{_bag_obj:start_date}</b>_<br/>1 options |  | _Multiple choice only_ |
| [Building type](#Building type)  | _The building type is a <b>{_bag_obj:building}</b>_<br/>1 options |  | _Multiple choice only_ |
| [Overlapping building](#Overlapping building)  | _<div>The overlapping <a href=https://osm.org/{_osm_obj:id} target=_blank>osm_buildings</a> is a <b>{_osm_obj:building}</b> and covers <b>{_overlap_percentage}%</b> of the BAG building.<br>The BAG-building covers <b>{_reverse_overlap_percentage}%</b> of the OSM building<div><h3>BAG geometry:</h3>{minimap(21, id):height:10rem;border-radius:1rem;overflow:hidden}<h3>OSM geometry:</h3>{minimap(21,_osm_obj:id):height:10rem;border-radius:1rem;overflow:hidden}</div></div>_ |  | _Multiple choice only_ |
| [Building status](#Building status)  | _The current building status is <b>{status}</b>_ |  | _Multiple choice only_ |
| [Buidling function](#Buidling function)  | _The current function of the building is <b>{gebruiksdoel}</b>_ |  | _Multiple choice only_ |
| [leftover-questions](#leftover-questions)  | _{questions( ,hidden)}_ | ignore-docs, added_by_default | _Multiple choice only_ |
| [lod](#lod) <br/> _(Original in [questions](./BuiltinQuestions.md#lod))_ | _{linked_data_from_website()}_ | added_by_default | _Multiple choice only_ |

### Import button

_This tagrendering has no question and is thus read-only_

*{import_way_button(osm_buildings,building=$_bag_obj:building; ref:bag=$_bag_obj:ref:bag; source=BAG; source:date=$_bag_obj:source:date; start_date=$_bag_obj:start_date,{"*":"Upload this building to OpenStreetMap"},,,,,,,)}*

 -  *Didn't calculate the correct values yet. Refresh this page* is shown if with _bag_obj:building= | _bag_obj:ref:bag=
 -  *{conflate_button(osm_buildings, building=$_bag_obj:building; ref:bag=$_bag_obj:ref:bag; source=BAG; source:date=$_bag_obj:source:date; start_date=$_bag_obj:start_date, Replace the geometry in OpenStreetMap, , _osm_obj:id)}* is shown if with _overlaps_with~.+
 -  *{import_way_button(osm_buildings, building=$_bag_obj:building; construction=$_bag_obj:construction; ref:bag=$_bag_obj:ref:bag; source=BAG; source:date=$_bag_obj:source:date; start_date=$_bag_obj:start_date, Upload this building to OpenStreetMap)}* is shown if with _bag_obj:building~.+ & _bag_obj:ref:bag~.+ & <a href='https://wiki.openstreetmap.org/wiki/Key:_bag_obj:in_construction' target='_blank'>_bag_obj:in_construction</a>=<a href='https://wiki.openstreetmap.org/wiki/Tag:_bag_obj:in_construction%3Dtrue' target='_blank'>true</a>

### Reference

_This tagrendering has no question and is thus read-only_

*The reference in BAG is <b>{_bag_obj:ref:bag}</b>*

### Build year

_This tagrendering has no question and is thus read-only_

*This building was built in <b>{_bag_obj:start_date}</b>*

 -  *The building was started in <b>{_bag_obj:start_date}</b>* is shown if with <a href='https://wiki.openstreetmap.org/wiki/Key:_bag_obj:in_construction' target='_blank'>_bag_obj:in_construction</a>=<a href='https://wiki.openstreetmap.org/wiki/Tag:_bag_obj:in_construction%3Dtrue' target='_blank'>true</a>

### Building type

_This tagrendering has no question and is thus read-only_

*The building type is a <b>{_bag_obj:building}</b>*

 -  *The building type will be a <b>{_bag_obj:construction}</b>* is shown if with <a href='https://wiki.openstreetmap.org/wiki/Key:_bag_obj:in_construction' target='_blank'>_bag_obj:in_construction</a>=<a href='https://wiki.openstreetmap.org/wiki/Tag:_bag_obj:in_construction%3Dtrue' target='_blank'>true</a>

### Overlapping building

_This tagrendering has no question and is thus read-only_

*<div>The overlapping <a href=https://osm.org/{_osm_obj:id} target=_blank>osm_buildings</a> is a <b>{_osm_obj:building}</b> and covers <b>{_overlap_percentage}%</b> of the BAG building.<br>The BAG-building covers <b>{_reverse_overlap_percentage}%</b> of the OSM building<div><h3>BAG geometry:</h3>{minimap(21, id):height:10rem;border-radius:1rem;overflow:hidden}<h3>OSM geometry:</h3>{minimap(21,_osm_obj:id):height:10rem;border-radius:1rem;overflow:hidden}</div></div>*

This tagrendering is only visible in the popup if the following condition is met: _overlaps_with~.+

### Building status

_This tagrendering has no question and is thus read-only_

*The current building status is <b>{status}</b>*

### Buidling function

_This tagrendering has no question and is thus read-only_

*The current function of the building is <b>{gebruiksdoel}</b>*

### leftover-questions

_This tagrendering has no question and is thus read-only_

*{questions( ,hidden)}*

This tagrendering has labels 
`ignore-docs`
`added_by_default`

### lod

_This tagrendering has no question and is thus read-only_

*{linked_data_from_website()}*

This tagrendering has labels 
`added_by_default`
# bag_verblijfsobject

Address information from the BAG register

 - This layer is shown at zoomlevel **18** and higher
 - <img src='../warning.svg' height='1rem'/>

This layer is loaded from an external source, namely 

`https://service.pdok.nl/lv/bag/wfs/v2_0?request=GetFeature&service=WFS&version=2.0.0&outputFormat=application%2Fjson%3B%20subtype%3Dgeojson&typeName=bag%3Averblijfsobject&bbox={x_min}%2C{y_min}%2C{x_max}%2C{y_max}%2CCRS84&srsName=EPSG%3A4326`

No themes use this layer

## Basic tags for this layer

Elements must match the expression **identificatie~.+**

[Execute on overpass](http://overpass-turbo.eu/?Q=%5Bout%3Ajson%5D%5Btimeout%3A90%5D%3B%28%20%20%20%20nwr%5B%22identificatie%22%5D%28%7B%7Bbbox%7D%7D%29%3B%0A%29%3Bout%20body%3B%3E%3Bout%20skel%20qt%3B)

## Supported attributes

## Featureview elements and TagRenderings

| id | question | labels | freeform key |
-----|-----|-----|----- |
| [Import button](#Import button)  | _{import_button(osm_adresses, addr:city=$woonplaats; addr:housenumber=$_bag_obj:addr:housenumber; addr:postcode=$postcode; addr:street=$openbare_ruimte; ref:bag=$_bag_obj:ref:bag; source=BAG; source:date=$_bag_obj:source:date, Upload this adress to OpenStreetMap)}_ |  | _Multiple choice only_ |
| [Address](#Address)  | _{openbare_ruimte} {_bag_obj:addr:housenumber}, {woonplaats} {postcode}_ |  | _Multiple choice only_ |
| [leftover-questions](#leftover-questions)  | _{questions( ,hidden)}_ | ignore-docs, added_by_default | _Multiple choice only_ |
| [lod](#lod) <br/> _(Original in [questions](./BuiltinQuestions.md#lod))_ | _{linked_data_from_website()}_ | added_by_default | _Multiple choice only_ |

### Import button

_This tagrendering has no question and is thus read-only_

*{import_button(osm_adresses, addr:city=$woonplaats; addr:housenumber=$_bag_obj:addr:housenumber; addr:postcode=$postcode; addr:street=$openbare_ruimte; ref:bag=$_bag_obj:ref:bag; source=BAG; source:date=$_bag_obj:source:date, Upload this adress to OpenStreetMap)}*

This tagrendering is only visible in the popup if the following condition is met: <a href='https://wiki.openstreetmap.org/wiki/Key:_imported_osm_object_found' target='_blank'>_imported_osm_object_found</a>=<a href='https://wiki.openstreetmap.org/wiki/Tag:_imported_osm_object_found%3Dfalse' target='_blank'>false</a>

### Address

_This tagrendering has no question and is thus read-only_

*{openbare_ruimte} {_bag_obj:addr:housenumber}, {woonplaats} {postcode}*

### leftover-questions

_This tagrendering has no question and is thus read-only_

*{questions( ,hidden)}*

This tagrendering has labels 
`ignore-docs`
`added_by_default`

### lod

_This tagrendering has no question and is thus read-only_

*{linked_data_from_website()}*

This tagrendering has labels 
`added_by_default`


This document is autogenerated from [assets/themes/bag/bag.json](https://source.mapcomplete.org/MapComplete/MapComplete/src/branch/develop/assets/themes/bag/bag.json)
