You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are many possible attributes a person could be interested in, and there will be requests by people to add their attribute to the list. Long term, it is unfeasible to maintain such a list of attributes on our end.
Instead, it should be possible to define one's own attribute as ohsome filter query. This should be an "advanced" option in addition to the already existing and predefined attributes.
The API endpoint /indicators/attribute-completeness could accept an additional parameter (e.g ohsome_query or ohsome_filter) containing a valid ohsome filter query representing an attribute (which in the end gets AND combined with the topic filter query).
Either attribute_key or ohsome_query should be given in one request.
The validation of the ohsome query should be done by the ohsome API, ergo when the actual request is done (Easier to Ask Forgiveness than Permission → Try and Except).
The indicator itself decides based on receiving either an attribute key or an ohsome query to either build the ohsome filter based upon our definition of the given attribute (as it is done right now) or to simple pass on the given ohsome filter to our ohsome query builder (ohsome/client.py::query) to combine it with the topic filter.
The text was updated successfully, but these errors were encountered:
@matthiasschaub for every attributeFilter we woud need also an attributeFilterTitle which would be a user defined naming for the filter which we can also use in the result description as a replacement for the attribute names.
E.g. The bold information should be replaced with s.th. useful when queried with custom attributeFilter:
0.2% of all "building count" features (all: 3194 elements) in your area of interest have the selected additional attributes height of buildings, colour of roofs (matched: 6 elements). The attribute completeness is low (<25%).
@mcauer at the moment, PR #849 introduced two now parameters: attributeFilter (string) and attributeNames (list of string). Would you rather have attributeName or attributeTitle as a single string instead of a list of strings?
There are many possible attributes a person could be interested in, and there will be requests by people to add their attribute to the list. Long term, it is unfeasible to maintain such a list of attributes on our end.
Instead, it should be possible to define one's own attribute as ohsome filter query. This should be an "advanced" option in addition to the already existing and predefined attributes.
The API endpoint
/indicators/attribute-completeness
could accept an additional parameter (e.gohsome_query
orohsome_filter
) containing a valid ohsome filter query representing an attribute (which in the end gets AND combined with the topic filter query).Either
attribute_key
orohsome_query
should be given in one request.The validation of the ohsome query should be done by the ohsome API, ergo when the actual request is done (Easier to Ask Forgiveness than Permission → Try and Except).
The indicator itself decides based on receiving either an attribute key or an ohsome query to either build the ohsome filter based upon our definition of the given attribute (as it is done right now) or to simple pass on the given ohsome filter to our ohsome query builder (
ohsome/client.py::query
) to combine it with the topic filter.The text was updated successfully, but these errors were encountered: