21 KiB
GRB import helper ( grb )
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 is an attempt to help automating the GRB import.
This theme contains the following layers:
- osm_buildings_no_points (defined in this theme)
- grb (defined in this theme)
- service_ways (defined in this theme)
- generic_osm_object (defined in this theme)
- address
- crab_address
- current_view
- named_streets
Available languages:
- nl
Table of contents
Layers defined in this theme configuration file
These layers can not be reused in different themes.
osm_buildings_no_points
- This layer is shown at zoomlevel 17 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 all of the following expressions:
- id~^(way/.*)
| id~^(relation\/.*)
- building~.+
Supported attributes
Warning:,this quick overview is incomplete,
attribute | type | values which are supported by this layer |
---|---|---|
building | string | house detached semidetached_house apartments office shed garage garages yes |
addr:housenumber | string | |
addr:unit | string | |
addr:street | string | |
fixme | string | |
building:min_level | pnat |
building type
The question is What kind of building is this?
The building type is {building} is shown if building
is set
- A normal house is shown if with building=house
- A house detached from other building is shown if with building=detached
- A house sharing only one wall with another house is shown if with building=semidetached_house
- An apartment building (highrise building for living) is shown if with building=apartments
- An office building - highrise for work is shown if with building=office
- A small shed, e.g. in a garden is shown if with building=shed
- A single garage to park a car is shown if with building=garage
- A building containing only garages; typically they are all identical is shown if with building=garages
- A building - no specification is shown if with building=yes
grb-housenumber
The question is Wat is het huisnummer?
Het huisnummer is {addr:housenumber} is shown if addr:housenumber
is set
- Geen huisnummer is shown if with not:addr:housenumber=yes & addr:housenumber=
grb-unit
The question is Wat is de wooneenheid-aanduiding?
*De wooneenheid-aanduiding is {addr:unit} * is shown if addr:unit
is set
- Geen wooneenheid-nummer is shown if with addr:unit=
grb-street
The question is Wat is de straat?
De straat is {addr:street} is shown if addr:street
is set
grb-reference
This tagrendering has no question and is thus read-only Has been imported from GRB, reference number is {source:geometry:ref}
This tagrendering is only visible in the popup if the following condition is met: source:geometry:ref~.+
grb-fixme
The question is Wat zegt de fixme?
De fixme is {fixme} is shown if fixme
is set
- Geen fixme is shown if with fixme=
grb-min-level
The question is Hoeveel verdiepingen ontbreken?
Dit gebouw begint maar op de {building:min_level} verdieping is shown if building:min_level
is set
all_tags
Shows a table with all the tags of the feature This tagrendering has no question and is thus read-only {all_tags()}
leftover-questions
This tagrendering has no question and is thus read-only {questions( ,)}
lod
This tagrendering has no question and is thus read-only {linked_data_from_website()}
This tagrendering has labels
added_by_default
Filters
id | question | osmTags |
---|---|---|
has-fixme.0 | Heeft een FIXME | fixme~.+ |
id | question | osmTags | fields |
---|---|---|---|
last-edited-by.0 | Last change made by {username} | username (regex) |
grb
Geometry which comes from GRB with tools to import them
- This layer is shown at zoomlevel 17 and higher
This layer is loaded from an external source, namely
https://betadata.byteless.net/grb?bbox={x_min},{y_min},{x_max},{y_max}
No themes use this layer
Basic tags for this layer
Elements must match all of the following expressions:
- man_made!=mast
- osm_id~.+
Supported attributes
Import-button
This tagrendering has no question and is thus read-only {import_way_button(osm_buildings_no_points,building=$building;man_made=$man_made; source:geometry:date=$_grb_date; source:geometry:ref=$_grb_ref; addr:street=$addr:street; addr:housenumber=$addr:housenumber; building:min_level=$_building:min_level, Upload this building to OpenStreetMap,,_is_part_of_building=true,1,_moveable=true)}
- Did not yet calculate the metatags... Reopen this popup is shown if with _grb_ref=
- This building has holes and is modeled as a relation. As such, it cannot be conflated. Conflate it manually via the building export site {open_in_josm()} is shown if with id~^(relation/*)$ & _overlap_percentage>50 & _reverse_overlap_percentage>50 & _overlaps_with~.+
- {conflate_button(osm_buildings_no_points,building=$_target_building_type; source:geometry:date=$_grb_date; source:geometry:ref=$_grb_ref; addr:street=$addr:street; addr:housenumber=$addr:housenumber, Replace the geometry in OpenStreetMap and add the address,,_osm_obj:id)} is shown if with _overlap_percentage>50 & _reverse_overlap_percentage>50 & _osm_obj:addr:street= & _osm_obj:addr:housenumber= & addr:street~.+ & addr:housenumber~.+ & addr:street!= & addr:housenumber!=
- {conflate_button(osm_buildings_no_points,building=$_target_building_type; source:geometry:date=$_grb_date; source:geometry:ref=$_grb_ref, Replace the geometry in OpenStreetMap,,_osm_obj:id)} is shown if with _overlap_percentage>50 & _reverse_overlap_percentage>50
Building info
This tagrendering has no question and is thus read-only This is a {building} detected by {detection_method}
overlapping building address
This tagrendering has no question and is thus read-only The overlapping openstreetmap-building has no address information at all
- The overlapping openstreetmap-building has address {_osm_obj:addr:street} {_osm_obj:addr:housenumber} is shown if with _osm_obj:addr:street~.+ & _osm_obj:addr:housenumber~.+
- The overlapping building only has a street known: {_osm_obj:addr:street} is shown if with _osm_obj:addr:street~.+
- The overlapping building only has a housenumber known: {_osm_obj:addr:housenumber} is shown if with _osm_obj:addr:housenumber~.+
- No overlapping OpenStreetMap-building found is shown if with _osm_obj:id=
grb_address_diff
This tagrendering has no question and is thus read-only
{tag_apply(addr:street=$addr:street; addr:housenumber=$addr:housenumber,Copy the GRB-address onto the OSM-object,,_osm_obj:id)}
This tagrendering is only visible in the popup if the following condition is met: (addr:street!= | addr:housenumber!=) & _osm_obj:id~.+ & addr:street~.+ & addr:housenumber~.+
overlapping building id
This tagrendering has no question and is thus read-only The overlapping openstreetmap-building has id {_osm_obj:id}
This tagrendering is only visible in the popup if the following condition is met: _osm_obj:id~.+
overlapping building type
This tagrendering has no question and is thus read-only
The overlapping building is a {_osm_obj:building} and covers {_overlap_percentage}% of the GRB building.
The GRB-building covers {_reverse_overlap_percentage}% of the OSM building
The OSM-building is based on GRB-data from {_osm_obj:source:date}.
This tagrendering is only visible in the popup if the following condition is met: _osm_obj:id~.+
overlapping building map
This tagrendering has no question and is thus read-only
GRB geometry:
{minimap(21, id):height:10rem;border-radius:1rem;overflow:hidden}OSM geometry:
{minimap(21,_osm_obj:id):height:10rem;border-radius:1rem;overflow:hidden}This tagrendering is only visible in the popup if the following condition is met: _osm_obj:id~.+
apply-id
This tagrendering has no question and is thus read-only {tag_apply(source:geometry:date=$_grb_date; source:geometry:ref=$_grb_ref,Mark the OSM-building as imported,,_osm_obj:id)}
This tagrendering is only visible in the popup if the following condition is met: _imported!=yes & _overlaps_with~.+
apply-building-type
This tagrendering has no question and is thus read-only {tag_apply(building=$building,Use the building type from GRB,,_osm_obj:id)}
This tagrendering is only visible in the popup if the following condition is met: _osm_obj:building=yes & _overlaps_with~.+ & building!=yes
leftover-questions
This tagrendering has no question and is thus read-only {questions( ,)}
lod
This tagrendering has no question and is thus read-only {linked_data_from_website()}
This tagrendering has labels
added_by_default
service_ways
A seperate layer with service roads, as to remove them from the intersection testing
- This layer is shown at zoomlevel 17 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 highway=service
Supported attributes
leftover-questions
This tagrendering has no question and is thus read-only {questions( ,)}
lod
This tagrendering has no question and is thus read-only {linked_data_from_website()}
This tagrendering has labels
added_by_default
generic_osm_object
- This layer is shown at zoomlevel 17 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 all of the following expressions:
- boundary=
- disused:power=
- place=
- power=
- level= | level=0
- layer=0 | layer=
- id~.+
- type!=route
- type!=boundary
- type!=waterway
Supported attributes
all_tags
Shows a table with all the tags of the feature This tagrendering has no question and is thus read-only {all_tags()}
leftover-questions
This tagrendering has no question and is thus read-only {questions( ,)}
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/grb/grb.json