Sofic subshifts and piecewise isometric systems