Oracle Error ORA-13364: layer dimensionality does not match geometry dimensions

Oracle Error Message

ORA-13364: layer dimensionality does not match geometry dimensions

Reason for the Error

The spatial layer has a geometry with a different dimensions than the dimensions specified for the layer.

Solution

Make sure that all geometries in a layer have the same dimensions and that they match the dimensions in the SDO_DIM_ARRAY object for the layer in the USER_SDO_GEOM_METADATA view.