Skip to content

Commit

Permalink
fix GMLElement & Rdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Jun 26, 2017
1 parent aed67e0 commit 7939b93
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/GMLAbstractCoordinateOperation.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#' \item{\code{new(xml, defaults, id)}}{
#' This method is used to instantiate a GML Abstract CRS
#' }
#' \item{\Code{setVersion(version)}}{
#' \item{\code{setVersion(version)}}{
#' Sets version
#' }
#' \item{\code{addAccuracy(accuracy)}}{
Expand Down
6 changes: 5 additions & 1 deletion R/GMLElement.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ GMLElement <- R6Class("GMLElement",
childName <- names(children)[i]
childElem <- GMLElement$new(element = childName)
childElem$decode(xml = childXML)
self[[childName]] <- childElem
if(is(self[[childName]], "list")){
self[[childName]] <- c(self[[childName]], childElem)
}else{
self[[childName]] <- childElem
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion man/GMLAbstractCoordinateOperation.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ GMLAbstractCoordinateOperation
\item{\code{new(xml, defaults, id)}}{
This method is used to instantiate a GML Abstract CRS
}
\item{\Code{setVersion(version)}}{
\item{\code{setVersion(version)}}{
Sets version
}
\item{\code{addAccuracy(accuracy)}}{
Expand Down

0 comments on commit 7939b93

Please sign in to comment.