May 2017
Beginner to intermediate
328 pages
7h 17m
English
As mentioned before, merging faces is done by deleting an edge, and merging edges is done with node deletion. Let's assume West and East Nulland have reunited. There are two standard functions for edge removal: the mutating topology.ST_RemEdgeModFace and immutable topology.ST_RemEdgeNewFaces.
These functions don't work when any of the faces are members of any TopoGeometry, so we have to delete them first. For learning purposes, let's delete the whole East Nulland row and clear a West Nulland's TopoGeometry:
DELETE FROM countries WHERE name='East Nulland'; UPDATE countries SET topogeom = topology.clearTopoGeom(topogeom) WHERE name='West Nulland';
Now change the underlying topology:
SELECT topology.ST_RemEdgeModFace('my_topology',4775); ...Read now
Unlock full access