The plan here is use Postgis Topology to resolve overlaps and gaps for a simple feature layer.
For the input
This function now depend on
git clone --recursive https://github.com/larsop/resolve-overlap-and-gap.git
cd resolve-overlap-and-gap make check
psql postgres -c "CREATE DATABASE aeg_02 template=template0;" psql aeg_02 -c "create extension pg_stat_statements; create extension postgis; create extension postgis_topology; create extension dblink;" psql aeg_02 -f ./src/test/sql/regress/resolve_overlap_and_gap-install.sql
The following is implemented