Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BGDIDIC-2865: Notfalltreffpunkte #631

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions conf/vbs.conf.part
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,24 @@ source src_ch_babs_kulturgueter : def_searchable_features
from babs.kgs
}

source src_ch_babs_notfalltreffpunkte : def_searchable_features
{
sql_db = vbs_${DBSTAGING}
sql_query = \
SELECT ntp_id as id \
, ntp_id as label \
, 'feature' as origin \
, (concat_ws(' ',ntp_id, gebbezeichnung)) as detail \
, 'ch.babs.notfalltreffpunkte' 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 \
, ntp_id::text as feature_id \
from babs.notfalltreffpunkte
}

source src_ch_vbs_kataster_belasteter_standorte_militaer : def_searchable_features
{
sql_db = vbs_${DBSTAGING}
Expand Down Expand Up @@ -201,6 +219,12 @@ index ch_vbs_kataster_belasteter_standorte_militaer : ch_babs_kulturgueter
path = /var/lib/sphinxsearch/data/index/ch_vbs_kataster_belasteter_standorte_militaer
}

index ch_vbs_notfalltreffpunkte : ch_babs_kulturgueter
{
source = src_ch_babs_notfalltreffpunkte
path = /var/lib/sphinxsearch/data/index/ch_vbs_notfalltreffpunkte
}

index ch_vbs_armeelogistikcenter : ch_babs_kulturgueter
{
source = src_ch_vbs_armeelogistikcenter
Expand Down