Oracle Error ORA-13371: invalid position of measure dimension

Oracle Error Message

ORA-13371: invalid position of measure dimension

Reason for 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.

Solution

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