Skip to content

Commit

Permalink
#69 prepare GMLConversion impl
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Jun 26, 2017
1 parent cf98448 commit 812735c
Show file tree
Hide file tree
Showing 7 changed files with 280 additions and 0 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export(GMLAffineCS)
export(GMLBaseUnit)
export(GMLCartesianCS)
export(GMLConventionalUnit)
export(GMLConversion)
export(GMLCoordinateSystemAxis)
export(GMLCylindricalCS)
export(GMLDefinition)
Expand Down
34 changes: 34 additions & 0 deletions R/GMLAbstractGeneralConversion.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#' GMLAbstractGeneralConversion
#'
#' @docType class
#' @importFrom R6 R6Class
#' @export
#' @keywords ISO GML abstract general conversion
#' @return Object of \code{\link{R6Class}} for modelling an GMLAbstractGeneralConversion
#' @format \code{\link{R6Class}} object.
#'
#' @section Inherited methods from \code{GMLAbstractCoordinateOperation}
#'
#' @section Methods:
#' \describe{
#' \item{\code{new(xml, defaults, id)}}{
#' This method is used to instantiate a GML Abstract CRS
#' }
#' }
#'
#' @references
#' ISO 19136:2007 Geographic Information -- Geographic Markup Language.
#' http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=32554
#'
#' OGC Geography Markup Language. http://www.opengeospatial.org/standards/gml
#'
#' @author Emmanuel Blondel <emmanuel.blondel1@@gmail.com>
#'
GMLAbstractGeneralConversion <- R6Class("GMLAbstractGeneralConversion",
inherit = GMLAbstractSingleOperation,
private = list(
xmlElement = "AbstractGeneralConversion",
xmlNamespacePrefix = "GML"
),
public = list()
)
34 changes: 34 additions & 0 deletions R/GMLAbstractSingleOperation.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#' GMLAbstractSingleOperation
#'
#' @docType class
#' @importFrom R6 R6Class
#' @export
#' @keywords ISO GML abstract single Operation
#' @return Object of \code{\link{R6Class}} for modelling an GMLAbstractSingleOperation
#' @format \code{\link{R6Class}} object.
#'
#' @section Inherited methods from \code{GMLAbstractCoordinateOperation}
#'
#' @section Methods:
#' \describe{
#' \item{\code{new(xml, defaults, id)}}{
#' This method is used to instantiate a GML Abstract CRS
#' }
#' }
#'
#' @references
#' ISO 19136:2007 Geographic Information -- Geographic Markup Language.
#' http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=32554
#'
#' OGC Geography Markup Language. http://www.opengeospatial.org/standards/gml
#'
#' @author Emmanuel Blondel <emmanuel.blondel1@@gmail.com>
#'
GMLAbstractSingleOperation <- R6Class("GMLAbstractSingleOperation",
inherit = GMLAbstractCoordinateOperation,
private = list(
xmlElement = "AbstractSingleOperation",
xmlNamespacePrefix = "GML"
),
public = list()
)
68 changes: 68 additions & 0 deletions R/GMLConversion.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
#' GMLConversion
#'
#' @docType class
#' @importFrom R6 R6Class
#' @export
#' @keywords ISO GML conversion
#' @return Object of \code{\link{R6Class}} for modelling an GMLConversion
#' @format \code{\link{R6Class}} object.
#'
#' @field method
#' @field parameterValue
#'
#' @section Inherited methods from \code{GMLAbstractCoordinateOperation}
#'
#' @section Methods:
#' \describe{
#' \item{\code{new(xml, defaults, id)}}{
#' This method is used to instantiate a GML Conversion
#' }
#' \item{\code{setMethod(method)}}{
#' Sets the method
#' }
#' \item{\code{addParameterValue(paramValue)}}{
#' Adds a parameter value
#' }
#' \item{\code{delParameterValue(paramValue)}}{
#' Deletes a parameter value
#' }
#' }
#'
#' @references
#' ISO 19136:2007 Geographic Information -- Geographic Markup Language.
#' http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=32554
#'
#' OGC Geography Markup Language. http://www.opengeospatial.org/standards/gml
#'
#' @author Emmanuel Blondel <emmanuel.blondel1@@gmail.com>
#'
GMLConversion <- R6Class("GMLConversion",
inherit = GMLAbstractGeneralConversion,
private = list(
xmlElement = "Conversion",
xmlNamespacePrefix = "GML"
),
public = list(

#+ method [1..1]: #TODO
method = NULL,
#+ parameterValue [0..*]: #TODO
parameterValue = list(),

#setMethod
setMethod = function(method){
self$method <- GMLElement$create("method", method)
},

#addParameterValue
addParameterValue = function(paramValue){
return(self$addListElement("parameterValue", paramValue))
},

#delParameterValue
delParameterValue = function(paramValue){
return(self$delListElement("parameterValue", paramValue))
}

)
)
43 changes: 43 additions & 0 deletions man/GMLAbstractGeneralConversion.Rd
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/GMLAbstractGeneralConversion.R
\docType{class}
\name{GMLAbstractGeneralConversion}
\alias{GMLAbstractGeneralConversion}
\title{GMLAbstractGeneralConversion}
\format{\code{\link{R6Class}} object.}
\usage{
GMLAbstractGeneralConversion
}
\value{
Object of \code{\link{R6Class}} for modelling an GMLAbstractGeneralConversion
}
\description{
GMLAbstractGeneralConversion
}
\section{Inherited methods from \code{GMLAbstractCoordinateOperation}}{

}

\section{Methods}{

\describe{
\item{\code{new(xml, defaults, id)}}{
This method is used to instantiate a GML Abstract CRS
}
}
}
\author{
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
}
\references{
ISO 19136:2007 Geographic Information -- Geographic Markup Language.
http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=32554

OGC Geography Markup Language. http://www.opengeospatial.org/standards/gml
}
\keyword{GML}
\keyword{ISO}
\keyword{abstract}
\keyword{conversion}
\keyword{general}

43 changes: 43 additions & 0 deletions man/GMLAbstractSingleOperation.Rd
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/GMLAbstractSingleOperation.R
\docType{class}
\name{GMLAbstractSingleOperation}
\alias{GMLAbstractSingleOperation}
\title{GMLAbstractSingleOperation}
\format{\code{\link{R6Class}} object.}
\usage{
GMLAbstractSingleOperation
}
\value{
Object of \code{\link{R6Class}} for modelling an GMLAbstractSingleOperation
}
\description{
GMLAbstractSingleOperation
}
\section{Inherited methods from \code{GMLAbstractCoordinateOperation}}{

}

\section{Methods}{

\describe{
\item{\code{new(xml, defaults, id)}}{
This method is used to instantiate a GML Abstract CRS
}
}
}
\author{
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
}
\references{
ISO 19136:2007 Geographic Information -- Geographic Markup Language.
http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=32554

OGC Geography Markup Language. http://www.opengeospatial.org/standards/gml
}
\keyword{GML}
\keyword{ISO}
\keyword{Operation}
\keyword{abstract}
\keyword{single}

57 changes: 57 additions & 0 deletions man/GMLConversion.Rd
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/GMLConversion.R
\docType{class}
\name{GMLConversion}
\alias{GMLConversion}
\title{GMLConversion}
\format{\code{\link{R6Class}} object.}
\usage{
GMLConversion
}
\value{
Object of \code{\link{R6Class}} for modelling an GMLConversion
}
\description{
GMLConversion
}
\section{Fields}{

\describe{
\item{\code{method}}{}

\item{\code{parameterValue}}{}
}}
\section{Inherited methods from \code{GMLAbstractCoordinateOperation}}{

}

\section{Methods}{

\describe{
\item{\code{new(xml, defaults, id)}}{
This method is used to instantiate a GML Conversion
}
\item{\code{setMethod(method)}}{
Sets the method
}
\item{\code{addParameterValue(paramValue)}}{
Adds a parameter value
}
\item{\code{delParameterValue(paramValue)}}{
Deletes a parameter value
}
}
}
\author{
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
}
\references{
ISO 19136:2007 Geographic Information -- Geographic Markup Language.
http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=32554

OGC Geography Markup Language. http://www.opengeospatial.org/standards/gml
}
\keyword{GML}
\keyword{ISO}
\keyword{conversion}

0 comments on commit 812735c

Please sign in to comment.