Skip to content

Commit

Permalink
BGDIDIC-2643: add ch.bafu.fauna-wildtierpassagen
Browse files Browse the repository at this point in the history
  • Loading branch information
faselm committed Aug 29, 2023
1 parent 001cae9 commit 9a670d1
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions conf/bafu.conf.part
Original file line number Diff line number Diff line change
Expand Up @@ -1227,6 +1227,24 @@ source src_ch_bafu_klima_co2_ausstoss_gebaeude : def_searchable_features
from klima.co2_ausstoss_gebaeude
}

source src_ch_bafu_fauna_wildtierpassagen : def_searchable_features
{
sql_db = bafu_${DBSTAGING}
sql_query = \
SELECT bgdi_id as id \
, name as label \
, 'feature' as origin \
, remove_accents(name) as detail \
, 'ch.bafu.fauna-wildtierpassagen' 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 \
, egid::text as feature_id \
from fauna.wildtierpassagen
}

## INDICES

index ch_bafu_hydrologie_wassertemperaturmessstationen
Expand Down Expand Up @@ -1639,3 +1657,9 @@ index ch_bafu_klima_co2_ausstoss_gebaeude : ch_bafu_hydrologie_wassertemperaturm
source = src_ch_bafu_klima_co2_ausstoss_gebaeude
path = /var/lib/sphinxsearch/data/index/ch_bafu_klima_co2_ausstoss_gebaeude
}

index ch_bafu_fauna_wildtierpassagen : ch_bafu_hydrologie_wassertemperaturmessstationen
{
source = src_ch_bafu_fauna_wildtierpassagen
path = /var/lib/sphinxsearch/data/index/ch_bafu_klima_co2_ausstoss_gebaeude
}

0 comments on commit 9a670d1

Please sign in to comment.