Ticket #1251 (closed enhancement: fixed)
Enhance ST_Rotate by adding offset origin parameters
| Reported by: | mwtoews | Owned by: | pramsey |
|---|---|---|---|
| Priority: | medium | Milestone: | PostGIS 2.0.0 |
| Component: | postgis | Version: | trunk |
| Keywords: | Cc: |
Description
Provide ST_Rotate functions that allow offset origin parameters. The current/default rotation behaviour, rotates geometries from the origin POINT(0 0), which has limitations with geographic or UTM coordinates. This enhancement is to allow the reference origin point to be specified as either a POINT geometry or a set of X and Y coordinate values:
ST_Rotate(geometry geomA, float8 rotRadians, float8 x0, float8 y0); ST_Rotate(geometry geomA, float8 rotRadians, geometry pointOrigin);
Functions, such as ST_MinimumBoundingCircle can be updated to use the new functionality, as it currently uses a more complicate method with multiple subcalls to ST_Affine.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

