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

feature suggestion: filter on fieldnames #4

Open
bakeevdias opened this issue May 5, 2020 · 4 comments
Open

feature suggestion: filter on fieldnames #4

bakeevdias opened this issue May 5, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@bakeevdias
Copy link

Hello,

Using the getEurobisData() function I haven't found a way to filter on fieldnames. The function has a "type" argument that does this to an extend, but to really choose between fieldnames would be handy I think.

Thank you!

@LennertSchepers
Copy link
Member

Dear @bakeevdias, do you mean that you would like to select a subset of output columns, or that you want to filter on the values in certain column?

@bakeevdias
Copy link
Author

Hi @LennertSchepers,

I mean a subset of output columns, like for example the "robis" package with the function occurrence and its argument fields:

test <- occurrence(taxonid = 158812, fields = c("scientificNameID","locationID"))

@LennertSchepers
Copy link
Member

It should be feasible to implement this as the wfs service enables this by the propertyName key, see https://docs.geoserver.org/latest/en/user/services/wfs/reference.html

@LennertSchepers LennertSchepers added the enhancement New feature or request label Oct 2, 2020
@salvafern
Copy link
Collaborator

It is possible since 567f7d3 to pass any vendorParams to ows4R in eurobis_occurrences(...) and family, including propertyName.

I can write a wrapper if this is still needed, or happy to merge pull requests.

Although we should include a sanity check: no possible to query columns that don't exists + what columns exists?
I reckon there is a WFS request that gives the attribute names of a feature and some info about their data types, but need to look in detal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants