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

WFS DescribeFeature utility methods #567

Open
marcjansen opened this issue Apr 12, 2018 · 2 comments
Open

WFS DescribeFeature utility methods #567

marcjansen opened this issue Apr 12, 2018 · 2 comments

Comments

@marcjansen
Copy link
Member

This came up as a possible enhancement during the implementation of the WfsSearch #563.

I think it would be very usable to have some methid to determine fields from the DescribeFeatureType response. Sth. like:

fieldsFromDescribeFeatureType(describeFeatureTypeResponse, filterFn) {
  // returns an array of field objects with name, datatype, min and max etc.
}
fieldsFromFeatureType(wfsUrl, featureTypeName, filterFn) {
  // returns a promise, and eventually an array of fields
  // issue the correct DescribeFeatureType Request,
  // once we have the response call the above method
}

If one only want the names, one could provide a fieldFn, which decides how a field should be represented.

We should additionally have some utilitues to only fetch string-like fields which can be used for LIKE searches.

@marcjansen
Copy link
Member Author

Is this still of relevance?

@dnlkoch
Copy link
Member

dnlkoch commented Nov 20, 2018

Yes, the mentioned method isn't available at the moment, but I would prefer to have it placed in the ol-util repo.

hblitza pushed a commit that referenced this issue Oct 19, 2022
…/plugin-proposal-class-properties-7.16.5

Bump @babel/plugin-proposal-class-properties from 7.16.0 to 7.16.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants