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

Subsetting categorical values. #195

Open
joanma747 opened this issue Oct 23, 2024 · 2 comments
Open

Subsetting categorical values. #195

joanma747 opened this issue Oct 23, 2024 · 2 comments

Comments

@joanma747
Copy link

joanma747 commented Oct 23, 2024

In this request we are considering a use case where "species" ( coordinates are: "wildcat", "ants", "frog, "wolf",...) is not a property but a dimension. The property will be the number of occurrences.

In Common Req /req/umd-collection/extent-uad-definition part J the existance of categorical axes is suggest.
We could extent the definition

However with the current subset syntax is not possible to extract a arbitrary list of categorical coordinates. The cited requirement suggest that is possible to use the order they were defined to get a "continguous subset" but what about and arbitrary list.

Imagine you have a axis that is species and you want to subset "wildcat" and "wolf" to create a "mammal" coverage with the bands "wildcat" and "wolf" that are not contiguos in their definition. How to do this?.

@joanma747
Copy link
Author

joanma747 commented Oct 23, 2024

This is the solution:

A:
The coverage request operation SHALL support a parameter subset to subset one or more of the dimensions of the coverage (as described in the collection information) with the following characteristics (using an Extended Backus Naur Form (EBNF) fragment):

SubsetSpec = "subset" "=" axisName "(" intervalOrSingle ")"
intervalOrSingle = interval / single / list
interval = low ":" high
list = single ("," single)
low = single
high = single
single = number / text / "
"
number = 1DIGIT
text = DQUOTE 1
(%x20-21 / %x23-7E) DQUOTE

We need to say that a : or , need to be escaped.

@chris-little
Copy link

@joanma747 @jerstlouis In OGC API-EDR V1.1 we support categorical dimensions. We opted to define the single and list subsets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Agreed; to be applied
Development

No branches or pull requests

2 participants