@@ -288,25 +288,25 @@ source src_zipcode : src_swisssearch
288
288
sql_db=stopo_${DBSTAGING}
289
289
sql_query = \
290
290
SELECT \
291
- gid as id \
291
+ os_uuid::int as id \
292
292
, os_uuid::text as feature_id \
293
293
, plz::text as detail \
294
294
, concat('<b>', plz, ' - ', trim(langtext), '</b>') as label \
295
295
, NULL as objectclass \
296
296
, 'zipcode' as origin \
297
297
, quadindex(the_geom) as geom_quadindex \
298
298
, 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 \
300
300
, 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 \
307
307
, -1 as zoomlevel \
308
308
, 1 as num \
309
- FROM vd.gabmo_plz p
309
+ FROM vd.amtovz_ortschaften p
310
310
}
311
311
312
312
source src_haltestellen : src_swisssearch
0 commit comments