Opened 15 years ago
Closed 15 years ago
#354 closed enhancement (fixed)
ST_FlipCoordinates(geometry)
Reported by: | pramsey | Owned by: | pramsey |
---|---|---|---|
Priority: | low | Milestone: | PostGIS 2.0.0 |
Component: | postgis | Version: | master |
Keywords: | Cc: |
Description
Given POINT(Y,X) return POINT(X,Y). Ditto for all other types. Useful for people who have built latitude/longitude features and need to fix them.
Change History (2)
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Done as r5338 (Kind of easy homework achieved in the plane)
Note:
See TracTickets
for help on using tickets.
Until this gets implemented in C, this could be a simple SQL function wrapper.
It's been many years since I've done matrix algebra so I might not have this exactly right, but this does seem to work.
Note: anyone wishing to use ST_Affine to swap ordinates may need to push the results through ST_SnapToGrid since matrix computation is done on the coordinates.