Coder Social home page Coder Social logo

Comments (11)

Robinlovelace avatar Robinlovelace commented on May 23, 2024

Hi @cvitolo it's over a year since you raised this idea and a lot has changed. We've got a complete book! Could you take a look and suggest where you think such a section would work best? I'm guessing in chapter 7 of data I/O, just before this section: https://geocompr.robinlovelace.net/read-write.html#geographic-data-packages

Thoughts? Agreed getting data from standard web services is a very useful skill and I don't think we've covered it yet. We have a window of opportunity before it gets sent to copy-editing in a few weeks!

from geocompr.

Robinlovelace avatar Robinlovelace commented on May 23, 2024

Apologies for not acting on this sooner btw.

from geocompr.

cvitolo avatar cvitolo commented on May 23, 2024

Great work!

I agree, accessing data via web service would suite section 7.2

Many thanks for taking my suggestion into account.

from geocompr.

Robinlovelace avatar Robinlovelace commented on May 23, 2024

Fantastic. Another question: do you have any example data/resources/code showing how to import data from web services? Thinking a minimal reproducible example here would be most useful.

from geocompr.

Robinlovelace avatar Robinlovelace commented on May 23, 2024

Downloading data from a WFS such as http://www.bgs.ac.uk/data/services/wfs.html would be very useful. Any code showing how to do that: very much appreciated, e.g. from: http://ogc.bgs.ac.uk/digmap625k_gsml32_cgi_gs/wfs?service=WFS&request=GetCapabilities&AcceptVersions=2.0.0&

from geocompr.

Robinlovelace avatar Robinlovelace commented on May 23, 2024

@cvitolo please take a look here: #322

Is that the kind of content you were thinking? I'm new to OWS in R so certainly room for improvement!

from geocompr.

cvitolo avatar cvitolo commented on May 23, 2024

Sorry for the late reply @Robinlovelace, was traveling during the past week.

In terms of OGC standards, I would mention the sos4R (An R client for the OGC Sensor Observation Service, the are plenty of examples in the manual).

There is a basic example of how to list WCS layers here: https://github.com/OpenDataHack/data_service_catalogue/blob/master/ecmwf_web_coverage_service.ipynb

Some examples of how to visualise WMS using leaflet:

from geocompr.

Robinlovelace avatar Robinlovelace commented on May 23, 2024

Many thanks Claudia, this is very, very useful. i'll try to get something in the master branch, just in time for it being submitted for production!

from geocompr.

Robinlovelace avatar Robinlovelace commented on May 23, 2024

Seems sos4R is no longer on CRAN. Any ideas why? Cc @edzer - apologies for nudge Edzer but as you'll see from #322 I'm writing a small section on web services but this is not my area of expertise. Would you recommend pointing people to sos4R and do you have any suggested resources beyond those kindly provided by Claudia above? Thanks!

from geocompr.

edzer avatar edzer commented on May 23, 2024

@nuest

from geocompr.

eblondel avatar eblondel commented on May 23, 2024

@Robinlovelace may I suggest you look at the revision of the CRAN spatial task view i've sent some days ago? where more emphasis was given on standards: on formats first (https://github.com/r-spatial/task_views/blob/master/ctv/Spatial.ctv#L149) with stronger referencing of sf package, and services then (https://github.com/r-spatial/task_views/blob/master/ctv/Spatial.ctv#L211). On services ,distinction could be done between OGC standards and software product - specific services (API Clients). May I suggest also you look into the following packages:

  • geosapi package which offers an interface to the known GeoServer open-source and its web API for management of spatial data (for which I'm in process to contribute to GeoServer official documentation with R code snippets);
  • geonapi package that interfaces the legacy GeoNetwork API for metadata management, maybe in less extent, since similar management may be operated (by preference) through OGC standard and ows4R CSW R client. All these packages I refer to are published on CRAN.
    Hope this helps

from geocompr.

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.