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

BGDIDIC-642: add old feature ids to index #612

Merged
merged 1 commit into from
Mar 11, 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/lubis.conf.part
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ source src_ch_swisstopo_lubis_luftbilder_schraegaufnahmen : def_searchable_featu
SELECT row_number() OVER(ORDER BY ebkey asc) as id \
, concat_ws(' ',flightdate::date, ebkey::text) as label \
, 'feature' as origin \
, concat_ws(' ',flightdate::date, ebkey::text) as detail \
, concat_ws(' ',flightdate::date, ebkey::text, ebkey_old) as detail \
, 'ch.swisstopo.lubis-luftbilder_schraegaufnahmen' as layer \
, bgdi_quadindex as geom_quadindex \
, st_y(st_transform(st_centroid(the_geom),4326)) as lat \
Expand Down Expand Up @@ -81,7 +81,7 @@ source src_ch_swisstopo_lubis_luftbilder_infrarot: def_searchable_features_with_
sql_db = lubis_${DBSTAGING}
sql_query = \
SELECT row_number() OVER(ORDER BY ebkey asc) as id \
, concat(flugdatum, ' ', bildnummer, ' (', concat_ws(', ', ort, ebkey), ')' ) as label \
, concat(flugdatum, ' ', bildnummer, ' (', concat_ws(', ', ort, ebkey, ebkey_old), ')' ) as label \
, 'feature' as origin \
, remove_accents(concat_ws(' ', ebkey, ort)) as detail \
, 'ch.swisstopo.lubis-luftbilder_infrarot' as layer \
Expand Down Expand Up @@ -140,7 +140,7 @@ source src_ch_swisstopo_lubis_terrestrische_aufnahmen : def_searchable_features_
SELECT row_number() OVER(ORDER BY inventory_number asc) as id \
, lpad(bilder.inventory_number::text, 14, '0'::text) as label \
, 'feature' as origin \
, remove_accents(concat_ws(' ', inventory_number, image_number, station, operate_name, year)) as detail \
, remove_accents(concat_ws(' ', inventory_number, image_number, station, operate_name, year, inventarnummer_old)) as detail \
, 'ch.swisstopo.lubis-terrestrische_aufnahmen' as layer \
, bgdi_quadindex as geom_quadindex \
, st_y(st_transform(st_centroid(the_geom),4326)) as lat \
Expand All @@ -149,7 +149,7 @@ source src_ch_swisstopo_lubis_terrestrische_aufnahmen : def_searchable_features_
, box2d(st_transform(the_geom_hilight, 2056)) as geom_st_box2d_lv95 \
, year \
, lpad(bilder.inventory_number::text, 14, '0'::text)::text as feature_id \
FROM swisstopo_terrestrial.bilder
FROM swisstopo_terrestrial.view_bilder bilder
}

## INDICES
Expand Down
Loading