Opened 20 months ago

Closed 20 months ago

Last modified 20 months ago

#5183 closed enhancement (fixed)

topology.RemoveUnusedPrimitives(topology, bbox) function

Reported by: strk Owned by: strk
Priority: medium Milestone: PostGIS 3.3.0
Component: topology Version:
Keywords: Cc:


It is sometimes useful to cleanup the topology by removing unused primitives (edges not binding areal TopoGeometries, nodes not binding lineal TopoGeometries).

This is for example implemented in QGIS PostGIS Topology Editor plugin:

And is implemented in NIBIO's topo_update extension:

This ticket is to expose such a function in core PostGIS Topology for reuse by others.

See also #5180 for exposing a part of this function but specifically for edges only

Change History (4)

comment:1 by strk, 20 months ago

Milestone: PostGIS Fund MePostGIS 3.3.0
Status: newassigned

comment:3 by Sandro Santilli <strk@…>, 20 months ago

Resolution: fixed
Status: assignedclosed

In 2f915e1/git:

Implement topology.RemoveUnusedPrimitives

Closes #5183

Includes tests, docs and NEWS entry

comment:5 by strk, 20 months ago

In case someone landed here following the commit log in [ab58faa8bf7b95187d74179e78946e2284fb8b85/git] .. that commit log was bogus, the actual bug being fixed with that was #5185

Note: See TracTickets for help on using tickets.