Skip to content
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

Check if getStats() really needs instance id and layer id when StatAPI is used #232

Open
zcernigoj opened this issue Feb 13, 2023 · 0 comments

Comments

@zcernigoj
Copy link
Collaborator

Even when StatAPI is used for getting statistics, instanceId and layerId are still needed.
in layer.getStats(), there is getStatisticsProvider() for getting statistics provider and when StatAPI is used, StatisticalApi.getStats() calls layer.updateLayerFromServiceIfNeeded(), where instanceId and layerId are needed.

Is this really necessary? Can it be done to work just with evalscript and dataProduct like getMap()?

Related code lines:

await layer.updateLayerFromServiceIfNeeded(reqConfig);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant