Mercurial > gemma
view schema/updates/1426/02.configure_wms-t.sql @ 5559:ce9a9a1bf92f
Make invalid output of ISRSrange_area() less likely, next try
Since ST_MakeValid() might return a collection of lower-to-equal dimension
geometries, distill only the polygons from it. This should prevent
respective errors when trying to save the result to a column of type
MultiPolygon.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 02 Dec 2021 12:37:33 +0100 |
parents | cf25b23e3eec |
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';