This runs on a restored dird_db
from a Docker container, postgis:postgis/14-3.2; I run this as docker run -P ghcr.io/joshbrooks/openly_dird_prod
Pervious versions of postgis run into trouble on the topology building
First create the SimplifyEdgeGeom function: (https://gist.github.com/leplatrem/5729022)
This wraps ST_ChangeEdgeGeom
in error handling in cases of ugliness