ais-open / ogc-preview

Discover and browse OGC service layers exposed by way of WMS/WFS service interfaces, with a special focus given to time-enabled data.
Apache License 2.0
5 stars 1 forks source link

Make all layer grouping based on dynamic keywords #9

Open gisjedi opened 8 years ago

gisjedi commented 8 years ago

Current layer grouping is built off of explicit configuration values that exist in the opConfig.js file. This makes environment specific grouping more tedious than it needs to be. GeoServer allows for specification of "Vocabulary" in the keywords which would allow is to explicitly identify a keyword as the value for grouping. The proposal is to use the vocabulary value of "KeywordGroup" to identify a single keyword that should be used. Multiple keywords with this vocabulary are discouraged and would make the layer appear under multiple groups.

gisjedi commented 8 years ago

Preparation for this change can be made transparently by adding the desired grouping value as a new keyword with the vocabulary value indicated above to any layers that are to be categorized.

wardcr commented 8 years ago

I think this is a good idea and should make the tool more generally useful. I would suggest maybe a hybrid approach, at least in the short term to make it easier for people to transition. So basically, try to use the new implementation first and if it doesn't find a KeywordGroup value, then it falls back to the current configuration-based approach. You could then remove the fallback path in a later release once people have transitioned, but it probably doesn't really hurt to leave it in as an option.