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

Convert GetImageParameters to WMSGetMapParameters #2799

Merged
merged 2 commits into from
Nov 22, 2023
Merged

Conversation

felixpalmer
Copy link
Collaborator

The WMSLayer is broken in v9 deck: https://felixpalmer.github.io/deck.gl/examples/wms-layer due to the ImageSource.getImage function expecting parameters of the type GetImageParameters, while the WMSService.getImage function expects WMSGetMapParameters. These differ only in the specification of the bounds, with the former using boundingBox and the latter bbox.

There are different ways this could be resolved but I'm assuming that the intended design is to have a unified getImage API and thus here the conversion is being done in WMSService.getImage

Copy link
Collaborator

@ibgreen ibgreen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching this. I think the confusion right now is due to the GetImage parameters are very closely modeled after WMS GetMap parameters with just this one exception.

But ultimately GetImage and GeMap parameters should probably be considered different types with a clear mapping function for all fields.

modules/wms/src/services/ogc/wms-service.ts Show resolved Hide resolved
@ibgreen ibgreen added this to the v4.0.5 milestone Nov 21, 2023
@ibgreen ibgreen added the bug Something isn't working label Nov 21, 2023
Co-authored-by: Ib Green <ib@foursquare.com>
@felixpalmer felixpalmer merged commit 207ff3f into master Nov 22, 2023
4 checks passed
@felixpalmer felixpalmer deleted the felix/wms-bbox branch November 22, 2023 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants