-
Notifications
You must be signed in to change notification settings - Fork 12
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
Filter using string partial matching #227
Comments
@webgismd do you know if the WFS can return only the attributes and leave the geometry behind? |
I also wonder if you can partially match a string CQL? |
@ateucher like this? |
So this works: and dbplyr can translate dbplyr::translate_sql(PROTECTED_LANDS_NAME %like% "%BEAUMONT%")
#> <SQL> `PROTECTED_LANDS_NAME` like '%BEAUMONT%' I think there is a path here. |
This also works: Using But this doesn't work: bcdata::bcdc_query_geodata("bc-parks-ecological-reserves-and-protected-areas") %>%
filter(CQL("strMatches(PROTECTED_LANDS_NAME, 'SUGARBOWL.*') = 'true'")) I think there's an issue sending as a POST vs GET request... |
Using |
I changed the title of this issue since it's not actually possible to get just the attributes of a wfs layer... |
Problem: I'd like to filter a query but I only know part of the string I am looking for...
Potential solution:
I could download/collect only the column that I want to filter by, detect the sting that I am looking for and then use that string to filter my query.
Problem with this solution: I need to download the geometries of the data set to get the column that I am interested in, which is essentially just downloading the entire dataset, so there is no processing speed advantage.
My question:
Is there a way to drop the geometry before collecting the data? I suspect that this would be very fast and efficient for filtering large datasets using string detection.
The text was updated successfully, but these errors were encountered: