strk/postgis — pull request #1 by mwtoews (2011-10-24 12:31:00+00:00)
Title: Enhance ST_Rotate by adding offset origin parameters

First, the synonym for ST_Rotate is swapped with ST_RotateZ, so that ST_Rotate can be extended to allow offset origin parameters. The default rotation behaviour, as with previous versions, will rotate a geometry from the origin POINT(0 0), which has limitations with geographic or UTM coordinates. This enhancement allows the reference origin point to be specified as either a POINT geometry or a set of X and Y coordinate values:

*New* functions:
ST_Rotate(geometry geomA, float8 rotRadians, float8 x0, float8 y0);
ST_Rotate(geometry geomA, float8 rotRadians, geometry pointOrigin);

ST_MinimumBoundingCircle is updated to use the new functionality, as it was using a more complicate method with multiple subcalls to ST_Affine.