Skip to content

Commit

Permalink
#131 additional control for WFSFeatureType getDescription
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Dec 17, 2024
1 parent 05a480c commit 17eba8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/WFSFeatureType.R
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ WFSFeatureType <- R6Class("WFSFeatureType",
if(pretty){
out <- do.call("rbind", lapply(elements, function(element){
out_element <- data.frame(
name = element$getName(),
type = element$getType(),
name = ifelse(!is.null(element$getName()), element$getName(), NA),
type = ifelse(!is.null(element$getType()), element$getType(), NA),
minOccurs = ifelse(!is.null(element$getMinOccurs()), element$getMinOccurs(), NA),
maxOccurs = ifelse(!is.null(element$getMaxOccurs()), element$getMaxOccurs(), NA),
nillable = ifelse(!is.null(element$isNillable()), element$isNillable(), NA),
Expand Down

0 comments on commit 17eba8f

Please sign in to comment.