Similar to my comment on `Geometry`, creating a `GeometryAttribute` instance in this way does not make any sense to me.  The `options` parameter already matches the `GeoetryAttribute` interface so you gain nothing from the `new` operation.  You could remove `new GeometryAttribute` from this example (along with the parentheses) and everything will still work.  The two options for fixing this are to either not use an options object and instance take 4 parameters; or simple document `GeometryAttribute` as a non-creatable interface.