From 94a1e26e9869ce951d67953b9e80de6822c4bfdd Mon Sep 17 00:00:00 2001 From: Tobias Reber Date: Fri, 25 Oct 2024 09:10:12 +0200 Subject: [PATCH] PB-1405: Added search for skitouren and snowshoeroutes --- conf/stopo.conf.part | 49 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/conf/stopo.conf.part b/conf/stopo.conf.part index 422862f..6346173 100644 --- a/conf/stopo.conf.part +++ b/conf/stopo.conf.part @@ -127,6 +127,42 @@ source src_ch_swisstopo_vec25_gewaessernetz_referenz : def_searchable_features FROM public.v25_gewaessernetz_ref } +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 \ + , 'feature' as origin \ + , remove_accents(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 \ + , st_x(st_transform(st_centroid(the_geom),4326)) as lon \ + , box2d(st_transform(the_geom, 21781)) as geom_st_box2d \ + , box2d(st_transform(the_geom, 2056)) as geom_st_box2d_lv95 \ + , route_uuid::text as feature_id \ + FROM karto.ski_routes +} + +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 \ + , 'feature' as origin \ + , remove_accents(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 \ + , st_x(st_transform(st_centroid(the_geom),4326)) as lon \ + , box2d(st_transform(the_geom, 21781)) as geom_st_box2d \ + , box2d(st_transform(the_geom, 2056)) as geom_st_box2d_lv95 \ + , route_uuid::text as feature_id \ + FROM karto.snowshoe_routes +} + source src_ch_swisstopo_geologie_gravimetrischer_atlas_messpunkte : def_searchable_features { sql_db = stopo_${DBSTAGING} @@ -1022,6 +1058,19 @@ index ch_swisstopo_landesschwerenetz : ch_swisstopo_verschiebungsvektoren_tsp1 path = /var/lib/sphinxsearch/data/index/ch_swisstopo_landesschwerenetz } +index swisstopo_karto_skitouren : ch_swisstopo_verschiebungsvektoren_tsp1 +{ + source = src_ch_swisstopo_karto_skitouren + path = /var/lib/sphinxsearch/data/index/swisstopo_karto_skitouren +} + +index ch_swisstopo_karto_schneeschuhrouten : ch_swisstopo_verschiebungsvektoren_tsp1 +{ + source = src_ch_swisstopo_karto_schneeschuhrouten + path = /var/lib/sphinxsearch/data/index/ch_swisstopo_karto_schneeschuhrouten +} + + index ch_swisstopo_verschiebungsvektoren_tsp2 : ch_swisstopo_verschiebungsvektoren_tsp1 { source = src_ch_swisstopo_verschiebungsvektoren_tsp2