-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#3 CSW transaction insert/update + improve OWSRequest
- Loading branch information
Showing
15 changed files
with
1,486 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#' CSWTransaction | ||
#' | ||
#' @docType class | ||
#' @export | ||
#' @keywords OGC CSW Transaction | ||
#' @return Object of \code{\link{R6Class}} for modelling a CSW Transaction request | ||
#' @format \code{\link{R6Class}} object. | ||
#' | ||
#' @section Methods: | ||
#' \describe{ | ||
#' \item{\code{new(url, version, id)}}{ | ||
#' This method is used to instantiate a CSWTransaction object | ||
#' } | ||
#' } | ||
#' | ||
#' @author Emmanuel Blondel <emmanuel.blondel1@@gmail.com> | ||
#' | ||
CSWTransaction <- R6Class("CSWTransaction", | ||
lock_objects = FALSE, | ||
inherit = OWSRequest, | ||
private = list( | ||
name = "Transaction", | ||
defaultNamespace = "http://www.opengis.net/cat/csw" | ||
), | ||
public = list( | ||
initialize = function(op, url, version, type, record, constraint = NULL, logger = NULL, ...) { | ||
namespace = c(csw = paste(private$defaultNamespace, version, sep="/")) | ||
|
||
namedParams <- list(request = private$name, transaction = record) | ||
names(namedParams)[2] <- type | ||
if(!is.null(namedParams)) namedParams <- c(namedParams, constraint = constraint) | ||
|
||
namedAttrs <- list(service = "CSW", version = version) | ||
|
||
super$initialize(op, "POST", url, namedParams = namedParams, namedAttrs = namedAttrs, | ||
namespace = namespace, contentType = "text/xml", mimeType = "text/xml", | ||
logger = logger, ...) | ||
|
||
|
||
} | ||
|
||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,15 +9,15 @@ R client for OGC Web-Services | |
|
||
``ows4R`` is a new project that aims to set-up a pure R interface to OGC Web-Services. In a first time (ongoing work), ``ows4R`` will target: | ||
* the Common OGC Web-Services specifications, version ``1.1.0`` | ||
* the Catalogue Service (CSW), version ``2.0.2`` | ||
* the Catalogue Service for the Web (CSW), versions ``2.0.2`` and ``3.0`` | ||
* the Web Feature Service (WFS), versions ``1.0.0``, ``1.1.0``, and ``2.0.0`` | ||
|
||
## OGC standards coverage status | ||
|
||
Standard |Description|Supported versions|Supported R bindings|Support | ||
----------|-----------|------------------|--------------------|------| | ||
OGC Common|[Web Service Common](http://www.opengeospatial.org/standards/common)|``1.1.0``||ongoing | ||
OGC CSW |[Catalogue Service](http://www.opengeospatial.org/standards/cat)|``2.0.2``|[geometa](https://github.com/eblondel/geometa) (ISO 19115 / 19119 / 19110)|ongoing | ||
OGC CSW |[Catalogue Service](http://www.opengeospatial.org/standards/cat)|``2.0.2``,``3.0.0``|[geometa](https://github.com/eblondel/geometa) (ISO 19115 / 19119 / 19110)|ongoing / seeking fundings | ||
OGC WFS |[Web Feature Service](http://www.opengeospatial.org/standards/wfs)|``1.0.0``,``1.1.0``,``2.0.0``|[sf](https://github.com/r-spatial/sf) (OGC Simple Feature)|ongoing | ||
|
||
In case of a missing feature, [create a ticket](https://github.com/eblondel/ows4R/issues/new). | ||
|
@@ -26,5 +26,5 @@ In case of a missing feature, [create a ticket](https://github.com/eblondel/ows4 | |
|
||
* Support for additional OGC web-service standard specifications | ||
|
||
For more information, or if you are interested in funding this R package project or to contribute to it, do not hesitate to contact me by [e-mail](mailto:[email protected]) | ||
For more information, or if you are interested in funding this R project or to contribute to it, do not hesitate to contact me by [e-mail](mailto:[email protected]) | ||
|
Oops, something went wrong.