Title: | R Clients for Open Geospatial Consortium's Web Feature Services |
---|---|
Description: | R clients for Open Geospatial Consortium's (OGC) Web Feature Services (WFS). |
Authors: | Joona Lehtomaki [aut, cre], Jussi Jousimo [aut], Juuso Parkkinen [ctb], Leo Lahti [ctb] |
Maintainer: | Joona Lehtomaki <[email protected]> |
License: | BSD_2_clause + file LICENSE |
Version: | 0.2.0 |
Built: | 2025-01-30 11:23:32 UTC |
Source: | https://github.com/rOpenGov/rwfs |
Converts an object which can be converted to a POSIXlt object to a ISO8601 date time string.
asISO8601(dt)
asISO8601(dt)
dt |
Date time object which can be converted to a POSIXlt object. |
Character string in ISO8601 format.
Jussi Jousimo [email protected]
asISO8601("2014-01-01")
asISO8601("2014-01-01")
A class for providing a file name reference to a GML document.
rwfs::WFSRequest
-> GMLFile
new()
GMLFile$new(srcFile)
getDataSource()
GMLFile$getDataSource()
clone()
The objects of this class are cloneable with this method.
GMLFile$clone(deep = FALSE)
deep
Whether to make a deep clone.
Jussi Jousimo [email protected]
This R package provides a client to access Web Feature Services (WFS) (http://www.opengeospatial.org/standards/wfs).
The client relies on the GDAL (http://www.gdal.org/) library and the rgdal (https://cran.r-project.org/package=rgdal) package, which should be installed first.
See examples in the fmi (http://www.github.com/rOpenGov/fmi) and the gisfin packages (http://www.github.com/rOpenGov/gisfin) how to inherit the abstract R6 classes (https://cran.r-project.org/package=R6) provided by the package.
Jussi Jousimo [email protected]
Dispatches a WFS request, saves the response to a file and parses the file. The data can be converted using ogr2ogr of RGDAL. Provides a caching mechanism for subsequent queries on the same data.
rwfs::WFSClient
-> WFSCachingClient
saveGMLFile()
WFSCachingClient$saveGMLFile(destFile)
loadGMLFile()
WFSCachingClient$loadGMLFile(fromFile)
listLayers()
WFSCachingClient$listLayers()
getLayer()
WFSCachingClient$getLayer(layer, ...)
clone()
The objects of this class are cloneable with this method.
WFSCachingClient$clone(deep = FALSE)
deep
Whether to make a deep clone.
Jussi Jousimo [email protected]
WFSRequest
, WFSStreamingClient
The abstract method getURL
must be overloaded in a subclass to provide a request URL to a WFS service.
rwfs::WFSRequest
-> rwfs::WFSStreamingRequest
-> WFSCachingRequest
getDataSource()
WFSCachingRequest$getDataSource()
clone()
The objects of this class are cloneable with this method.
WFSCachingRequest$clone(deep = FALSE)
deep
Whether to make a deep clone.
Jussi Jousimo [email protected]
An abstract class to represent OGC's WFS client in R. Other client classes in this package inherit this this class.
R6Class
object.
new(request)
This method is used to create object of this
class with request
as the request object containing WFS
connection information and methods. NOTE: as this is abstract class,
you shouldn't be creating instances of it.
Set client's request object to request
,
which must inherit from WFSRequest
.
Not implemented in this abstract class, but it classes inheriting this class.
Not implemented in this abstract class, but it classes inheriting this class.
Get a raster layer from WFS
test
test
new()
WFSClient$new(request)
setRequest()
WFSClient$setRequest(request)
listLayers()
WFSClient$listLayers()
getLayer()
WFSClient$getLayer(layer, ...)
getRaster()
WFSClient$getRaster(parameters)
clone()
The objects of this class are cloneable with this method.
WFSClient$clone(deep = FALSE)
deep
Whether to make a deep clone.
Jussi Jousimo [email protected], Joona Lehtomaki [email protected]
WFSStreamingClient
, WFSCachingClient
,
WFSRequest
This class should be inherited and the abstract method getDataSource
overloaded
in a subclass to provide a reference.
getDataSource()
WFSRequest$getDataSource()
print()
WFSRequest$print(...)
clone()
The objects of this class are cloneable with this method.
WFSRequest$clone(deep = FALSE)
deep
Whether to make a deep clone.
Jussi Jousimo [email protected]
Dispatches a WFS request and parses response from the stream directly.
rwfs::WFSClient
-> WFSStreamClient
listLayers()
WFSStreamingClient$listLayers()
getLayer()
WFSStreamingClient$getLayer(layer, ...)
clone()
The objects of this class are cloneable with this method.
WFSStreamingClient$clone(deep = FALSE)
deep
Whether to make a deep clone.
Jussi Jousimo [email protected]
An abstract class for building a URL reference to a WFS.
rwfs::WFSRequest
-> WFSStreamingRequest
getParameters()
WFSStreamingRequest$getParameters()
setPath()
WFSStreamingRequest$setPath(path)
setParameters()
WFSStreamingRequest$setParameters(...)
getCapabilities()
WFSStreamingRequest$getCapabilities(version = "1.0.0", ...)
getFeature()
WFSStreamingRequest$getFeature(version = "1.0.0", typeNames, ...)
clone()
The objects of this class are cloneable with this method.
WFSStreamingRequest$clone(deep = FALSE)
deep
Whether to make a deep clone.
Jussi Jousimo [email protected]