The $flags argument, describing which fields in the geometry are valid, is optional. If omitted it will be inferred from the geometry itself.