Coder Social home page Coder Social logo

Layer that is a data.frame about emodnetwfs HOT 16 CLOSED

emodnet avatar emodnet commented on August 15, 2024
Layer that is a data.frame

from emodnetwfs.

Comments (16)

salvafern avatar salvafern commented on August 15, 2024 1

I think @maelle 's approach in eblondel/ows4R#65 (comment) would be great. There are layers in there with no geometry as they are required or used in the infrastructure of EMODnet-Biology, so we cannot really get rid of them.

In any case I will check why some layers don't have a geometry. For instance Dataportal:eurobis-obisenv_basic. Probably someone just forgot as the important fields when exporting to csv are decimalLongitude and decimalLatitude.

from emodnetwfs.

maelle avatar maelle commented on August 15, 2024 1

@salvafern #83 is meant to tackle this.

from emodnetwfs.

maelle avatar maelle commented on August 15, 2024 1

@salvafern My main problem in #83 is the size of fixtures. So if you can have a look at the functionality, that'd be great, I can keep thinking about the testing.

from emodnetwfs.

maelle avatar maelle commented on August 15, 2024

@annakrystalli for a change would you like to try running this one? 😅

from emodnetwfs.

annakrystalli avatar annakrystalli commented on August 15, 2024

Same error for me in http-tests branch.

I think it's because the package does some post processing to the crs that fails if the response is not an sf

from emodnetwfs.

maelle avatar maelle commented on August 15, 2024

the layer type in the layer medata from wfs info was sf, should it indicate something else?

from emodnetwfs.

maelle avatar maelle commented on August 15, 2024

I see "sf" is hard-coded, maybe I can get it from the web service 👀

from emodnetwfs.

maelle avatar maelle commented on August 15, 2024

I modified ows4R code

https://github.com/eblondel/ows4R/blob/8068e7284e3c0c99f54457579602bc33174f134d/R/WFSFeatureType.R#L328

to quiet = FALSE

I get

no simple feature geometries present: returning a data.frame or tbl_df

from emodnetwfs.

maelle avatar maelle commented on August 15, 2024

I wonder whether we should expect more metadata before the download.

from emodnetwfs.

maelle avatar maelle commented on August 15, 2024

And when we do get a data.frame, the layers can obviously NOT be reduced.

from emodnetwfs.

maelle avatar maelle commented on August 15, 2024

So, TODOS

  • Find more info on data.frame layers in WFS in general.
  • Tweak the code so that we simply return the data.frame when that's what was returned by the web service.

from emodnetwfs.

annakrystalli avatar annakrystalli commented on August 15, 2024

And when we do get a data.frame, the layers can obviously NOT be reduced.

That's ok because the function only tries to reduce and if it can't it returns a list

from emodnetwfs.

maelle avatar maelle commented on August 15, 2024

https://geo.vliz.be/geoserver/Dataportal/wfs?SERVICE=WFS&REQUEST=DescribeFeatureType&VERSION=2.0.0 does not have info that it's a table

from emodnetwfs.

maelle avatar maelle commented on August 15, 2024

Related eblondel/ows4R#65

from emodnetwfs.

maelle avatar maelle commented on August 15, 2024

For any layer if we get its description and see no element is a geometry, we can know it will be a data.frame rather than an sf object.

from emodnetwfs.

salvafern avatar salvafern commented on August 15, 2024

Update: we should not change Dataportal:eurobis-obisenv_basic in geoserver as many other system are relying on this layer. We should go forward with #83 . @maelle are you following this up or shall I have a look?

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.