Skip to content

Commit

Permalink
Merge pull request #4448 from geoadmin/develop-2024-10-09
Browse files Browse the repository at this point in the history
New Release 2024-10-09-rc1
  • Loading branch information
rebert authored Oct 8, 2024
2 parents 40d440f + 40837e6 commit 21f47ea
Show file tree
Hide file tree
Showing 53 changed files with 173 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-milestone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ jobs:
uses: geoadmin/.github/.github/workflows/create-milestone.yml@master
secrets: inherit
with:
ci_status_check_name: 'AWS CodeBuild eu-central-1 (mf-chsdi3)'
ci_status_check_name: 'AWS CodeBuild eu-central-1 (mf-chsdi3-pr)'
1 change: 1 addition & 0 deletions chsdi/models/vector/uvek.py
Original file line number Diff line number Diff line change
Expand Up @@ -4296,6 +4296,7 @@ class LadebedarfsweltLadepunkte:
allgemein_zugaenglich_anzahl_ladepunkte = Column('allgemein_zugaenglich_anzahl_ladepunkte', Float)
quartier_ac_ladepunkte = Column('quartier_ac_ladepunkte', Float)
zielort_ac_ladepunkte = Column('zielort_ac_ladepunkte', Float)
zielort_dc_50_ladepunkte = Column('zielort_dc_50_ladepunkte', Float)
quartier_dc_150_ladepunkte = Column('quartier_dc_150_ladepunkte', Float)
schnell_dc_150_ladepunkte = Column('schnell_dc_150_ladepunkte', Float)
schnell_dc_350_ladepunkte = Column('schnell_dc_350_ladepunkte', Float)
Expand Down
38 changes: 38 additions & 0 deletions chsdi/models/vector/vbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,44 @@ class BundestankstellenBebecoZoom2(Base, BundestankstellenBebeco, Vector):
register(BundestankstellenBebeco.__bodId__, BundestankstellenBebecoZoom2)


class Notfalltreffpunkte:
__tablename__ = 'v_notfalltreffpunkte'
__table_args__ = ({'schema': 'babs', 'autoload': False, 'extend_existing': True})
__template__ = 'templates/htmlpopup/notfalltreffpunkte.mako'
__bodId__ = 'ch.babs.notfalltreffpunkte'
__label__ = 'id'
__returnedGeometry__ = 'the_geom_point'
id = Column('ntp_id', Unicode, primary_key=True)
gebbezeichnung = Column('gebbezeichnung', Unicode)
strasse = Column('strasse', Unicode)
haus_nummer = Column('haus_nummer', Unicode)
plz = Column('plz', Integer)
ort = Column('ort', Unicode)
gemeinde = Column('gemeinde', Unicode)
kanton = Column('kanton', Unicode)
xkoord = Column('xkoord', Integer)
ykoord = Column('ykoord', Integer)
linkkanton = Column('linkkanton', Unicode)
linkbabs = Column('linkbabs', Unicode)
bemerkungen = Column('bemerkungen', Unicode)
the_geom_point = Column('the_geom', Geometry2D)


class NotfalltreffpunkteZoom1(Base, Notfalltreffpunkte, Vector):
__minscale__ = 1
__maxscale__ = 100000
the_geom = Column('the_geom_tooltip_2', Geometry2D)

register(NotfalltreffpunkteZoom1.__bodId__, NotfalltreffpunkteZoom1)


class NotfalltreffpunkteZoom2(Base, Notfalltreffpunkte, Vector):
__minscale__ = 100000
the_geom = Column('the_geom_tooltip', Geometry2D)

register(NotfalltreffpunkteZoom2.__bodId__, NotfalltreffpunkteZoom2)


