From 9dab433a2e5c0af1d2639a993d546afe072f608e Mon Sep 17 00:00:00 2001 From: Tobias Reber Date: Mon, 28 Oct 2024 11:05:38 +0100 Subject: [PATCH] BGDIDIC-1804: there are null target_names --- conf/stopo.conf.part | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/conf/stopo.conf.part b/conf/stopo.conf.part index c2f112f..b48ba26 100644 --- a/conf/stopo.conf.part +++ b/conf/stopo.conf.part @@ -132,9 +132,9 @@ source src_ch_swisstopo_karto_skitouren : def_searchable_features sql_db = stopo_${DBSTAGING} sql_query = \ SELECT bgdi_id as id \ - , remove_accents(target_name) as label \ + , remove_accents(coalesce(target_name, '')) as label \ , 'feature' as origin \ - , remove_accents(target_name) as detail \ + , remove_accents(coalesce(target_name, '')) as detail \ , 'ch.swisstopo-karto.skitouren' as layer \ , quadindex(the_geom) as geom_quadindex \ , st_y(st_transform(st_centroid(the_geom),4326)) as lat \ @@ -150,9 +150,9 @@ source src_ch_swisstopo_karto_schneeschuhrouten : def_searchable_features sql_db = stopo_${DBSTAGING} sql_query = \ SELECT bgdi_id as id \ - , remove_accents(target_name) as label \ + , remove_accents(coalesce(target_name, '')) as label \ , 'feature' as origin \ - , remove_accents(target_name) as detail \ + , remove_accents(coalesce(target_name, '')) as detail \ , 'ch.swisstopo-karto.schneeschuhrouten' as layer \ , quadindex(the_geom) as geom_quadindex \ , st_y(st_transform(st_centroid(the_geom),4326)) as lat \