Skip to content

Commit

Permalink
PB-1405: Added search for skitouren and snowshoeroutes
Browse files Browse the repository at this point in the history
  • Loading branch information
rebert committed Oct 28, 2024
1 parent 0b63267 commit 94a1e26
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions conf/stopo.conf.part
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 94a1e26

Please sign in to comment.