Skip to content

Commit d4bd29b

Browse files
authored
Merge pull request #616 from geoadmin/develop-2024-05-15
New Release 2024-05-15-rc1
2 parents a1cf84f + 7abc009 commit d4bd29b

File tree

2 files changed

+9
-34
lines changed

2 files changed

+9
-34
lines changed

conf/edi.conf.part

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,6 @@ source src_ch_bfs_generalisierte_grenzen_agglomerationen_g1 : def_searchable_fea
1919
}
2020

2121

22-
source src_ch_bfs_generalisierte_grenzen_agglomerationen_g2 : def_searchable_features
23-
{
24-
sql_db = edi_${DBSTAGING}
25-
sql_query = \
26-
SELECT bgdi_id::bigint as id \
27-
, gmd_name as label \
28-
, 'feature' as origin \
29-
, remove_accents(concat_ws(' ',gmd_name,gmd_nr::text,aname,acode::text)) as detail \
30-
, 'ch.bfs.generalisierte-grenzen_agglomerationen_g2' as layer \
31-
, quadindex(the_geom) as geom_quadindex \
32-
, st_y(st_transform(st_centroid(the_geom),4326)) as lat \
33-
, st_x(st_transform(st_centroid(the_geom),4326)) as lon \
34-
, box2d(st_transform(the_geom, 21781)) as geom_st_box2d \
35-
, box2d(st_transform(the_geom, 2056)) as geom_st_box2d_lv95 \
36-
, bgdi_id::text as feature_id \
37-
from bfs.gen_grenzen_agglo_g2
38-
}
39-
40-
4122
source src_ch_bfs_landschaftswandel : def_searchable_features
4223
{
4324
sql_db = edi_${DBSTAGING}
@@ -168,12 +149,6 @@ index ch_bfs_generalisierte_grenzen_agglomerationen_g1
168149
expand_keywords = 1
169150
}
170151

171-
index ch_bfs_generalisierte_grenzen_agglomerationen_g2 : ch_bfs_generalisierte_grenzen_agglomerationen_g1
172-
{
173-
source = src_ch_bfs_generalisierte_grenzen_agglomerationen_g2
174-
path = /var/lib/sphinxsearch/data/index/ch_bfs_generalisierte_grenzen_agglomerationen_g2
175-
}
176-
177152
index ch_bfs_landschaftswandel : ch_bfs_generalisierte_grenzen_agglomerationen_g1
178153
{
179154
source = src_ch_bfs_landschaftswandel

conf/search.conf.part

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -288,25 +288,25 @@ source src_zipcode : src_swisssearch
288288
sql_db=stopo_${DBSTAGING}
289289
sql_query = \
290290
SELECT \
291-
gid as id \
291+
os_uuid::int as id \
292292
, os_uuid::text as feature_id \
293293
, plz::text as detail \
294294
, concat('<b>', plz, ' - ', trim(langtext), '</b>') as label \
295295
, NULL as objectclass \
296296
, 'zipcode' as origin \
297297
, quadindex(the_geom) as geom_quadindex \
298298
, box2d(st_transform(the_geom, 21781)) as geom_st_box2d \
299-
, box2d(st_transform(the_geom, 2056)) as geom_st_box2d_lv95 \
299+
, box2d(the_geom) as geom_st_box2d_lv95 \
300300
, 1::integer as rank \
301-
, st_y(st_transform(st_setsrid(st_point(label_x,label_y),2056),21781)) as x \
302-
, st_x(st_transform(st_setsrid(st_point(label_x,label_y),2056),21781)) as y \
303-
, st_y(st_transform(st_setsrid(st_point(label_x,label_y),2056),2056)) as x_lv95 \
304-
, st_x(st_transform(st_setsrid(st_point(label_x,label_y),2056),2056)) as y_lv95 \
305-
, st_y(st_transform(st_setsrid(st_point(label_x,label_y),2056),4326)) as lat \
306-
, st_x(st_transform(st_setsrid(st_point(label_x,label_y),2056),4326)) as lon \
301+
, st_y(st_transform(ST_PointOnSurface(the_geom),21781)) as x \
302+
, st_x(st_transform(ST_PointOnSurface(the_geom),21781)) as y \
303+
, st_y(ST_PointOnSurface(the_geom)) as x_lv95 \
304+
, st_x(ST_PointOnSurface(the_geom)) as y_lv95 \
305+
, st_y(st_transform(ST_PointOnSurface(the_geom),4326)) as lat \
306+
, st_x(st_transform(ST_PointOnSurface(the_geom),4326)) as lon \
307307
, -1 as zoomlevel \
308308
, 1 as num \
309-
FROM vd.gabmo_plz p
309+
FROM vd.amtovz_ortschaften p
310310
}
311311

312312
source src_haltestellen : src_swisssearch

0 commit comments

Comments
 (0)