Skip to content

Commit

Permalink
missing capabilities in OWS Http requests
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Jul 9, 2021
1 parent 5d18338 commit b1302a1
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion R/CSWDescribeRecord.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ CSWDescribeRecord <- R6Class("CSWDescribeRecord",
)
namedParams <- c(namedParams, namespace = namespace, typeName = typeName)

super$initialize(op, "GET", url, request = private$name,
super$initialize(capabilities, op, "GET", url, request = private$name,
namedParams = namedParams,
mimeType = "text/xml", logger = logger, ...)
self$execute()
Expand Down
2 changes: 1 addition & 1 deletion R/CSWGetRecordById.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ CSWGetRecordById <- R6Class("CSWGetRecordById",
paste(allowedElementSetNames, collapse=",")))
}
self$ElementSetName = elementSetName
super$initialize(op, "POST", url, request = private$xmlElement,
super$initialize(capabilities, op, "POST", url, request = private$xmlElement,
user = user, pwd = pwd, token = token, headers = headers,
contentType = "text/xml", mimeType = "text/xml",
logger = logger, ...)
Expand Down
2 changes: 1 addition & 1 deletion R/CSWGetRecords.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ CSWGetRecords <- R6Class("CSWGetRecords",
initialize = function(capabilities, op, url, serviceVersion = "2.0.2",
user = NULL, pwd = NULL, token = NULL, headers = list(),
query = NULL, logger = NULL, ...) {
super$initialize(op, "POST", url, request = private$xmlElement,
super$initialize(capabilities, op, "POST", url, request = private$xmlElement,
user = user, pwd = pwd, token = token, headers = headers,
contentType = "text/xml", mimeType = "text/xml",
logger = logger, ...)
Expand Down
2 changes: 1 addition & 1 deletion R/CSWHarvest.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ CSWHarvest <- R6Class("CSWHarvest",
resourceType = "http://www.isotc211.org/schemas/2005/gmd/",
resourceFormat = "application/xml",
logger = NULL, ...) {
super$initialize(op, "POST", url, request = private$xmlElement,
super$initialize(capabilities, op, "POST", url, request = private$xmlElement,
user = user, pwd = pwd, token = token, headers = headers,
contentType = "text/xml", mimeType = "text/xml",
logger = logger, ...)
Expand Down
2 changes: 1 addition & 1 deletion R/CSWTransaction.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ CSWTransaction <- R6Class("CSWTransaction",
recordProperty = recordProperty,
constraint = constraint
)
super$initialize(op, "POST", url, request = private$xmlElement,
super$initialize(capabilities, op, "POST", url, request = private$xmlElement,
user = user, pwd = pwd, token = token, headers = headers,
contentType = "text/xml", mimeType = "text/xml",
logger = logger, ...)
Expand Down
2 changes: 1 addition & 1 deletion R/WFSDescribeFeatureType.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ WFSDescribeFeatureType <- R6Class("WFSDescribeFeatureType",
public = list(
initialize = function(capabilities, op, url, version, typeName, logger = NULL, ...) {
namedParams <- list(service = "WFS", version = version, typeName = typeName)
super$initialize(op, "GET", url, request = private$name,
super$initialize(capabilities, op, "GET", url, request = private$name,
namedParams = namedParams, mimeType = "text/xml", logger = logger,
...)
self$execute()
Expand Down
2 changes: 1 addition & 1 deletion R/WFSGetFeature.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ WFSGetFeature <- R6Class("WFSGetFeature",

if(length(vendorParams)>0) namedParams <- c(namedParams, vendorParams)
namedParams <- namedParams[!sapply(namedParams, is.null)]
super$initialize(op, "GET", url, request = private$name,
super$initialize(capabilities, op, "GET", url, request = private$name,
namedParams = namedParams, mimeType = mimeType, logger = logger)
self$execute()
}
Expand Down
2 changes: 1 addition & 1 deletion R/WMSGetFeatureInfo.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ WMSGetFeatureInfo <- R6Class("WMSGetFeatureInfo",
vendorParams <- list(...)
if(length(vendorParams)>0) namedParams <- c(namedParams, vendorParams)
namedParams <- namedParams[!sapply(namedParams, is.null)]
super$initialize(op, "GET", url, request = private$name,
super$initialize(capabilities, op, "GET", url, request = private$name,
namedParams = namedParams, mimeType = mimeType,
logger = logger)
self$execute()
Expand Down

0 comments on commit b1302a1

Please sign in to comment.