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

Allow point sampling raster values from Cesium map #2240

Closed
iannesbitt opened this issue Dec 21, 2023 · 4 comments
Closed

Allow point sampling raster values from Cesium map #2240

iannesbitt opened this issue Dec 21, 2023 · 4 comments
Labels
cesium DRP Issues related to the Defense Resiliency Platform duplicate enhancement Priority: High Requested by: Hosted repo Features requested by a DataONE hosted repository

Comments

@iannesbitt
Copy link
Contributor

Describe the feature you'd like
Vector features are already selectable and bring up a box with attribute information. The same should happen when the user clicks on a visible raster layer.
Probably the way this should work is that all visible raster layers will report sample values at the chosen point. This way, the user (and the developer) avoids having to work around the problem of "visibility" which may complicate their understanding of sampling just the "top" layer. Plus, until TOC layers are reorderable (#1769), this would be a way of reporting cell values that are unbiased by their ordering in the TOC, which is largely arbitrary.

Is your feature request related to a problem? Please describe.
Feedback from the DRP meeting is that people don't know what to do with the raster layers that have been added. They look good and behave in the way they expect, but generally they are only good for visualization at the moment. They should instead be useful as "decisionmaking tools" as well, i.e. they should be able to convey some quantitative data when the user selects certain locations.

Additional context
Similar to this view but with one value per visible raster layer, separated by layer name, perhaps with a lat/lon sample location at the top.
Screen Shot 2023-12-21 at 15 40 55

@iannesbitt iannesbitt added enhancement Priority: High Requested by: Hosted repo Features requested by a DataONE hosted repository cesium DRP Issues related to the Defense Resiliency Platform labels Dec 21, 2023
@robyngit
Copy link
Member

robyngit commented Jan 2, 2024

Probably the way this should work is that all visible raster layers will report sample values at the chosen point.

To obtain point information from our raster layers, we will need some sort of backend service. The service will need to be queryable for a given location, and will need to return actual data values from the raster datasets. The browser currently only has access to the PNG representation of the raster data.

There is a standardized approach to this outlined in WMS: the 'GetFeatureInfo' request can be used to retrieve information about particular points on a raster layer. When a user clicks a point on the map, the coordinates are sent to the server via a GetFeatureInfo request, and the server returns information about the raster cell at that location.

@iannesbitt do you think that issue #2190 is a duplicate of what you are describing here, or are there additional/different features DRP is requesting that are not covered there?

@iannesbitt
Copy link
Contributor Author

Yes, it is! Sorry, thank you for pointing that out. Should I close as duplicate?

@iannesbitt
Copy link
Contributor Author

Closing as duplicate.

@iannesbitt iannesbitt closed this as not planned Won't fix, can't repro, duplicate, stale Jan 2, 2024
@robyngit
Copy link
Member

robyngit commented Jan 3, 2024

Thanks @iannesbitt! I transferred your comments over to that issue for additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cesium DRP Issues related to the Defense Resiliency Platform duplicate enhancement Priority: High Requested by: Hosted repo Features requested by a DataONE hosted repository
Projects
None yet
Development

No branches or pull requests

2 participants