Oracle Solution for Error ora-13028

Solution for Oracle Error ORA-13028

ORA-13028: Invalid Gtype in the SDO_GEOMETRY object

What triggered the Error:

There is an invalid SDO_GTYPE in the SDO_GEOMETRY object.

What should we do to fix it:

Verify that the geometries have valid gtypes.