-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Support unique bbox per feature types in WFS GetFeature #11187
Comments
Sounds reasonable @adube. Feel free to contribute this improvement as pull request. |
Great, thanks. Which scenario would make more sense to you, A) or B)? A) seems simpler in my mind. Thoughts? |
(B) is more intuitive from an API standpoint, and should not be much harder to implement. |
Thanks for the feedback. |
I've opened a PR here: #11740 The second scenario (B) was likely mandatory for implementation as each |
Currently
Currently, when using the WFS format to create a GetFeature XML, you can provide a list of feature type names and a single bbox as options. As a result, we get two Query objects, one for each feature types, and the bbox ends up in the two of them.
Required feature
It would be nice to be able to define a unique bbox parameter for each feature type names.
The reason behind this is this: when querying using WFS onto point layers using a "mocked click", (i.e. we create a box with a buffer where the user clicked), we want to consider the size of the symbols as an extra "buffer" for the query. The symbols don't have the same size for each queryable layers, therefore it would make sense to have different bbox for each layer.
Proposed solution
We are aware of the "filter" option, but in our case only having the possibility to set a "bbox" for each feature types.
At the "options" level, here's how I see it. We could either:
[featureTypesBBOX]
option, like this:So, doing the above would end up supporting two different type definition for the featureTypes: strings and objects.
Thoughts
Please, let me know what you think about this Feature Request.
The text was updated successfully, but these errors were encountered: