Giter Site home page Giter Site logo

Comments (5)

annakrystalli avatar annakrystalli commented on June 15, 2024 1

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.

salvafern avatar salvafern commented on June 15, 2024 1

Ah ok good, didn't know! Thanks @annakrystalli

from emodnetwfs.

annakrystalli avatar annakrystalli commented on June 15, 2024

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.

JanJaapPoos avatar JanJaapPoos commented on June 15, 2024

Hi @annakrystalli,

Excellent, thanks.

from emodnetwfs.

salvafern avatar salvafern commented on June 15, 2024

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?

sf <- sf::st_transform(sf, crs)

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.