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!

How do I remove inner rings from a complex geometry of SDO_GEOMETRY type

690485Jun 22 2011 — edited Jun 30 2011
Hi All,

I am just looking out for a best way to remove inner rings from a complex geometry of SDO_GEOMETRY using ORACLE packages. I have a complex geometry called MAINGEOM which is having two disjoint elements ELEM1, ELEM2 and each element will have a hole/inner ring completely inside the ELEM1 and ELEM2 respectively.

I just wanted to remove the two holes/inner rings from each ELEMs.

Initially, I have planned to collect all individual rings which are not inside the element using SDO_UTIL.EXTRACT and collecting them into a collection and subsequently appending all of them to the first element in the collection to prepare a new geometry.

FOR rec in c1
LOOP
new_g := SDO_UTIL.APPEND(new_g, rec.GEOM);
END LOOP;

I feel, this a crude way of solving the problem. I doubt that there should be an existing SDO packages to remove the inner/required rings/elements.

Can anyone please help me to solve this problem and let me know if further information is required.

Regards,
Kumar
This post has been answered by Siva Ravada-Oracle on Jun 22 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 28 2011
Added on Jun 22 2011
12 comments
3,597 views