Whilst updating the flood summary tables I encounter the following error
ERROR: lwgeom_difference: GEOS Error: TopologyException: Input geom 0 is invalid: Ring Self-intersection at or near point 107.32477300000005 -6.2842763999999534 at 107.32477300000005 -6.2842763999999534
gis=#
Solution
I have tried to use ST_MakeValid on the flooded_area geometry and still, it didn't work. Maybe we need to do the same for osm_tables.
Write a trigger function to update the geometries
Problem
Whilst updating the flood summary tables I encounter the following error
ERROR: lwgeom_difference: GEOS Error: TopologyException: Input geom 0 is invalid: Ring Self-intersection at or near point 107.32477300000005 -6.2842763999999534 at 107.32477300000005 -6.2842763999999534 gis=#
Solution
I have tried to use ST_MakeValid on the flooded_area geometry and still, it didn't work. Maybe we need to do the same for osm_tables. Write a trigger function to update the geometries