Ticket #806 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

Optimize Geometry(TopoGeometry) for polygons

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

Description

Current TopoGeometry::Geometry cast makes an ST_Union of the geometry obtained with each face. Instead, it could apply the BuildArea? directly on the set of edges referencing all the faces composing the TopoGeometry.

In addition to skip the union and passing everything to BuildArea? we'd have another advantage in that we could skip edges having one of the TopoGeometry faces on _both_ sides as those edges would dissolve in the output anyway.

Change History

Changed 2 years ago by strk

  • status changed from new to closed
  • resolution set to fixed

So, at a closer look it turned out the bottleneck was on fetching edges composing faces rather than polygonizing them. Creating indexes on "left_face" and "right_face" speeded things up by a factor of 10. r6822 adds index creation to CreateTopology?.

Note: See TracTickets for help on using tickets.