Role of boundary measurements in curvature sensing