Oracle Error Message
ORA-54538: unexpected gtype
Reason for the Error
The gtype of the geometry was not GTYPE_SOLID, GTYPE_SURFACE, GTYPE_CURVE or GTYPE_POINT.
Solution
Correct the elemInfo array to fix any invalid gtype and etypes that violate the geometry hierarchy.