EMODnet / emodnet.wfs

Access EMODnet Web Feature Service data through R
https://emodnet.github.io/emodnet.wfs/
Other
8 stars 4 forks source link

need to investigate #61

Closed maelle closed 2 years ago

maelle commented 2 years ago
library("EMODnetWFS")
wfs <- emodnet_init_wfs_client(service = "biology")
layer_attribute_descriptions(wfs, layer = "Species_gridded_abundances_2year")
maelle commented 2 years ago

@annakrystalli what do you get for the code above, and what ows4R version do you use? Thank you

maelle commented 2 years ago

With ows4R CRAN version

library("EMODnetWFS")
wfs <- emodnet_init_wfs_client(service = "biology")
#> Loading ISO 19139 XML schemas...
#> Loading ISO 19115 codelists...
#> Loading IANA mime types...
#> No encoding supplied: defaulting to UTF-8.
#> ✓ WFS client created succesfully
#> ℹ Service: 'http://geo.vliz.be/geoserver/Emodnetbio/wfs'
#> ℹ Version: '2.0.0'
layer_attribute_descriptions(wfs, layer = "Species_gridded_abundances_2year")
#> Error in data.frame(name = element$getName(), type = element$getType(), : les arguments impliquent des nombres de lignes différents : 1, 0

Created on 2022-03-03 by the reprex package (v2.0.1)

maelle commented 2 years ago

However it works with ows4R dev version thanks to I think this commit by @eblondel https://github.com/eblondel/ows4R/commit/8287efb46eaed7cf4fb2c7e0d0eb210206dafe84

So I'll add a Remote dep on that dev version.