2021-03-21 15:12:53 +01:00
{
"id" : "grb" ,
"title" : {
2021-12-02 02:54:28 +01:00
"nl" : "GRB import helper"
2021-03-21 15:12:53 +01:00
} ,
"description" : {
2021-12-02 02:54:28 +01:00
"nl" : "Dit thema helpt het GRB importeren." ,
2022-02-04 01:30:39 +01:00
"en" : "This theme is an attempt to help automating the GRB import." ,
2022-02-27 15:54:50 +01:00
"hu" : "Ez a sablon a flandriai GRB épületimportálás automatizlását kívánja megkönnyíteni." ,
2022-06-27 09:16:53 +02:00
"de" : "Dieses Thema ist ein Versuch, die Automatisierung des GRB-Imports zu unterstützen." ,
2022-08-24 03:09:51 +02:00
"fr" : "Ce thème tente d’ aider l’ import automatique GRB." ,
2022-09-14 13:35:54 +02:00
"es" : "Este tema es un intento de automatizar la importación GRB." ,
2023-02-23 14:39:08 +01:00
"da" : "Dette tema er et forsøg på at hjælpe med at automatisere GRB-importen." ,
2023-03-13 20:14:39 +01:00
"ca" : "Aquest tema és un intent d'automatitzar la importació GRB." ,
2023-10-16 13:38:53 +02:00
"cs" : "Toto téma je pokusem o automatizaci importu GRB." ,
"pl" : "Ten temat jest próbą pomocy w automatyzacji importu GRB."
2021-03-21 15:12:53 +01:00
} ,
2023-10-30 18:03:18 +01:00
"shortDescription" : {
"nl" : "Grb import helper tool"
} ,
2022-12-02 18:48:56 +01:00
"icon" : "./assets/themes/grb/logo.svg" ,
2023-10-30 18:03:18 +01:00
"startZoom" : 9 ,
2021-12-06 12:41:05 +01:00
"startLat" : 51.0249 ,
"startLon" : 4.026489 ,
2024-01-03 18:24:00 +01:00
"defaultBackgroundId" : "osm" ,
2023-10-30 18:03:18 +01:00
"credits" : [
"Pieter Vander Vennet"
] ,
"hideFromOverview" : true ,
2021-03-21 15:12:53 +01:00
"layers" : [
2021-11-22 03:49:17 +01:00
{
2021-12-30 22:36:34 +01:00
"id" : "osm-buildings" ,
2021-11-22 03:49:17 +01:00
"name" : "All OSM-buildings" ,
2021-03-21 15:12:53 +01:00
"source" : {
2023-05-24 03:26:33 +02:00
"osmTags" : {
"and" : [
{
"or" : [
"id~way/.*" ,
"id~relation/.*"
]
} ,
"building~*"
]
} ,
2021-11-22 03:49:17 +01:00
"maxCacheAge" : 0
2021-03-21 15:12:53 +01:00
} ,
2021-11-22 03:49:17 +01:00
"title" : "OSM-gebouw" ,
2021-03-21 15:12:53 +01:00
"tagRenderings" : [
2021-11-22 03:49:17 +01:00
{
"id" : "building type" ,
"freeform" : {
"key" : "building"
} ,
"render" : "The building type is <b>{building}</b>" ,
"question" : {
2022-01-06 15:37:57 +01:00
"en" : "What kind of building is this?" ,
2022-06-19 22:13:38 +02:00
"de" : "Was ist das für ein Gebäude?" ,
"es" : "¿Qué tipo de edificio es este?" ,
2022-06-27 09:16:53 +02:00
"nl" : "Wat voor soort gebouw is dit?" ,
2022-09-14 13:35:54 +02:00
"fr" : "De quel type de bâtiment s’ agit-il ?" ,
2023-01-29 18:02:06 +01:00
"da" : "Hvad er det for en bygning?" ,
2023-02-23 14:39:08 +01:00
"cs" : "Jaký druh budovy je toto?" ,
2023-09-16 18:52:42 +02:00
"ca" : "Quin tipus d'edifici és aquest?" ,
"pl" : "Jaki to rodzaj budynku?"
2021-11-22 03:49:17 +01:00
} ,
"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" ,
2022-03-17 22:16:28 +01:00
"then" : "An apartment building (highrise building for living)"
2021-11-22 03:49:17 +01:00
} ,
{
"if" : "building=office" ,
"then" : "An office building - highrise for work"
} ,
{
"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-03-21 15:12:53 +01:00
{
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-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?"
}
} ,
2023-05-24 03:26:33 +02:00
{
"id" : "grb-reference" ,
"render" : {
2023-06-28 22:30:08 +02:00
"en" : "Has been imported from GRB, reference number is {source:geometry:ref}" ,
2023-09-16 18:52:42 +02:00
"de" : "Wurde von GRB importiert, Referenznummer ist {source:geometry:ref}" ,
2023-10-16 13:38:53 +02:00
"ca" : "Ha estat importat des de GRB, el número de referència és {source:geometry:ref}" ,
"cs" : "Byl importován z GRB, referenční číslo je {source:geometry:ref}" ,
"es" : "Se ha importado de GRB, el número de referencia es {source:geometry:ref}" ,
"pl" : "Został zaimportowany z GRB, numer referencyjny to {source:geometry:ref}"
2023-05-24 03:26:33 +02:00
} ,
"condition" : "source:geometry:ref~*"
} ,
2021-03-21 15:12:53 +01:00
{
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
} ,
2021-11-22 03:49:17 +01:00
"all_tags"
2021-10-28 01:26:35 +02:00
] ,
2021-11-22 03:49:17 +01:00
"filter" : [
2021-10-28 03:15:36 +02:00
{
2021-11-22 03:49:17 +01:00
"id" : "has-fixme" ,
"options" : [
2021-10-28 00:13:18 +02:00
{
2021-11-22 03:49:17 +01:00
"osmTags" : "fixme~*" ,
"question" : "Heeft een FIXME"
2021-10-28 00:13:18 +02:00
}
]
2023-03-08 03:01:51 +01:00
} ,
{
2023-03-05 23:44:28 +01:00
"id" : "last-edited-by" ,
"options" : [
{
2023-03-08 03:01:51 +01:00
"fields" : [
{
"name" : "username"
}
] ,
2023-03-05 23:44:28 +01:00
"question" : "Last change made by {username}" ,
"osmTags" : "_last_edit:contributor~i~{username}"
}
]
2021-11-22 03:49:17 +01:00
}
2023-09-19 14:04:13 +02:00
] ,
2023-11-13 13:45:22 +01:00
"pointRendering" : null ,
2023-09-19 14:04:13 +02:00
"lineRendering" : [
2023-11-13 04:33:25 +01:00
{
"width" : {
"render" : "2" ,
"mappings" : [
{
"if" : "fixme~*" ,
"then" : "5"
}
]
} ,
"color" : {
"render" : "#00c" ,
"mappings" : [
{
"if" : "fixme~*" ,
"then" : "#ff00ff"
} ,
{
"if" : "building=house" ,
"then" : "#a00"
} ,
{
"if" : "building=shed" ,
"then" : "#563e02"
} ,
{
"if" : {
"or" : [
"building=garage" ,
"building=garages"
]
} ,
"then" : "#f9bfbb"
} ,
{
"if" : "building=yes" ,
"then" : "#0774f2"
}
]
}
}
2021-12-14 03:12:10 +01:00
]
2021-12-05 21:02:55 +01:00
} ,
2021-10-28 03:15:36 +02:00
{
2021-12-30 22:36:34 +01:00
"id" : "grb" ,
2021-12-05 05:16:58 +01:00
"description" : "Geometry which comes from GRB with tools to import them" ,
2021-10-28 03:15:36 +02:00
"source" : {
2021-12-23 00:37:41 +01:00
"osmTags" : {
2021-12-23 21:28:41 +01:00
"and" : [
2023-05-24 03:26:33 +02:00
"osm_id~*" ,
2021-12-23 21:28:41 +01:00
"man_made!=mast"
]
2021-12-23 00:37:41 +01:00
} ,
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 ,
2022-02-11 03:57:39 +01:00
"maxCacheAge" : 0 ,
"idKey" : "osm_id"
2021-10-28 03:15:36 +02:00
} ,
"name" : "GRB geometries" ,
"title" : "GRB outline" ,
"calculatedTags" : [
2023-06-01 02:52:21 +02:00
"_overlaps_with_buildings=overlapWith(feat)('osm-buildings').filter(f => f.feat.properties.id.indexOf('-') < 0) ?? []" ,
2023-05-24 03:26:33 +02:00
"_overlaps_with=get(feat)('_overlaps_with_buildings').find(f => f.overlap > 1 /* square meter */ )" ,
"_osm_obj:source:ref=get(feat)('_overlaps_with')?.feat?.properties['source:geometry:ref']" ,
"_osm_obj:id=get(feat)('_overlaps_with')?.feat?.properties?.id" ,
2023-06-01 02:52:21 +02:00
"_osm_obj:source:date=(feat.properties['_overlaps_with']?.feat?.properties ?? {})['source:geometry:date']?.replace(/\\//g, '-')" ,
2023-05-24 03:26:33 +02:00
"_osm_obj:building=get(feat)('_overlaps_with')?.feat?.properties?.building" ,
"_osm_obj:addr:street=(get(feat)('_overlaps_with')?.feat?.properties ?? {})['addr:street']" ,
"_osm_obj:addr:housenumber=(get(feat)('_overlaps_with')?.feat?.properties ?? {})['addr:housenumber']" ,
2023-06-01 02:52:21 +02:00
"_osm_obj:surface=(get(feat)('_overlaps_with')?.feat?.properties ?? {})['_surface']" ,
2023-05-24 03:26:33 +02:00
"_overlap_absolute=get(feat)('_overlaps_with')?.overlap" ,
"_reverse_overlap_percentage=Math.round(100 * get(feat)('_overlap_absolute') / get(feat)('_surface'))" ,
"_overlap_percentage=Math.round(100 * get(feat)('_overlap_absolute') / get(feat)('_osm_obj:surface'))" ,
2021-10-29 16:38:33 +02:00
"_grb_ref=feat.properties['source:geometry:entity'] + '/' + feat.properties['source:geometry:oidn']" ,
2023-06-01 02:52:21 +02:00
"_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,'-')" ,
2023-06-01 02:52:21 +02:00
"_imported_osm_still_fresh=feat.properties['_osm_obj:source:date'] == feat.properties._grb_date" ,
2021-12-05 05:16:58 +01:00
"_target_building_type=feat.properties['_osm_obj:building'] === 'yes' ? feat.properties.building : (feat.properties['_osm_obj:building'] ?? feat.properties.building)" ,
2023-06-01 02:52:21 +02:00
"_building:min_level=feat.properties['fixme']?.startsWith('verdieping, correct the building tag, add building:level and building:min_level before upload in JOSM!') ? '1' : ''" ,
2023-05-16 03:27:49 +02:00
"_intersects_with_other_features=intersectionsWith(feat)('generic_osm_object').map(f => \"<a href='https://osm.org/\"+f.feat.properties.id+\"' target='_blank'>\" + f.feat.properties.id + \"</a>\").join(', ')"
2021-10-28 01:26:35 +02:00
] ,
2021-10-28 03:15:36 +02:00
"tagRenderings" : [
2021-12-06 03:24:33 +01:00
{
"id" : "Import-button" ,
2021-12-30 22:36:34 +01:00
"render" : "{import_way_button(osm-buildings,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)}" ,
2021-12-06 03:24:33 +01:00
"mappings" : [
2022-02-27 20:49:42 +01:00
{
"#" : "Failsafe" ,
"if" : "_grb_ref=" ,
"then" : {
2022-04-13 18:42:40 +02:00
"en" : "Did not yet calculate the metatags... Reopen this popup" ,
2022-06-19 22:13:38 +02:00
"de" : "Metatags noch nicht berechnet... Dieses Fenster erneut öffnen" ,
2022-07-01 00:34:46 +02:00
"nl" : "Metatags nog niet berekend... Heropen deze pop-up" ,
2022-09-14 13:35:54 +02:00
"fr" : "Les balises meta ne sont pas encore calculées ... Rouvrir cette fenêtre pop-up" ,
2023-01-29 18:02:06 +01:00
"da" : "Har endnu ikke beregnet metatags... Genåbn denne popup" ,
2023-02-26 17:45:29 +01:00
"cs" : "Metatags ještě nebyly vypočítány... Znovu otevřete toto vyskakovací okno" ,
2023-03-16 15:09:26 +01:00
"es" : "Aún no se han calculado los metatags... Reabrir esta ventana emergente" ,
2023-09-16 18:52:42 +02:00
"ca" : "Encara no s'han calculat les metaetiquetes... Torneu a obrir aquesta finestra emergent" ,
"pl" : "Jeszcze nie obliczono metaznaczników... Otwórz to okienko ponownie"
2022-02-27 20:49:42 +01:00
}
} ,
2022-06-08 12:53:04 +02:00
{
"if" : {
2022-06-09 03:00:13 +02:00
"and" : [
"id~relation/*" ,
"_overlap_percentage>50" ,
"_reverse_overlap_percentage>50" ,
"_overlaps_with!="
]
2022-06-08 12:53:04 +02:00
} ,
"then" : {
2022-06-19 22:13:38 +02:00
"en" : "This building has holes and is modeled as a relation. As such, it cannot be conflated. Conflate it manually via <a href='https://buildings.osm.be/#/'>the building export site</a> {open_in_josm()}" ,
"de" : "Dieses Gebäude hat Löcher und ist als Relation modelliert. Als solches kann es nicht zusammengeführt werden. Es kann manuell zusammengeführt werden über die <a href='https://buildings.osm.be/#/'>Gebäudeexportseite</a> {open_in_josm()}" ,
2022-06-27 09:16:53 +02:00
"es" : "Este edificio tiene agujeros y está modelado como una relación. Por lo tanto, no se puede combinar. Combínalo manualmente a través <a href='https://buildings.osm.be/#/'>el sitio de exportación de edificios</a> {open_in_josm()}" ,
2022-08-24 03:09:51 +02:00
"fr" : "Ce bâtiment a des ouvertures et est modélisé comme une relation. Il ne peut être fusionné. Fusionnez-le manuellement via <a href='https://buildings.osm.be/#/'>le site d’ export de bâtiment</a> {open_in_josm()}" ,
2022-09-14 13:35:54 +02:00
"nl" : "Dit gebouw heeft openingen en is gemodelleerd als een relatie. Bijgevolg kan het niet worden samengevoegd. Voeg het manueel samen via <a href='https://buildings.osm.be/#/'>de export-site voor gebouwen</a> {open_in_josm()}" ,
2023-03-13 20:14:39 +01:00
"da" : "Denne bygning har huller og er modelleret som en relation. Som sådan kan det ikke sammenblandes. Sammensæt det manuelt via <a href='https://buildings.osm.be/#/'>bygningseksportwebstedet</a> {open_in_josm()}" ,
2023-03-16 15:09:26 +01:00
"cs" : "Tato budova má otvory a je modelována jako vztah. Jako takovou ji nelze spojovat. Spojte ji ručně pomocí <a href='https://buildings.osm.be/#/'>exportní stránky budovy</a> {open_in_josm()}" ,
2023-10-16 13:38:53 +02:00
"ca" : "Aquest edifici té forats i està modelat com una relació. Com a tal, no es pot combinar. Combineu-lo manualment mitjançant <a href='https://buildings.osm.be/#/'>el lloc d'exportació de l'edifici</a> {open_in_josm()}" ,
"pl" : "Budynek ten ma dziury i jest modelowany jako relacja. W związku z tym nie można go łączyć. Połącz to ręcznie za pomocą <a href='https://buildings.osm.be/#/'>strony eksportu budynków</a> {open_in_josm()}"
2022-06-08 12:53:04 +02:00
}
} ,
2021-12-23 21:28:41 +01:00
{
2022-01-06 14:39:42 +01:00
"#" : "Actually the same as below, except that the text shows 'add the address' too" ,
2021-12-07 02:22:56 +01:00
"if" : {
"and" : [
2022-01-06 14:39:42 +01:00
"_overlap_percentage>50" ,
"_reverse_overlap_percentage>50" ,
2021-12-07 02:22:56 +01:00
"_osm_obj:addr:street=" ,
"_osm_obj:addr:housenumber=" ,
"addr:street~*" ,
2022-01-06 14:39:42 +01:00
"addr:housenumber~*" ,
"addr:street!:={_osm_obj:addr:street}" ,
"addr:housenumber!:={_osm_obj:addr:housenumber}"
2021-12-07 02:22:56 +01:00
]
2021-12-06 03:24:33 +01:00
} ,
2021-12-30 22:36:34 +01:00
"then" : "{conflate_button(osm-buildings,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)}"
2021-12-06 03:24:33 +01:00
} ,
{
2022-01-06 14:39:42 +01:00
"if" : {
2022-01-06 15:38:43 +01:00
"and" : [
2022-01-06 14:39:42 +01:00
"_overlap_percentage>50" ,
2023-06-01 02:52:21 +02:00
"_reverse_overlap_percentage>50"
2022-01-06 15:38:43 +01:00
]
2022-01-06 14:39:42 +01:00
} ,
2021-12-30 22:36:34 +01:00
"then" : "{conflate_button(osm-buildings,building=$_target_building_type; source:geometry:date=$_grb_date; source:geometry:ref=$_grb_ref, Replace the geometry in OpenStreetMap,,_osm_obj:id)}"
2021-12-06 03:24:33 +01:00
}
]
} ,
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>"
} ,
2021-12-06 03:24:33 +01:00
{
"id" : "overlapping building address" ,
"render" : "The overlapping openstreetmap-building has no address information at all" ,
"mappings" : [
{
"if" : {
"and" : [
"_osm_obj:addr:street~*" ,
"_osm_obj:addr:housenumber~*"
]
} ,
"then" : "The overlapping openstreetmap-building has address {_osm_obj:addr:street} {_osm_obj:addr:housenumber}"
} ,
{
"if" : "_osm_obj:addr:street~*" ,
"then" : "The overlapping building only has a street known: {_osm_obj:addr:street}"
} ,
{
"if" : "_osm_obj:addr:housenumber~*" ,
"then" : "The overlapping building only has a housenumber known: {_osm_obj:addr:housenumber}"
2021-12-10 04:00:02 +01:00
} ,
{
"if" : "_osm_obj:id=" ,
"then" : "No overlapping OpenStreetMap-building found"
2021-12-06 03:24:33 +01:00
}
2021-12-10 04:00:02 +01:00
]
2021-12-06 03:24:33 +01:00
} ,
{
"id" : "grb_address_diff" ,
"render" : "<div>The overlapping openstreetmap-building has a different address then this GRB-object: {addr:street} {addr:housenumber}<br/>{tag_apply(addr:street=$addr:street; addr:housenumber=$addr:housenumber,Copy the GRB-address onto the OSM-object,,_osm_obj:id)}" ,
"condition" : {
"and" : [
"_osm_obj:id~*" ,
"addr:street~*" ,
"addr:housenumber~*" ,
2021-12-23 03:36:03 +01:00
{
"or" : [
"addr:street~*" ,
"addr:housenumber~*"
]
} ,
2021-12-06 03:24:33 +01:00
{
"or" : [
"addr:street!:={_osm_obj:addr:street}" ,
"addr:housenumber!:={_osm_obj:addr:housenumber}"
]
}
]
}
} ,
2023-06-01 02:52:21 +02:00
{
"id" : "overlapping building id" ,
"render" : "The overlapping <a href='https://osm.org/{_osm_obj:id}' target='_blank'>openstreetmap-building has id {_osm_obj:id}</a>" ,
"condition" : "_osm_obj:id~*"
} ,
2021-10-29 16:38:33 +02:00
{
"id" : "overlapping building type" ,
2023-06-01 02:52:21 +02:00
"render" : "The overlapping building is a <b>{_osm_obj:building}</b> and covers <b>{_overlap_percentage}%</b> of the GRB building. <br/>The GRB-building covers <b>{_reverse_overlap_percentage}%</b> of the OSM building<br/>The OSM-building is based on GRB-data from {_osm_obj:source:date}." ,
"condition" : "_osm_obj:id~*"
} ,
{
"id" : "overlapping building map" ,
"render" : "<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" : "_osm_obj:id~*"
2021-10-29 16:38:33 +02:00
} ,
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" : [
2021-12-06 03:24:33 +01:00
"_overlaps_with!=" ,
"_imported!=yes"
2021-10-29 18:16:51 +02:00
]
}
} ,
{
"id" : "apply-building-type" ,
"render" : "{tag_apply(building=$building,Use the building type from GRB,,_osm_obj:id)}" ,
"condition" : {
"and" : [
2021-12-06 03:24:33 +01:00
"_overlaps_with!=" ,
2021-10-29 18:16:51 +02:00
"_osm_obj:building=yes" ,
"building!=yes"
]
}
2021-12-06 03:24:33 +01:00
}
2021-10-28 03:15:36 +02:00
] ,
2022-07-18 11:49:22 +02:00
"isShown" : {
2022-07-18 02:00:32 +02:00
"or" : [
"_imported_osm_object_found!=true" ,
"_imported_osm_still_fresh!=true"
2021-10-28 03:15:36 +02:00
]
} ,
2023-11-13 14:22:35 +01:00
"pointRendering" : [
{
"label" : {
"render" : "<div style='margin-top: -42px; color: black' class='rounded-full p-1 font-bold relative'>{addr:housenumber}</div>" ,
"condition" : "addr:housenumber~*"
} ,
"iconSize" : "50,50" ,
"marker" : [
{
"icon" : {
"mappings" : [
{
"if" : "_intersects_with_other_features~*" ,
"then" : "./assets/themes/grb/warning.svg"
} ,
{
"if" : "addr:housenumber~*" ,
"then" : "./assets/themes/grb/housenumber_blank.svg"
}
]
}
}
] ,
"location" : [
"point" ,
"centroid"
] ,
"anchor" : "center"
}
] ,
"lineRendering" : [
{
"width" : {
"render" : 5 ,
2023-11-13 04:33:25 +01:00
"mappings" : [
{
2023-11-13 14:22:35 +01:00
"if" : "_imported=yes" ,
"then" : "1"
}
]
} ,
"color" : {
"render" : "#00a" ,
"mappings" : [
{
"if" : "_imported=yes" ,
"then" : "#00ff00"
2023-11-13 04:33:25 +01:00
} ,
{
2023-11-13 14:22:35 +01:00
"if" : {
"and" : [
"_imported_osm_object_found=true" ,
"_imported_osm_still_fresh=true"
]
} ,
"then" : "#0f0"
2023-11-13 04:33:25 +01:00
}
]
}
}
2021-10-28 03:15:36 +02:00
]
2022-02-10 23:16:14 +01:00
} ,
2023-05-24 03:26:33 +02:00
{
"id" : "service_ways" ,
"name" : "Service roads" ,
"description" : "A seperate layer with service roads, as to remove them from the intersection testing" ,
"source" : {
"osmTags" : "highway=service"
} ,
2023-06-22 17:25:41 +02:00
"title" : "Service road" ,
2023-09-19 14:04:13 +02:00
"tagRenderings" : [ ] ,
2023-11-13 13:45:22 +01:00
"pointRendering" : null ,
2023-11-13 14:22:35 +01:00
"lineRendering" : [
{
"width" : 4 ,
"color" : "#888888"
}
2023-09-19 14:04:13 +02:00
]
2023-05-24 03:26:33 +02:00
} ,
{
"id" : "generic_osm_object" ,
"name" : "All OSM Objects" ,
"source" : {
"osmTags" : {
"and" : [
"id~*" ,
"place=" ,
"disused:power=" ,
"power=" ,
"type!=boundary" ,
"type!=route" ,
"type!=waterway" ,
"boundary=" ,
{
"or" : [
"level=" ,
"level=0"
]
} ,
{
"or" : [
"layer=0" ,
"layer="
]
}
]
} ,
"maxCacheAge" : 0
} ,
"title" : {
"render" : {
"*" : "Other OSM-Object"
}
} ,
"tagRenderings" : [
"all_tags"
2023-09-19 14:04:13 +02:00
] ,
2023-11-13 13:45:22 +01:00
"pointRendering" : null ,
2023-09-19 14:04:13 +02:00
"lineRendering" : [
2023-11-13 04:33:25 +01:00
{
"color" : "#ccc" ,
"width" : "1" ,
"fill" : "no"
}
2023-05-24 03:26:33 +02:00
]
} ,
"address" ,
{
"builtin" : "crab_address" ,
"override" : {
"calculatedTags+" : [
"_embedded_in=overlapWith(feat)('osm-buildings').filter(b => /* Do not match newly created objects */ b.feat.properties.id.indexOf('-') < 0)[0]?.feat?.properties ?? {}" ,
"_embedding_nr=get(feat)('_embedded_in')['addr:housenumber']+(get(feat)('_embedded_in')['addr:unit'] ?? '')" ,
"_embedding_street=get(feat)('_embedded_in')['addr:street']" ,
"_embedding_id=get(feat)('_embedded_in').id" ,
"_closeby_addresses=closestn(feat)('address',10,undefined,50).map(f => f.feat).filter(addr => addr.properties['addr:street'] == feat.properties['STRAATNM'] && feat.properties['HNRLABEL'] == addr.properties['addr:housenumber'] + (addr.properties['addr:unit']??'') ).length" ,
"_has_identical_closeby_address=get(feat)('_closeby_addresses') >= 1 ? 'yes' : 'no'" ,
"_embedded_in_grb=overlapWith(feat)('grb')[0]?.feat?.properties ?? {}" ,
"_embedding_nr_grb=get(feat)('_embedded_in_grb')['addr:housenumber']" ,
"_embedding_street_grb=get(feat)('_embedded_in_grb')['addr:street']"
] ,
"filter" : [
{
"id" : "show_matched_addresses" ,
"options" : [
{
"question" : "Show all CRAB-addresses (including already matched ones)"
} ,
{
"question" : "Only show unmatched addresses" ,
"osmTags" : {
"and" : [
"_has_identical_closeby_address!=yes" ,
{
"#" : "Matches the embedding OSM object" ,
"or" : [
"_embedding_nr!:={HUISNR}" ,
"_embedding_street!:={STRAATNM}"
]
} ,
{
"#" : "Matches the embedding GRB object" ,
"or" : [
"_embedding_nr_grb!:={HUISNR}" ,
"_embedding_street_grb!:={STRAATNM}"
]
}
]
} ,
"default" : true
}
]
}
] ,
"tagRenderings+" : [
{
"id" : "render_embedded" ,
"render" : "Dit CRAB-adres ligt in <a href='https://osm.org/{_embedding_id}' target='_blank'>OSM-gebouw {_embedding_id}</a>" ,
"mappings" : [
{
"if" : "_embedding_id=" ,
"then" : {
"nl" : "Geen omliggend OSM-gebouw gevonden"
}
}
]
} ,
{
"id" : "embedded_address" ,
"render" : "Het omliggende OSM-gebouw heeft geen volledig address" ,
"mappings" : [
{
"if" : {
"and" : [
"_embedding_street~*" ,
"_embedding_nr~*"
]
} ,
"then" : "Het omliggende object met addres heeft <b>{_embedding_street}</b> {_embedding_nr}"
}
] ,
"condition" : "_embedding_id~*"
} ,
{
"id" : "apply-button" ,
"render" : "{tag_apply(addr:street=$STRAATNM; addr:housenumber=$_HNRLABEL,Apply this address on the OSM-building,,_embedding_id)}" ,
"condition" : {
"and" : [
"_embedding_id!=" ,
{
"or" : [
"_embedding_street!:={STRAATNM}" ,
"_embedding_nr!:={_HNRLABEL}"
]
}
]
}
} ,
{
"id" : "import-button" ,
"render" : {
"special" : {
"type" : "import_button" ,
"targetLayer" : "address" ,
"tags" : "addr:street=$STRAATNM; addr:housenumber=$_HNRLABEL" ,
"text" : {
"nl" : "Voeg dit adres als een nieuw adrespunt toe"
} ,
"snap_onto_layers" : "osm-buildings"
}
} ,
"mappings" : [
{
"if" : "_embedding_id=" ,
"then" : {
"nl" : "Geen omliggend OSM-gebouw gevonden. Een omliggend gebouw is nodig om dit punt als adres punt toe te voegen. <div class=subtle>Importeer eerst de gebouwen. Vernieuw dan de pagina om losse adressen toe te voegen</div>"
}
}
] ,
"condition" : {
"or" : [
"_embedding_street!:={STRAATNM}" ,
"_embedding_nr!:={_HNRLABEL}"
]
}
}
]
}
} ,
2022-02-10 23:16:14 +01:00
{
"builtin" : "current_view" ,
"override" : {
2023-06-01 02:52:21 +02:00
"calculatedTags+" : [
2023-06-01 03:17:52 +02:00
"_overlapping=Number(feat.properties.zoom) >= 14 ? overlapWith(feat)('grb').map(ff => ff.feat.properties) : undefined" ,
2023-06-01 02:52:21 +02:00
"_applicable_conflate=get(feat)('_overlapping')?.filter(p => p._imported !== 'yes' && (!p['_imported_osm_still_fresh'] || !p['_imported_osm_object_found']) && p['_overlap_absolute'] > 10 && p['_overlap_percentage'] > 80 && p['_reverse_overlap_percentage'] > 80)?.map(p => p.id)" ,
"_applicable=feat.properties._overlapping.filter(p => p._imported !== 'yes' && p._imported_osm_object_found === false && !(p['_overlap_absolute'] > 5) && !p._intersects_with_other_features)?.map(p => p.id)" ,
"_applicable_count=get(feat)('_applicable')?.length" ,
"_applicable_conflate_count=get(feat)('_applicable_conflate')?.length"
2022-02-11 01:20:01 +01:00
] ,
2023-03-31 03:28:11 +02:00
"tagRenderings+" : [
2022-02-10 23:16:14 +01:00
{
"id" : "hw" ,
2023-06-01 02:52:21 +02:00
"render" : "There are {_applicable_count} non-overlapping buildings in view and {_applicable_conflate_count} conflatable buildings" ,
2022-02-10 23:16:14 +01:00
"mappings" : [
{
"if" : "zoom<14" ,
"then" : "Zoom in more to see the automatic action"
} ,
{
"if" : "_applicable_count=" ,
"then" : "Loading..."
} ,
{
"if" : "_applicable_count=0" ,
2023-06-01 02:52:21 +02:00
"then" : "No importable buildings in view"
2022-02-10 23:16:14 +01:00
}
]
} ,
{
"id" : "autoapply" ,
2023-06-01 03:17:52 +02:00
"render" : "{auto_apply(grb, _applicable, Import-button, Import all non-conflicting buildings in view)}"
2023-06-01 02:52:21 +02:00
} ,
{
"id" : "autoapply_conflate" ,
2023-06-01 03:17:52 +02:00
"render" : "{auto_apply(grb, _applicable_conflate, Import-button, Conflate all non-conflicting buildings in view)}"
2022-02-10 23:16:14 +01:00
}
] ,
2023-11-13 04:33:25 +01:00
"+pointRendering" : [
2022-02-10 23:16:14 +01:00
{
"location" : [
"point"
] ,
2023-11-13 14:22:35 +01:00
"marker" : [
{
"icon" : "./assets/svg/robot.svg"
}
] ,
2023-06-20 02:46:38 +02:00
"iconSize" : "15,15"
2022-02-10 23:16:14 +01:00
}
]
}
2021-12-05 05:16:58 +01:00
}
2021-03-21 15:12:53 +01:00
] ,
2023-10-30 18:03:18 +01:00
"overrideAll" : {
2023-11-18 23:23:37 +01:00
"minzoom" : 17
2023-10-30 18:03:18 +01:00
} ,
"widenFactor" : 2 ,
2023-06-01 03:17:52 +02:00
"overpassMaxZoom" : 15 ,
2022-08-22 14:46:36 +02:00
"osmApiTileSize" : 17 ,
2023-10-30 18:03:18 +01:00
"clustering" : {
"maxZoom" : 15
}
2023-11-13 04:33:25 +01:00
}