Skip to content

Commit

Permalink
Merge pull request #547 from geoadmin/feat-BGDIDIC-2504-lebensraumkarte
Browse files Browse the repository at this point in the history
BGDIDIC-2504: add ch.bafu.lebensraumkarte-schweiz
  • Loading branch information
faselm authored Dec 1, 2022
2 parents 6891116 + 1744ec1 commit 6c3aec7
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 @@ -1173,6 +1173,24 @@ source src_ch_bafu_gewaesser_uferbestockung : def_searchable_features
from wasser.gewaesser_uferbestockung
}

source src_bafu_lebensraumkarte_schweiz : def_searchable_features
{
sql_db = bafu_${DBSTAGING}
sql_query = \
SELECT bgdi_id as id \
, polyid as label \
, 'feature' as origin \
, remove_accents(concat_ws(' ', polyid)) as detail \
, 'ch.bafu.lebensraumkarte-schweiz' 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 \
, bgdi_id::text as feature_id \
from lebensraumkarte.lebensraumkarte_schweiz
}

## INDICES

index ch_bafu_hydrologie_wassertemperaturmessstationen
Expand Down Expand Up @@ -1567,3 +1585,9 @@ index ch_bafu_gewaesser_uferbestockung : ch_bafu_hydrologie_wassertemperaturmess
source = src_ch_bafu_gewaesser_uferbestockung
path = /var/lib/sphinxsearch/data/index/ch_bafu_gewaesser_uferbestockung
}

index ch_bafu_lebensraumkarte_schweiz : ch_bafu_hydrologie_wassertemperaturmessstationen
{
source = src_bafu_lebensraumkarte_schweiz
path = /var/lib/sphinxsearch/data/index/ch_bafu_lebensraumkarte_schweiz
}

0 comments on commit 6c3aec7

Please sign in to comment.