Skip to content

Commit

Permalink
Merge pull request #582 from geoadmin/feat-BGDIDIC-1596-geologie-rohs…
Browse files Browse the repository at this point in the history
…toffe

BGDIDIC-1596: update field names
  • Loading branch information
faselm authored Nov 16, 2023
2 parents 37861ee + c98aa54 commit dc8a3ca
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 @@ -273,17 +273,17 @@ source src_ch_swisstopo_geologie_rohstoffe_zement_abbau_verarbeitung : def_searc
{
sql_db = stopo_${DBSTAGING}
sql_query = \
SELECT obid::bigint as id \
SELECT bgdi_id as id \
, obname as label \
, 'feature' as origin \
, remove_accents(concat_ws(' ', obname, tckinds, ltkinds, emkinds, pckind)) as detail \
, remove_accents(concat_ws(' ', obname, cpkind)) as detail \
, 'ch.swisstopo.geologie-rohstoffe-zement_abbau_verarbeitung' 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 \
, obid::text as feature_id \
, bgdi_id::text as feature_id \
from geol.rohstoffe_zementabbauverarbeitung
}

Expand Down Expand Up @@ -312,7 +312,7 @@ source src_ch_swisstopo_geologie_rohstoffe_ziegel_abbau : def_searchable_feature
SELECT bgdi_id as id \
, obname as label \
, 'feature' as origin \
, remove_accents(concat_ws(' ', obname, tckinds, ltkinds)) as detail \
, remove_accents(concat_ws(' ', obname, cpkind)) as detail \
, 'ch.swisstopo.geologie-rohstoffe-ziegel_abbau' as layer \
, quadindex(the_geom) as geom_quadindex \
, st_y(st_transform(st_centroid(the_geom),4326)) as lat \
Expand Down

0 comments on commit dc8a3ca

Please sign in to comment.