Skip to content

Commit

Permalink
Merge pull request #620 from geoadmin/data_BGDIDIC-2829_stable_id
Browse files Browse the repository at this point in the history
Update stopo.conf.part
  • Loading branch information
ltclm committed Jun 10, 2024
2 parents fad1aa9 + 162a075 commit 8c3fe0a
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit 8c3fe0a

Please sign in to comment.