Comments (5)
library("EMODnetWFS")
wfs <- emodnet_init_wfs_client(service = "bathymetry")
#> 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: 'https://ows.emodnet-bathymetry.eu/wfs'
#> ℹ Version: '2.0.0'
simple_filter_sf <- emodnet_get_layers(
wfs = wfs,
layers = "contours",
cql_filter = "country='Baltic Sea'",
reduce_layers = TRUE
)
#> Warning: Download of layer 'contours' failed: Error: Cannot open "/tmp/RtmpjsPInd/file866b45f8156c.gml"; The source could be corrupt or not supported. See `st_drivers()` for a list of supported formats.
Created on 2022-03-02 by the reprex package (v2.0.1)
from emodnetwfs.
@annakrystalli Could you try to run the two reprexes above and see whether they fail for you too?
from emodnetwfs.
That's because the country
attribute doesn't exist in those layers:
library("EMODnetWFS")
wfs <- emodnet_init_wfs_client(service = "human_activities")
#> 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: 'https://ows.emodnet-humanactivities.eu/wfs'
#> ℹ Version: '2.0.0'
or_filter_sf <- emodnet_get_layers(
wfs = wfs,
layers = "majorcatches",
cql_filter = "country='Baltic Sea' OR country='Bulgaria'",
reduce_layers = TRUE
)
#> Warning: Download of layer 'majorcatches' failed: Error: Cannot open "/private/var/folders/8p/87cqdx2s34vfvcgh04l6z72w0000gn/T/RtmpGQ0igj/filede191b171af0.gml"; The source could be corrupt or not supported. See `st_drivers()` for a list of supported formats.
any("country" %in% layer_attributes_get_names(wfs, layer = "majorcatches"))
#> [1] FALSE
any("country" %in% layer_attributes_get_names(service = "bathymetry", layer = "contours"))
#> ✓ WFS client created succesfully
#> ℹ Service: 'https://ows.emodnet-bathymetry.eu/wfs'
#> ℹ Version: '2.0.0'
#> [1] FALSE
Created on 2022-03-02 by the reprex package (v2.0.1)
from emodnetwfs.
The handling of these filtering messages definitely need improving
from emodnetwfs.
Ok then this should be tackled by #54 :-)
from emodnetwfs.
Related Issues (20)
- new test failure
- pkgdown failure due to vignette HOT 4
- Get list of all OGC endpoints from catalog instead of hard-coded text file HOT 8
- Link to WFS endpoints in emodnetwfs.Rmd is broken HOT 2
- `emodnet_get_wfs_info(wfs_bio)` introduced twice HOT 1
- Question: Dump all data in one go? HOT 5
- add section about related packages to README HOT 1
- increase test coverage HOT 2
- investigate R CMD check error that pkgcheck is mentioning HOT 3
- All layers are of class data.frame? HOT 3
- explore wfs biology_new_data_products HOT 7
- why would one use rerddap HOT 2
- Could guess_layer_format() use ows4r's `$getGeometryType()`?
- Problem with a layer of the physics server HOT 6
- update example in request-params.Rmd HOT 5
- change lifecycle badge status once build green again
- could we rename the package to all lowercase? HOT 20
- Bug with a layer of biology_occurrence_data HOT 8
- Bug with a layer of chemistry_marine_litter HOT 7
- How to get the package listed from the FAQ
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emodnetwfs.