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!

Can both the SDO_POINT attribute and SDO_ELEM_INFO/SDO_ORDINATES be populated in the same geometry?

User_1871May 4 2022

The SDO_GEOMETRY object has these attributes:

 SDO_GTYPE NUMBER, 
 SDO_SRID NUMBER,
 SDO_POINT SDO_POINT_TYPE,
 SDO_ELEM_INFO SDO_ELEM_INFO_ARRAY,
 SDO_ORDINATES SDO_ORDINATE_ARRAY

Question: Can both the SDO_POINT attribute and SDO_ELEM_INFO/SDO_ORDINATES be populated in the same geometry?
For example, SDO_GEOMETRY(2002, NULL, SDO_POINT_TYPE(-79, 37, NULL), SDO_ELEM_INFO_ARRAY(1, 2, 1), SDO_ORDINATE_ARRAY(1, 2, 3, 4))

Or is it always either one or the other?
SDO_GEOMETRY(2002, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1), SDO_ORDINATE_ARRAY(1, 2, 3, 4))
—or—
SDO_GEOMETRY(2001, NULL, SDO_POINT_TYPE(-79, 37, NULL), NULL, NULL)
Thanks.

This post has been answered by _jum on May 4 2022
Jump to Answer
Comments
Post Details
Added on May 4 2022
3 comments
177 views