-
Notifications
You must be signed in to change notification settings - Fork 72
Remove GeometryServiceProvider.Instance #53
Comments
Copying some comments here. @bricelam said:
@roji said:
|
Just to add a few more comments, continuing the discussion with @bricelam cited above... I think it may make sense to retain
While I agree that responsibilities around setting I may have missed some issues/complexities that |
The idea behind this one is that I expect everybody who currently uses
With #70, the case is even easier to make because the two types are going to be right next to each other. |
With |
This is somewhat related to #30, but that issue is very broad, so I wanted to give this its own arena for discussion.
GeometryServiceProvider.Instance
isn't actually used anywhere in GeoAPI itself. Its sole purpose seems to be a common point of reference for downstream consumers.This sounds neat, but it creates some problems:
In the face of all those problems, the practical benefits are questionable. I may have to eat my words on this, but in its current state, I find it difficult to imagine a particularly useful project that depends on
GeoAPI.Core
without also depending on something more concrete, such asNetTopologySuite.Core
. So if there is, in fact, a need for a global default instance, then it could just as easily beNtsGeometryServices.Instance
or something similar.In a post-#30 world, there may be a use for having GeoAPI export a global variable that can be used as a default to reduce the friction of the API, depending on how the architecture looks in the end, but right now I feel that it doesn't add enough value on top of
NtsGeometryServices.Instance
to be worth keeping around (for reasons other than backwards-compatibility).The text was updated successfully, but these errors were encountered: