Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
WMS layers can be queriable or not (ie: allow GetFeatureInfo calls).
Such support can be fetched by GetCapabilities call.
DOL doesn't perform GetCapabilities, but still we can let administrator specify that manually.
Such option would allow the 'query' tool to avoid prompting for unqueriable layers in the interface
or at least let user know about that if allowing override nonetheless.
Comments
Comment #1
tmcw CreditAttribution: tmcw commentedstrk: the ability to query WMS was built up in the Nice Map module and it's decently modular - doesn't require Drupal, etc.
It might be possible to bring that into this module. My main concern is not integration proper, but that the layer addition and editing process isn't currently built to do multi-step forms or ahah forms, which a query would certainly require.
Comment #2
zzolo CreditAttribution: zzolo commentedA multistep form would not really be all that possible, but utilizing some AHAH should be alright in the current architecture.
Comment #3
tmcw CreditAttribution: tmcw commentedAnyway, let's not overcomplicate this: it's okay to add an option to WMS layers indicating that they're queriable, although it might also make sense to simply query all WMS layers and allow those not supporting queries to fail.
Comment #4
zzolo CreditAttribution: zzolo commentedYeah, although checking if a WMS is queryable may be expensive, I don't think most users are going to know whether it is or not, though most users that need WMS may already have higher level knowledge.
Comment #5
strk CreditAttribution: strk commentedLet's forget about this. I've added the checkbox with a form_alter in my dolpp module (the same adding the query behavior).
If you'll like it we'll think about possible integrations.