Thanks to visit codestin.com
Credit goes to github.com

Skip to content

davesteps/rWMS

Repository files navigation

rWMS

Web Map Services provides a standard interface to map images.

This R package reads the capabilites XML document associated with a WMS source and creates a 'WMS' R class.

I created the package to allow an interface to WMS sources in shiny apps using leaflet-shiny.

Example app


###Usage:

Extract some sea surface temperature data from this THREDDS WMS source for lat/long and specific date range.

if (!require("devtools"))
  install.packages("devtools")
devtools::install_github("davesteps/rWMS")

require(rWMS)

src <- WMS('http://data.ncof.co.uk/thredds/wms/METOFFICE-GLO-SST-L4-NRT-OBS-SST-V2?')

#use layerNames to examine the available variables on the source 
layerNames(src)

frm <- "2010-01-01"
to <- "2010-12-31"

df <- TDSquery(src,lat = 53,lon = -5.5,from = frm,to = to,lyr = "analysed_sst")

plot(df$date,df$values,type='l')

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages