Oracle Solution for Error ora-13371

Solution for Oracle Error ORA-13371

ORA-13371: invalid position of measure dimension

What triggered the Error:

LRS measure dimension has to be after spatial dimensions. The position has to be either 3rd or 4th in the dim_info_array.

What should we do to fix it:

Check the geometry's gtype and its position in the dim_info_array.