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

Feat bgdidic 2841 tektonische karte #622

Merged
merged 3 commits into from
Jun 24, 2024
Merged
Changes from 2 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
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 bgdi_id 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 \
, bgdi_id::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 bgdi_id 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 \
, bgdi_id::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
}
Loading