class LogistikraeumeArmeelogistikcenter(Base, Vector):
__tablename__ = 'abschnittsregionen_armeelogistikzentren'
__table_args__ = ({'schema': 'militaer', 'autoload': False})
Expand Down
103 changes: 103 additions & 0 deletions chsdi/static/doc/source/releasenotes/index.rst

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions chsdi/templates/htmlpopup/bfe_ladebedarfswelt_ladepunkte.mako
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
<td class="cell-left-large">${_('ch.bfe.ladebedarfswelt-ladepunkte_bequem.Zielort_AC_Ladepunkte')}</td>
<td>${c['attributes']['zielort_ac_ladepunkte'] or '-'}</td>
</tr>
<tr>
<td class="cell-left-large">${_('ch.bfe.ladebedarfswelt-ladepunkte_bequem.Zielort_DC_50_Ladepunkte')}</td>
<td>${c['attributes']['zielort_dc_50_ladepunkte'] or '-'}</td>
</tr>
<tr>
<td class="cell-left-large">${_('ch.bfe.ladebedarfswelt-ladepunkte_bequem.Quartier_DC_150_Ladepunkte')}</td>
<td>${c['attributes']['quartier_dc_150_ladepunkte'] or '-'}</td>
Expand Down
3 changes: 1 addition & 2 deletions chsdi/templates/htmlpopup/lubis_schraegaufnahmen.mako
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ isStac = c['featureId'].startswith('lubis-luftbilder_schraegaufnahmen')
# there is no way to open to activate the orthophoto with the link parameters
if isStac:
dataGeoAdminHost = request.registry.settings['datageoadminhost']
asset_url=f"{dataGeoAdminHost}/{c['layerBodId']}/{c['featureId']}/{c['featureId']}.tif"
asset_url=f"{dataGeoAdminHost}/{c['layerBodId']}/{c['featureId']}/{c['featureId']}_2056.tif"
preview_url=f"{dataGeoAdminHost}/{c['layerBodId']}/{c['featureId']}/{c['featureId']}.jpg"
meta_csv_url=f"{dataGeoAdminHost}/{c['layerBodId']}/{c['featureId']}/{c['featureId']}.csv"
viewer_url=asset_url
Expand Down Expand Up @@ -166,7 +166,6 @@ if not isStac:
lang,
image_rotation)
viewer_url = get_viewer_url(request, params)
%>
% if isStac: # STAC Tooltips
Expand Down
3 changes: 1 addition & 2 deletions chsdi/templates/htmlpopup/lubis_terra.mako
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,8 @@ else:
%>
% if isStac: # STAC Tooltips
<tr><td class="cell-left">${_(tt_lubis_ebkey)}</td> <td>${c['attributes']['image_number'] or '-'}</td></tr>
<tr><td class="cell-left">${_(tt_lubis_ebkey)}</td> <td><a href="${asset_url}" target="_blank">${c['featureId'] or '-'}</a></td></tr>
<tr><td class="cell-left">${_('ch.swisstopo.lubis-terrestrische_aufnahmen.tt_lubis_aufnahmedatum')}</td><td>${datum or '-'}</td></tr>
<tr><td class="cell-left">${_('tt_lubis_bildpfad')}</td> <td>${c['attributes']['filename'] or '-'}</td></tr>
<tr><td class="cell-left">${_('ch.swisstopo.lubis-terrestrische_aufnahmen.operate_name')}</td> <td>${c['attributes']['ort'] or '-'}</td></tr>
<tr><td class="cell-left">${_('ch.swisstopo.lubis-terrestrische_aufnahmen.station')}</td> <td>${c['attributes']['station'] or '-'}</td></tr>
<tr><td class="cell-left">${_('tt_lubis_schraegaufnahmen_x')}</td> <td>${c['attributes']['x'] or '-'}</td></tr>
Expand Down
24 changes: 24 additions & 0 deletions chsdi/templates/htmlpopup/notfalltreffpunkte.mako
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<%inherit file="base.mako"/>

<%def name="table_body(c, lang)">
<% c['stable_id'] = True %>
<tr><td class="cell-left">${_('ch.babs.notfalltreffpunkte.ntp_id')}</td> <td>${c['featureId']}</td></tr>
<tr><td class="cell-left">${_('ch.babs.notfalltreffpunkte.gebbezeichnung')}</td> <td>${c['attributes']['gebbezeichnung']}</td></tr>
<tr><td class="cell-left">${_('ch.babs.notfalltreffpunkte.strasse')}</td> <td>${c['attributes']['strasse']}</td></tr>
<tr><td class="cell-left">${_('ch.babs.notfalltreffpunkte.haus_nummer')}</td> <td>${c['attributes']['haus_nummer']}</td></tr>
<tr><td class="cell-left">${_('ch.babs.notfalltreffpunkte.plz_ort')}</td><td>${c['attributes']['plz']}&nbsp;${c['attributes']['ort']}</td></tr>
<tr><td class="cell-left">${_('ch.babs.notfalltreffpunkte.gemeinde')}</td><td>${c['attributes']['gemeinde']}</td></tr>
<tr><td class="cell-left">${_('ch.babs.notfalltreffpunkte.kanton')}</td><td>${c['attributes']['kanton']}</td></tr>
<tr><td class="cell-left">${_('ch.babs.notfalltreffpunkte.koord')}</td><td>${c['attributes']['xkoord']},&nbsp;${c['attributes']['ykoord']}</td></tr>
% if c['attributes']['linkkanton'] is not None:
<tr><td class="cell-left">${_('ch.babs.notfalltreffpunkte.linkkanton')}</td><td><a href="${c['attributes']['linkkanton']}" target="_blank">${_('link')}</a></td></tr>
% else:
<tr><td class="cell-left">${_('ch.babs.notfalltreffpunkte.linkkanton')}</td><td>-</td></tr>
% endif
% if c['attributes']['linkbabs'] is not None:
<tr><td class="cell-left">${_('ch.babs.notfalltreffpunkte.linkbabs')}</td><td><a href="${c['attributes']['linkbabs']}" target="_blank">${_('link')}</a></td></tr>
% else:
<tr><td class="cell-left">${_('ch.babs.notfalltreffpunkte.linkbabs')}</td><td>-</td></tr>
% endif
<tr><td class="cell-left">${_('ch.babs.notfalltreffpunkte.bemerkungen')}</td><td>${c['attributes']['bemerkungen'] or "-"}</td></tr>
</%def>

0 comments on commit 21f47ea

Please sign in to comment.