I need to find the centroid of a polygon in Oracle Spatial that exists inside of the polygon itself. I cannot use the sdo_geom.sdo_centroid method because this returns a point outside of the shape if the shape resembles a horseshoe.
I found sdo_geom.sdo_pointonsurface method, but it returns a point that is just on the edge of the polygon. While this mathematically works, it is not safe in our environment because all polygons share a boundary with other polygons and sometimes there is a slight overlap in the data. This overlap cannot include the calculated point.
Is there another approach to finding this point without writing custom code? I'm not opposed to writing custom code for this, but I would like to use something pre-built if it already exists.
Thanks!