Comments (5)
Hey @salvafern. When you use the bbox predicate, you can supply a CRS which refers to the CRS the bbox coordinates are in, which could differ from the CRS the layers, as part of the cql_filter. It's completely separate to the crs
argument. Have a look at the docs I linked to above.
from emodnetwfs.
Ah ok good, didn't know! Thanks @annakrystalli
from emodnetwfs.
Hello @JanJaapPoos !
Indeed you can use the bbox filter like so:
emodnet_get_layers(service = "geology_seabed_substrate_maps",
layers = "seabed_substrate_1m",
cql_filter = "BBOX(geom, 2565427, 4026324, 1522239, 2778536)",
reduce_layers = TRUE )
Note that geom
is the name of the attribute that contains feature geometries, coordinates are supplied in the sequence xmin
, xmax
, ymin
, ymax
and the query default is to use the CRS of the queried layer unless an additional CRS argument is provided. See more detail here https://docs.geoserver.org/latest/en/user/filter/ecql_reference.html#spatial-predicate.
I'll also be updating the docs with much more detailed documentation shortly.
from emodnetwfs.
Hi @annakrystalli,
Excellent, thanks.
from emodnetwfs.
Hey @annakrystalli!
I wonder if providing a CRS via the crs argument would actually work since the CQL filter is applied in the WFS request but the reprojection is performed in the client side?
Line 135 in 1d170d5
For that to work I think the reprojection would have to be requested with WFS instead of using sf. What do you think? πΆ
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.