2021-03-21 15:12:53 +01:00
{
"id" : "grb" ,
"title" : {
"nl" : "GRB Fixup"
} ,
"shortDescription" : {
"nl" : "Grb Fixup"
} ,
"description" : {
2021-10-29 18:16:51 +02:00
"nl" : "GRB Fixup" ,
"en" : "This theme is an attempt to help automating the GRB import.<br/>Note that this is very hacky and 'steals' the GRB data from an external site; in order to do this, you need to install and activate <a href='https://addons.mozilla.org/en-US/firefox/addon/cors-everywhere/'>this firefox extension</a> for it to work."
2021-03-21 15:12:53 +01:00
} ,
"language" : [
2021-10-30 01:55:32 +02:00
"nl" ,
"en"
2021-03-21 15:12:53 +01:00
] ,
"maintainer" : "" ,
"icon" : "./assets/svg/bug.svg" ,
"version" : "0" ,
"startLat" : 51.2132 ,
"startLon" : 3.231 ,
"startZoom" : 14 ,
2021-09-26 17:36:39 +02:00
"widenFactor" : 2 ,
2021-03-21 15:12:53 +01:00
"socialImage" : "" ,
2021-10-28 03:15:36 +02:00
"clustering" : {
"maxZoom" : 15
} ,
2021-10-29 18:16:51 +02:00
"overrideAll" : {
"minzoom" : 18
} ,
2021-10-31 02:08:39 +01:00
"trackAllNodes" : true ,
2021-03-21 15:12:53 +01:00
"layers" : [
2021-10-31 02:08:39 +01:00
{
"builtin" : "type_node" ,
"isShown" : {
"render" : "no"
} ,
"override" : {
"calculatedTags" : [
"_is_part_of_building=feat.get('parent_ways')?.some(p => p.building !== undefined && p.building !== '') ?? false" ,
"_is_part_of_landuse=feat.get('parent_ways')?.some(p => (p.landuse !== undefined && p.landuse !== '') || (p.natural !== undefined && p.natural !== '')) ?? false"
]
}
} ,
2021-10-27 20:19:45 +02:00
{
"id" : "OSM-buildings" ,
"name" : "All OSM-buildings" ,
"source" : {
"osmTags" : "building~*" ,
"maxCacheAge" : 0
} ,
2021-10-28 01:26:35 +02:00
"mapRendering" : [
{
"width" : {
"render" : "2"
2021-10-27 20:19:45 +02:00
} ,
2021-10-28 01:26:35 +02:00
"color" : {
"render" : "#00c" ,
"mappings" : [
{
"if" : "building=house" ,
"then" : "#a00"
} ,
{
"if" : "building=shed" ,
"then" : "#563e02"
} ,
{
"if" : {
"or" : [
"building=garage" ,
"building=garages"
]
} ,
"then" : "#f9bfbb"
} ,
{
"if" : "building=yes" ,
"then" : "#0774f2"
}
]
2021-10-27 20:19:45 +02:00
}
2021-10-28 01:26:35 +02:00
}
] ,
2021-10-27 20:19:45 +02:00
"title" : "OSM-gebouw" ,
"tagRenderings" : [
2021-10-29 18:16:51 +02:00
{
"id" : "building type" ,
"freeform" : {
"key" : "building"
} ,
"render" : "The building type is <b>{building}</b>" ,
"mappings" : [
{
"if" : "building=house" ,
"then" : "A normal house"
} ,
{
"if" : "building=detached" ,
"then" : "A house detached from other building"
} ,
{
"if" : "building=semidetached_house" ,
"then" : "A house sharing only one wall with another house"
} ,
{
"if" : "building=apartments" ,
"then" : "An apartment building - highrise for living"
} ,
{
"if" : "building=office" ,
"then" : "An office building - highrise for work"
} ,
{
"if" : "building=apartments" ,
"then" : "An apartment building"
} ,
{
"if" : "building=shed" ,
"then" : "A small shed, e.g. in a garden"
} ,
{
"if" : "building=garage" ,
"then" : "A single garage to park a car"
} ,
{
"if" : "building=garages" ,
"then" : "A building containing only garages; typically they are all identical"
} ,
{
"if" : "building=yes" ,
"then" : "A building - no specification"
}
]
} ,
2021-10-27 20:19:45 +02:00
"all_tags"
]
} ,
{
"id" : "All OSM objects" ,
"name" : "All OSM Objects" ,
"source" : {
2021-10-28 00:13:18 +02:00
"osmTags" : {
2021-10-27 20:19:45 +02:00
"and" : [
"id~*" ,
"landuse=" ,
"place=" ,
"disused:power=" ,
"power=" ,
"type!=boundary" ,
"boundary=" ,
{
"or" : [
"level=" ,
"level=0"
]
} ,
{
"or" : [
"layer=0" ,
"layer="
]
}
]
} ,
"maxCacheAge" : 0
} ,
2021-10-28 01:26:35 +02:00
"mapRendering" : [
{
"color" : {
"render" : "#00c"
} ,
"width" : {
"render" : "1"
}
}
] ,
2021-10-27 20:19:45 +02:00
"title" : {
"render" : {
"*" : "OSM-Object"
}
} ,
"tagRenderings" : [
"all_tags"
]
} ,
2021-03-21 15:12:53 +01:00
{
2021-10-27 03:52:19 +02:00
"id" : "osm-fixmes" ,
2021-03-21 15:12:53 +01:00
"name" : {
"nl" : "Fixmes op gebouwen"
} ,
"source" : {
2021-10-25 20:38:57 +02:00
"maxCacheAge" : 0 ,
2021-03-21 15:12:53 +01:00
"osmTags" : {
"and" : [
"fixme~*" ,
"building~*"
]
}
} ,
2021-04-11 19:21:41 +02:00
"calculatedTags" : [
"_grbNumber=(feat.properties.fixme?.match(/GRB thinks that this has number ([^;]+)/ ) ?? ['','none']) [1]"
] ,
2021-03-21 15:12:53 +01:00
"title" : {
"render" : {
"nl" : "{addr:street} {addr:housenumber}"
} ,
"mappings" : [
{
"if" : {
"and" : [
"fixme~*"
]
} ,
"then" : {
"nl" : "{fixme}"
}
}
]
} ,
"description" : {
"nl" : "Dit gebouw heeft een foutmelding"
} ,
"tagRenderings" : [
{
2021-09-26 19:56:40 +02:00
"id" : "grb-housenumber" ,
2021-03-21 15:12:53 +01:00
"render" : {
"nl" : "Het huisnummer is <b>{addr:housenumber}</b>"
} ,
"question" : {
"nl" : "Wat is het huisnummer?"
} ,
"freeform" : {
"key" : "addr:housenumber"
} ,
"mappings" : [
{
"if" : {
"and" : [
"not:addr:housenumber=yes" ,
"addr:housenumber="
]
} ,
"then" : {
"nl" : "Geen huisnummer"
}
2021-04-11 19:21:41 +02:00
} ,
{
"if" : {
"and" : [
"addr:housenumber:={_grbNumber}" ,
"fixme="
]
} ,
"then" : "Het huisnummer is <b>{_grbNumber}</b>, wat overeenkomt met het GRB" ,
"hideInAnswer" : {
"or" : [
"_grbNumber=" ,
"_grbNumber=none" ,
"_grbNumber=no number"
]
}
} ,
{
"if" : {
"and" : [
2021-09-04 18:59:51 +02:00
"addr:housenumber=" ,
2021-04-11 19:21:41 +02:00
"not:addr:housenumber=yes" ,
"fixme="
]
} ,
"then" : "Dit gebouw heeft geen nummer, net zoals in het GRB" ,
"hideInAnswer" : "_grbNumber!=no number"
2021-03-21 15:12:53 +01:00
}
]
} ,
{
2021-09-26 19:56:40 +02:00
"id" : "grb-unit" ,
2021-04-11 19:21:41 +02:00
"question" : "Wat is de wooneenheid-aanduiding?" ,
2021-03-21 15:12:53 +01:00
"render" : {
2021-04-11 19:21:41 +02:00
"nl" : "De wooneenheid-aanduiding is <b>{addr:unit}</b> "
2021-03-21 15:12:53 +01:00
} ,
"freeform" : {
"key" : "addr:unit"
} ,
"mappings" : [
{
"if" : "addr:unit=" ,
"then" : "Geen wooneenheid-nummer"
}
]
} ,
{
2021-09-26 19:56:40 +02:00
"id" : "grb-street" ,
2021-03-21 15:12:53 +01:00
"render" : {
"nl" : "De straat is <b>{addr:street}</b>"
} ,
"freeform" : {
"key" : "addr:street"
} ,
"question" : {
"nl" : "Wat is de straat?"
}
} ,
{
2021-09-26 19:56:40 +02:00
"id" : "grb-fixme" ,
2021-03-21 15:12:53 +01:00
"render" : {
"nl" : "De fixme is <b>{fixme}</b>"
} ,
"question" : {
"nl" : "Wat zegt de fixme?"
} ,
"freeform" : {
"key" : "fixme"
} ,
"mappings" : [
{
"if" : {
"and" : [
"fixme="
]
} ,
"then" : {
"nl" : "Geen fixme"
}
}
]
} ,
{
2021-09-26 19:56:40 +02:00
"id" : "grb-min-level" ,
2021-03-21 15:12:53 +01:00
"render" : {
"nl" : "Dit gebouw begint maar op de {building:min_level} verdieping"
} ,
"question" : {
"nl" : "Hoeveel verdiepingen ontbreken?"
} ,
"freeform" : {
"key" : "building:min_level" ,
"type" : "pnat"
}
}
] ,
2021-10-28 01:26:35 +02:00
"mapRendering" : [
{
"location" : [
"point" ,
2021-10-28 03:15:36 +02:00
"centroid"
2021-10-28 01:26:35 +02:00
] ,
"label" : {
"mappings" : [
{
"if" : "addr:housenumber~*" ,
"then" : "<div style='background-color: white; font: large; width: 1.5em; height: 1.5em; border-radius: 100%'>{addr:housenumber}</div>"
}
]
} ,
"iconSize" : {
"render" : "40,40,center"
2021-04-11 19:21:41 +02:00
}
2021-10-28 01:26:35 +02:00
} ,
{
"dashes" : "2 2" ,
"color" : {
"render" : "#00f"
} ,
"width" : {
"render" : "2"
}
}
]
2021-10-27 03:52:19 +02:00
} ,
{
"id" : "crab-addresses 2021-10-26" ,
"source" : {
"osmTags" : "HUISNR~*" ,
"geoJson" : "https://raw.githubusercontent.com/pietervdvn/pietervdvn.github.io/master/CRAB_2021_10_26/tile_{z}_{x}_{y}.geojson" ,
"#geoJson" : "https://pietervdvn.github.io/CRAB_2021_10_26/tile_{z}_{x}_{y}.geojson" ,
"geoJsonZoomLevel" : 18 ,
"maxCacheAge" : 0
} ,
"name" : "CRAB-addressen" ,
"title" : "CRAB-adres" ,
2021-10-28 01:26:35 +02:00
"mapRendering" : [
{
2021-10-28 03:25:12 +02:00
"location" : [
"point"
] ,
2021-10-28 01:26:35 +02:00
"icon" : "circle:#bb3322" ,
"iconSize" : "15,15,center"
}
] ,
2021-10-28 03:15:36 +02:00
"calculatedTags" : [
"_embedded_in=feat.overlapWith('OSM-buildings').filter(f => f.feat.properties['addr:housenumber'] !== undefined)[0]?.feat?.properties " ,
"_embedding_nr=feat.get('_embedded_in')['addr:housenumber']" ,
"_embedding_street=feat.get('_embedded_in')['addr:street']"
] ,
"isShown" : {
"render" : "yes" ,
"mappings" : [
{
"if" : {
2021-10-28 03:25:12 +02:00
"and" : [
"_embedding_nr:={HUISNR}" ,
"_embedding_street:={STRAATNM}"
]
2021-10-28 03:15:36 +02:00
} ,
"then" : "no"
}
]
} ,
2021-10-27 03:52:19 +02:00
"tagRenderings" : [
2021-10-28 03:15:36 +02:00
{
"id" : "render_crab" ,
"render" : "Volgens het CRAB ligt hier <b>{STRAATNM}</b> {HUISNR} (label: {HNRLABEL})"
} ,
{
"id" : "render_embedded" ,
"render" : "Het omliggende object met addres heeft <b>{_embedding_street}</b> {_embedding_nr}" ,
"condition" : {
2021-10-28 03:25:12 +02:00
"and" : [
"_embedding_street~*" ,
"_embedding_nr~*"
]
2021-10-28 03:15:36 +02:00
}
} ,
2021-10-27 03:52:19 +02:00
"all_tags" ,
{
"id" : "import-button" ,
2021-10-31 02:08:39 +01:00
"render" : "{import_button(OSM-buildings, addr:street=$STRAATNM; addr:housenumber=$HUISNR,Import this address,,,OSM-buildings,5)}"
2021-10-27 03:52:19 +02:00
}
]
} ,
{
2021-10-28 00:13:18 +02:00
"id" : "grb-fixmes" ,
"name" : {
"nl" : "Fixmes op gebouwen"
} ,
2021-10-27 03:52:19 +02:00
"source" : {
2021-10-28 00:13:18 +02:00
"maxCacheAge" : 0 ,
"osmTags" : {
"and" : [
"fixme~*" ,
"building~*"
]
}
2021-10-27 03:52:19 +02:00
} ,
2021-10-27 20:19:45 +02:00
"calculatedTags" : [
2021-10-28 00:13:18 +02:00
"_grbNumber=(feat.properties.fixme?.match(/GRB thinks that this has number ([^;]+)/ ) ?? ['','none']) [1]"
2021-10-27 20:19:45 +02:00
] ,
2021-10-28 00:13:18 +02:00
"title" : {
"render" : {
"nl" : "{addr:street} {addr:housenumber}"
} ,
"mappings" : [
{
"if" : {
"and" : [
"fixme~*"
]
} ,
"then" : {
"nl" : "{fixme}"
}
}
]
} ,
"description" : {
"nl" : "Dit gebouw heeft een foutmelding"
} ,
2021-10-27 03:52:19 +02:00
"tagRenderings" : [
2021-10-28 00:10:45 +02:00
{
2021-10-28 00:13:18 +02:00
"id" : "grb-housenumber" ,
"render" : {
"nl" : "Het huisnummer is <b>{addr:housenumber}</b>"
} ,
"question" : {
"nl" : "Wat is het huisnummer?"
} ,
"freeform" : {
"key" : "addr:housenumber"
} ,
2021-10-28 00:10:45 +02:00
"mappings" : [
{
2021-10-28 00:13:18 +02:00
"if" : {
"and" : [
"not:addr:housenumber=yes" ,
"addr:housenumber="
]
} ,
"then" : {
"nl" : "Geen huisnummer"
}
} ,
{
"if" : {
"and" : [
"addr:housenumber:={_grbNumber}" ,
"fixme="
]
} ,
"then" : "Het huisnummer is <b>{_grbNumber}</b>, wat overeenkomt met het GRB" ,
"hideInAnswer" : {
"or" : [
"_grbNumber=" ,
"_grbNumber=none" ,
"_grbNumber=no number"
]
}
} ,
{
"if" : {
"and" : [
"addr:housenumber=" ,
"not:addr:housenumber=yes" ,
"fixme="
]
} ,
"then" : "Dit gebouw heeft geen nummer, net zoals in het GRB" ,
"hideInAnswer" : "_grbNumber!=no number"
2021-10-28 00:10:45 +02:00
}
]
} ,
2021-10-28 00:13:18 +02:00
{
"id" : "grb-unit" ,
"question" : "Wat is de wooneenheid-aanduiding?" ,
"render" : {
"nl" : "De wooneenheid-aanduiding is <b>{addr:unit}</b> "
} ,
"freeform" : {
"key" : "addr:unit"
} ,
"mappings" : [
{
"if" : "addr:unit=" ,
"then" : "Geen wooneenheid-nummer"
}
]
} ,
{
"id" : "grb-street" ,
"render" : {
"nl" : "De straat is <b>{addr:street}</b>"
} ,
"freeform" : {
"key" : "addr:street"
} ,
"question" : {
"nl" : "Wat is de straat?"
}
} ,
{
"id" : "grb-fixme" ,
"render" : {
"nl" : "De fixme is <b>{fixme}</b>"
} ,
"question" : {
"nl" : "Wat zegt de fixme?"
} ,
"freeform" : {
"key" : "fixme"
} ,
"mappings" : [
{
"if" : {
"and" : [
"fixme="
]
} ,
"then" : {
"nl" : "Geen fixme"
}
}
]
} ,
{
"id" : "grb-min-level" ,
"render" : {
"nl" : "Dit gebouw begint maar op de {building:min_level} verdieping"
} ,
"question" : {
"nl" : "Hoeveel verdiepingen ontbreken?"
} ,
"freeform" : {
"key" : "building:min_level" ,
"type" : "pnat"
}
}
2021-10-27 20:19:45 +02:00
] ,
2021-10-28 01:26:35 +02:00
"mapRendering" : [
{
"location" : [
"point" ,
2021-10-28 03:15:36 +02:00
"centroid"
2021-10-28 01:26:35 +02:00
] ,
"iconSize" : {
"render" : "40,40,center"
} ,
"label" : {
"mappings" : [
{
"if" : "addr:housenumber~*" ,
"then" : "<div style='background-color: white; font: large; width: 1.5em; height: 1.5em; border-radius: 100%'>{addr:housenumber}</div>"
}
]
2021-10-27 20:19:45 +02:00
}
2021-10-28 01:26:35 +02:00
} ,
{
"width" : {
"render" : "2"
} ,
"color" : {
"render" : "#00f"
}
}
2021-10-28 03:15:36 +02:00
]
} ,
{
"id" : "GRB" ,
"source" : {
2021-10-29 01:41:37 +02:00
"osmTags" : "HUISNR~*" ,
2021-10-28 03:15:36 +02:00
"geoJson" : "https://betadata.grbosm.site/grb?bbox={x_min},{y_min},{x_max},{y_max}" ,
"geoJsonZoomLevel" : 18 ,
"mercatorCrs" : true ,
"maxCacheAge" : 0
} ,
"name" : "GRB geometries" ,
"title" : "GRB outline" ,
"calculatedTags" : [
2021-10-29 16:38:33 +02:00
"_overlaps_with=feat.overlapWith('OSM-buildings').filter(f => f.overlap > 1 && (feat.get('_surface') < 20 || f.overlap / feat.get('_surface')) > 0.9)[0] ?? null" ,
"_overlap_absolute=feat.get('_overlaps_with')?.overlap" ,
"_overlap_percentage=Math.round(100 * feat.get('_overlap_absolute') / feat.get('_surface')) " ,
"_osm_obj:source:ref=feat.get('_overlaps_with')?.feat?.properties['source:geometry:ref']" ,
"_osm_obj:source:date=feat.get('_overlaps_with')?.feat?.properties['source:geometry:date'].replace(/\\//g, '-')" ,
"_osm_obj:building=feat.get('_overlaps_with')?.feat?.properties.building" ,
"_osm_obj:id=feat.get('_overlaps_with')?.feat?.properties.id" ,
"_grb_ref=feat.properties['source:geometry:entity'] + '/' + feat.properties['source:geometry:oidn']" ,
"_imported_osm_object_found= feat.properties['_osm_obj:source:ref'] == feat.properties._grb_ref" ,
2021-10-28 03:15:36 +02:00
"_grb_date=feat.properties['source:geometry:date'].replace(/\\//g,'-')" ,
"_imported_osm_still_fresh= feat.properties['_osm_obj:source:date'] == feat.properties._grb_date"
2021-10-28 01:26:35 +02:00
] ,
2021-10-28 03:15:36 +02:00
"tagRenderings" : [
2021-10-29 13:53:00 +02:00
{
2021-10-29 16:38:33 +02:00
"id" : "Building info" ,
"render" : "This is a <b>{building}</b> <span class='subtle'>detected by {detection_method}</span>"
} ,
{
"id" : "overlapping building type" ,
"render" : "<div>The overlapping openstreetmap-building is a <b>{_osm_obj:building}</b> and covers <b>{_overlap_percentage}%</b> of the GRB building<div><h3>GRB 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}" ,
"condition" : "_overlaps_with!=null"
} ,
2021-10-29 18:16:51 +02:00
{
"id" : "apply-id" ,
"render" : "{tag_apply(source:geometry:date=$_grb_date; source:geometry:ref=$_grb_ref,Mark the OSM-building as imported,,_osm_obj:id)}" ,
"condition" : {
"and" : [
"_overlaps_with!=null"
]
}
} ,
{
"id" : "apply-building-type" ,
"render" : "{tag_apply(building=$building,Use the building type from GRB,,_osm_obj:id)}" ,
"condition" : {
"and" : [
"_overlaps_with!=null" ,
"_osm_obj:building=yes" ,
"building!=yes"
]
}
} ,
2021-10-29 16:38:33 +02:00
{
"id" : "Import-button" ,
2021-10-31 02:08:39 +01:00
"render" : "{import_button(OSM-buildings,building=$building; source:geometry:date=$_grb_date; source:geometry:ref=$_grb_ref, Upload this building to OpenStreetMap)}" ,
2021-10-29 16:38:33 +02:00
"mappings" : [
{
"if" : "_overlaps_with!=null" ,
"then" : "Cannot be imported directly, there is a nearly identical building geometry in OpenStreetMap"
2021-10-29 18:16:51 +02:00
}
]
2021-10-29 13:53:00 +02:00
} ,
2021-10-28 03:15:36 +02:00
"all_tags"
] ,
"isShown" : {
"render" : "yes" ,
"mappings" : [
{
"if" : {
"and" : [
"_imported_osm_object_found=true" ,
"_imported_osm_still_fresh=true"
]
} ,
"then" : "no"
}
]
} ,
"mapRendering" : [
{
"color" : {
"render" : "#00a" ,
"mappings" : [
{
"if" : {
"and" : [
"_imported_osm_object_found=true" ,
"_imported_osm_still_fresh=true"
]
} ,
"then" : "#0f0"
}
]
}
}
]
2021-03-21 15:12:53 +01:00
}
] ,
"hideFromOverview" : true ,
2021-10-28 00:13:18 +02:00
"defaultBackgroundId" : "AGIVFlandersGRB" ,
2021-10-28 03:15:36 +02:00
"overpassMaxZoom" : 15 ,
2021-10-28 00:13:18 +02:00
"osmApiTileSize" : 17
2021-03-21 15:12:53 +01:00
}