Skip to content

Commit

Permalink
BGDIDIC-403: add new attributes gpstime_min and gpstime_max
Browse files Browse the repository at this point in the history
  • Loading branch information
ltclm committed Dec 2, 2024
1 parent 6e49d84 commit 077c534
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion chsdi/models/vector/stopo.py
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,8 @@ class GridstandSwisssurface3d(Base, Vector):
__template__ = 'templates/htmlpopup/swisssurface3d.mako'
__label__ = 'id'
id = Column('tilekey', Unicode, primary_key=True)
temporalkey = Column('temporalkey', Integer)
gpstime_min = Column('gpstime_min', Integer)
gpstime_max = Column('gpstime_max', Integer)
the_geom = Column(Geometry2D)

register('ch.swisstopo.swisssurface3d.metadata', GridstandSwisssurface3d)
Expand Down
3 changes: 2 additions & 1 deletion chsdi/templates/htmlpopup/swisssurface3d.mako
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@

<%def name="table_body(c, lang)">
<tr><td class="cell-left">${_('ch.swisstopo.swisssurface3d.metadata.tilekey')}</td> <td>${c['id'] or '-'}</td></tr>
<tr><td class="cell-left">${_('ch.swisstopo.swisssurface3d.metadata.temporalkey')}</td> <td>${c['attributes']['temporalkey'] or '-'}</td></tr>
<tr><td class="cell-left">${_('ch.swisstopo.swisssurface3d.metadata.gpstime_min')}</td> <td>${c['attributes']['gpstime_min'] or '-'}</td></tr>
<tr><td class="cell-left">${_('ch.swisstopo.swisssurface3d.metadata.gpstime_max')}</td> <td>${c['attributes']['gpstime_max'] or '-'}</td></tr>
</%def>

0 comments on commit 077c534

Please sign in to comment.