The traversedArea function returns the region the moving body covers over the trgeometry's time domain: the placements it takes, or the union of them when the function is asked for it.
Return the area traversed by the temporal rigid geometry
traversedArea(trgeometry,unary_union boolean=false) → geometry
SELECT ST_AsText(traversedArea( trgeometry 'Polygon((0 0,1 0,1 1,0 1,0 0)); [Pose(Point(0 0), 0.0)@2001-01-01, Pose(Point(10 0), 0.0)@2001-01-02]')); -- MULTIPOLYGON(((0 0,1 0,1 1,0 1,0 0)),((10 0,11 0,11 1,10 1,10 0))) SELECT ST_AsText(traversedArea( trgeometry 'Polygon((0 0,1 0,1 1,0 1,0 0)); [Pose(Point(0 0), 0.0)@2001-01-01, Pose(Point(10 0), 0.0)@2001-01-02]', true)); -- POLYGON((0 0,0 1,11 1,11 0,0 0))
The argument is false unless it is given, and the function then answers the placements themselves gathered into one geometry, a multipolygon for a body that is a polygon, which is what a caller that does its own post-processing wants. With unary_union = true they are dissolved into the region they cover, which a sequence set covers within each of its sequences and nowhere in the gaps between them.
Sampling note: the merged form of a convex body that translates is exact. Where the body turns, it is read at placements no more than 0.05 radians of turn apart, and nearer where it travels far while it turns, each vertex moving along the chord of its arc between two of them. The region then holds only ground the body covers and leaves out the bulge of the arcs past their chords: over a corpus of turning bodies, at most 5.8e-4 of the diameter of the body.
The merged form of a value in three dimensions is the ground the body covers, with no Z: what each face sweeps on the ground between two placements the body translates between, or what each face covers at each placement of a value in step or discrete interpolation. The merged form of such a value that turns in linear interpolation is not yet supported.
The merged form of a body that is a polygon not convex, concave or with holes, that translates in linear interpolation is exact: the ground its placements cover and what the edges of its rings sweep between two of them, a point of a hole being covered where a wall of the body crosses it. Such a body that turns in linear interpolation is not yet supported: it sweeps more ground than its placements cover and less than their hull.
Return the space-time volume of the temporal rigid geometry, the integral of the area of its body over the time
spaceTimeVolume(trgeometry) → float
A rigid motion keeps the area of the body, so the volume is the area of the reference geometry times the time the value holds, whatever the motion. The time is read in microseconds, as integral reads it, so the result is in the square units of the body times microseconds. A value of instants has a volume of zero; a value with Z coordinates is refused.
SELECT spaceTimeVolume(trgeometry 'Polygon((0 0,1 0,1 1,0 1,0 0)); [Pose(Point(0 0),0)@2026-01-01, Pose(Point(2 0),1)@2026-01-02]') / (24 * 3600 * 1e6); -- 1