Skip to content

Commit fd5ed7f

Browse files
author
Gilbert Jeiziner
authored
Merge pull request #307 from geoadmin/dev_ltclm_plz
intersect plz polygon geometry with canton geometry
2 parents b8b93f7 + 55719a4 commit fd5ed7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conf/search.conf.part

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ source src_zipcode : src_swisssearch
235235
gid as id \
236236
, os_uuid::text as feature_id \
237237
, plz::text as detail \
238-
, '<b>'||coalesce(plz::text,'')||' - '||coalesce(langtext,'')||' ('||coalesce((SELECT ak from tlm.swissboundaries_kantone k where st_intersects(ST_PointOnSurface(p.the_geom),k.the_geom)),'')||')</b>' as label \
238+
, '<b>'||coalesce(plz::text,'')||' - '||coalesce(langtext,'')||' ('||coalesce((select array_to_string(array_agg(ak order by st_area(st_intersection(p.the_geom,k.the_geom))desc),',') FROM tlm.swissboundaries_kantone k WHERE st_intersects(p.the_geom,k.the_geom)),'')||')</b>' as label \
239239
, 'zipcode' as origin \
240240
, quadindex(the_geom) as geom_quadindex \
241241
, box2d(the_geom) as geom_st_box2d\

0 commit comments

Comments
 (0)