Skip to content

Commit 4326673

Browse files
author
Daujourdhui Simone simone.daujourdhui@swisstopo.ch
committed
sphinx for bikesharing
1 parent 1fcaabf commit 4326673

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

conf/uvek.conf.part

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,25 @@ source src_ch_bav_haltestellen-oev : def_searchable_features
5858
from bav.oev_haltestellen
5959
}
6060

61+
62+
source src_ch_bfe_bikesharing : def_searchable_features
63+
{
64+
sql_db = uvek_dev
65+
sql_query = \
66+
SELECT bgdi_id as id \
67+
, provider as label \
68+
, 'feature' as origin \
69+
, remove_accents(concat_ws(' ',provider,address)) as detail \
70+
, 'ch.bfe.bikesharing' as layer \
71+
, quadindex(the_geom) as geom_quadindex \
72+
, st_y(st_transform(st_ClosestPoint(the_geom,st_centroid(the_geom)),4326)) as lat \
73+
, st_x(st_transform(st_ClosestPoint(the_geom,st_centroid(the_geom)),4326)) as lon \
74+
, box2d(the_geom) as geom_st_box2d \
75+
, bgdi_id as feature_id \
76+
from bfe.bikesharing_station
77+
}
78+
79+
6180
source src_ch_astra_ivs-nat : def_searchable_features
6281
{
6382
sql_db = uvek_dev
@@ -1115,6 +1134,12 @@ index ch_astra_strassenverkehrszaehlung_messstellen-regional_lokal : ch_astra_iv
11151134
path = /var/lib/sphinxsearch/data/index/ch_astra_strassenverkehrszaehlung_messstellen-regional_lokal
11161135
}
11171136

1137+
index ch_bfe_bikesharing : ch_astra_ivs-nat
1138+
{
1139+
source = src_ch_bfe_bikesharing
1140+
path = /var/lib/sphinxsearch/data/index/ch_bfe_bikesharing
1141+
}
1142+
11181143
index ch_astra_unfaelle-personenschaeden_motorraeder : ch_astra_ivs-nat
11191144
{
11201145
source = src_ch_astra_unfaelle-personenschaeden_motorraeder

0 commit comments

Comments
 (0)