Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Query a Point - Return Orientation / Bearing / Rotation - How to ?

user552932Jan 12 2007 — edited Jan 15 2007
Can anyone possibly advise me how to correctly query a spatial point feature and return the angle of orientation?

I can use the following to return certain information but can not find any information on how to get at the angle of orientation.

SELECT a.ID, a.geometry1, sdo_util.EXTRACT (a.geometry1, 1)
FROM dfaiveg.gf_label a;

SELECT a.ID, a.geometry1, t.x, t.y
FROM dfaiveg.gf_label a, TABLE (sdo_util.getvertices (a.geometry1)) t;

These return the coordinates of the point geometry.

I would like to test the angle of orientation in a trigger or pl/sql and then correct the angle of orientation if it is meets certain criteria.

I am using Ora 9i (but could use Ora 10g if I had to - installation is not fully implemented)

Regards Adrian
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 12 2007
Added on Jan 12 2007
5 comments
2,324 views