-
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 implementation, CSW3 GetCapabilities and CSW2 GetRecords, CSW …
…Query
- Loading branch information
Showing
38 changed files
with
623 additions
and
154 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
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,40 @@ | ||
#' CSWQuery | ||
#' @docType class | ||
#' @export | ||
#' @keywords OGC Query | ||
#' @return Object of \code{\link{R6Class}} for modelling an CSW Query | ||
#' @format \code{\link{R6Class}} object. | ||
#' @section Methods: | ||
#' \describe{ | ||
#' \item{\code{new(filter, cswVersion)}}{ | ||
#' This method is used to instantiate an CSWQUery object. | ||
#' } | ||
#' } | ||
CSWQuery <- R6Class("CSWQuery", | ||
inherit = OGCAbstractObject, | ||
private = list( | ||
xmlElement = "Query", | ||
xmlNamespace = c(csw = "http://www.opengis.net/cat/csw") | ||
), | ||
public = list( | ||
wrap = TRUE, | ||
ElementSetName = "full", | ||
constraint = NULL, | ||
initialize = function(elementSetName = "full", constraint = NULL, | ||
typeNames = "csw:Record", cswVersion = "2.0.2"){ | ||
nsName <- names(private$xmlNamespace) | ||
private$xmlNamespace = paste(private$xmlNamespace, cswVersion, sep="/") | ||
names(private$xmlNamespace) <- nsName | ||
super$initialize(attrs = list(typeNames = typeNames)) | ||
if(!is(elementSetName, "character")){ | ||
stop("The argument 'elementSetName' should be an object of class 'character'") | ||
} | ||
self$ElementSetName = elementSetName | ||
|
||
if(!is.null(constraint)) if(!is(constraint, "CSWConstraint")){ | ||
stop("The argument 'constraint' should be an object of class 'OGCConstraint'") | ||
} | ||
self$constraint = constraint | ||
} | ||
) | ||
) |
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
Oops, something went wrong.