-
Notifications
You must be signed in to change notification settings - Fork 4
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
Bug with a layer of biology_occurrence_data #164
Comments
oh actually this |
@maelle The switch to xml2 from XML will take time for ows4R, and other packages with complex XML models. I've made the transition for some other packages. It's done in geosapi, i've started tackling it in atom4R, but there is not always clear equivalent of XML methods in xml2, and some of questions in xml2 still remain with answer. From the exercices I've run, I can say XML has still more flexibility in writing XML than xml2. Here the issue you face is the size of the response, beyond the operation gsub. I'm not sure that having an xml2 object will solve the issue. Let me try to remember why I've introduced this line to remove XML comments, surely it was not dealing with a WFS GetFeatures response for which we never get XML comments (at least in my experience). In worst case we could make this check optional depending on the service we target. This could solve the issue. I'll let you know when I find something |
By the way, you can still bypass this by using another |
Please see small enhancement done to ows4R above. requireo(ows4R)
WFS = WFSClient$new(url = "https://geo.vliz.be/geoserver/Dataportal/wfs", serviceVersion = "2.0.0", logger = "DEBUG")
ft = WFS$capabilities$findFeatureTypeByName("abiotic_observations", F)
sf = ft$getFeatures() This example works, although I get a message Let me know Cheers |
Thanks so much!!
I don't understand, could you please clarify? |
In the Geoserver admin interface, you have a WFS settings to control the maximum nb of features to be returned in a response. If a request exceeds this number, only the max nb of features will be retrieved. Depending on your data, this can be adapted. In this example, you reach the default threshold which is 1 million features |
@eblondel Merci beaucoup ! @bart-v @salvafern see above, should the setting be tweaked for the biology occurrence data service and if so, who would be in charge? |
@bart-v @salvafern friendly reminder 🙏 |
I don't understand why this is a problem at the WFS server? |
Ok, thanks, I was asking because of this comment: #164 (comment) |
There is 40M+ records, I'm sure it will even crash worse on that... |
As Bart said I think the 1M limit is reasonable. @eblondel was looking into giving support to pagination to ows4R (see eblondel/ows4R#70) but I can imagine this is not an easy task. So for now we can maybe close this issue? |
@salvafern is this expected? The layer is "abiotic_observations".
Created on 2024-03-21 with reprex v2.1.0
Standard output and standard error
The text was updated successfully, but these errors were encountered: