view schema/updates/1426/02.configure_wms-t.sql @ 5016:cf25b23e3eec

Keep historic data of waterway axis ... and accordingly configure the respective layer as WMS-T.
author Tom Gottfried <tom@intevation.de>
date Fri, 13 Mar 2020 17:34:59 +0100
parents
children
line wrap: on
line source

UPDATE sys_admin.published_services
    SET
        srid = 4326,
        key_column = 'id',
        wmst_attribute = 'valid_from',
        wmst_end_attribute = 'valid_to',
        view_def = $$
            SELECT id,
                lower(validity) AS valid_from,
                COALESCE(upper(validity), current_timestamp) AS valid_to,
                wtwaxs,
                objnam,
                nobjnam
            FROM waterway.waterway_axis
            $$
    WHERE schema = 'waterway' AND name = 'waterway_axis';