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

Update stopo.conf.part #620

Merged
merged 1 commit into from
Jun 10, 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
8 changes: 4 additions & 4 deletions conf/stopo.conf.part
Original file line number Diff line number Diff line change
Expand Up @@ -951,10 +951,10 @@ source src_ch_swisstopo_geologie_hartsteinabbau : def_searchable_features
sql_db = stopo_${DBSTAGING}
sql_query = \
WITH data as ( \
SELECT bgdi_id, obname, cpkind, the_geom from geol.hartstein_production UNION ALL \
SELECT bgdi_id, obname, cpkind, the_geom from geol.hartstein_mining \
SELECT bgdi_hartstein_id, obname, cpkind, the_geom from geol.hartstein_production UNION ALL \
SELECT bgdi_hartstein_id, obname, cpkind, the_geom from geol.hartstein_mining \
) \
SELECT bgdi_id as id \
SELECT bgdi_hartstein_id as id \
, obname as label \
, 'feature' as origin \
, remove_accents(concat_ws(' ', obname, cpkind)) as detail \
Expand All @@ -964,7 +964,7 @@ source src_ch_swisstopo_geologie_hartsteinabbau : def_searchable_features
, 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 as feature_id \
, bgdi_hartstein_id as feature_id \
from data
}

Expand Down
Loading