-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to augment featureServer capabilities ouput #588
Comments
@efbenson - I see your need for some additional methods. One issue though is that these methods are coupled to FeatureServer output, which is just one of many possible Koop output-plugins. Other output plugins aren't concerned with generating server info, layer info, or relatedFeatureLayerInfo. So if they can be generalized, that's better. This means generalizing the names as well as the parameters; There is a one-one relationship between supported provider methods and supported output-plugin methods. If you look at the internals, you will see that invocation of one of the output methods ends up calling one of the provider methods:
the
These would be pretty major changes to FeatureServer. I think they would be good, but definitely a major undertaking. |
@rgwozdz yep that makes total sense, I forgot there are uses for koop other than feature server 😄 . I am routing all those methods inside my getData, but I thoughtit would be helpful to call them out. If I make any progress with applyEdits ill let you know. |
As far as augmenting FeatureServer capabilities, there is a pathway now. See my comment on #599 for an example. Going to close this issue, since augmentation is possible now. Granted, not all properties are overridable out of the box, so you would need to PR additions. Might be nice to generalize it so that wasn't necessary, but having validation for override value...is valuable. |
I am looking into some preliminary ways to add apply edits to a provider, but there is no easy way to augment the supported capabilities in the featureServer info endpoint. It would be nice if there was a way to enrich/change that as needed. To that point with implementing the related layers in our provider I have some recommendations on simplfiing the workflow for implementing custom providers. Right now all that is handed in the getData function with different data returned based on the use case. Splitting up the functions bases on purpose would also help with adding typing.
The text was updated successfully, but these errors were encountered: