Skip to content

Commit

Permalink
Merge pull request #622 from geoadmin/feat-BGDIDIC-2841-tektonische_k…
Browse files Browse the repository at this point in the history
…arte

Feat bgdidic 2841 tektonische karte
  • Loading branch information
faselm authored Jun 24, 2024
2 parents b822b06 + ba1ab4f commit 86bfd58
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions conf/stopo.conf.part
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,42 @@ source src_ch_swisstopo_geologie_hartsteinabbau : def_searchable_features
from data
}

source src_ch_swisstopo_geologie_tektonische_karte_line : def_searchable_features
{
sql_db = stopo_${DBSTAGING}
sql_query = \
SELECT fid as id \
, name_de as label \
, 'feature' as origin \
, remove_accents(concat_ws(' ', name_de, name_fr, name_it, name_en)) as detail \
, 'ch.swisstopo.geologie-tektonische_karte' 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 \
, fid::text as feature_id \
from geol.tektonische_karte_line
}

source src_ch_swisstopo_geologie_tektonische_karte_unit : def_searchable_features
{
sql_db = stopo_${DBSTAGING}
sql_query = \
SELECT fid as id \
, tecto_3_de as label \
, 'feature' as origin \
, remove_accents(concat_ws(' ', tecto_3_de, tecto_3_fr, tecto_3_it, tecto_3_en, tecto_4_de, tecto_4_fr, tecto_4_it, tecto_4_en )) as detail \
, 'ch.swisstopo.geologie-tektonische_karte' 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 \
, fid::text as feature_id \
from geol.tektonische_karte_units
}

## INDICES

index ch_swisstopo_verschiebungsvektoren_tsp1
Expand Down Expand Up @@ -1291,3 +1327,15 @@ index ch_swisstopo_geologie_hartsteinabbau : ch_swisstopo_verschiebungsvektoren_
source = src_ch_swisstopo_geologie_hartsteinabbau
path = /var/lib/sphinxsearch/data/index/ch_swisstopo_geologie_hartsteinabbau
}

index ch_swisstopo_geologie_tektonische_karte_line : ch_swisstopo_verschiebungsvektoren_tsp1
{
source = src_ch_swisstopo_geologie_tektonische_karte_line
path = /var/lib/sphinxsearch/data/index/ch_swisstopo_geologie_tektonische_karte_line
}

index ch_swisstopo_geologie_tektonische_karte_unit : ch_swisstopo_verschiebungsvektoren_tsp1
{
source = src_ch_swisstopo_geologie_tektonische_karte_unit
path = /var/lib/sphinxsearch/data/index/ch_swisstopo_geologie_tektonische_karte_unit
}

0 comments on commit 86bfd58

Please sign in to comment.