Could consider reusing *_get_xy_dim_coords* here