layout_by.cdata_general_transform_spec function

Use transform spec to layout data.