ISOFeatureType19115_3
ISOFeatureType19115_3
R6Class object.
Object of R6Class for modelling an ISO FeatureType in ISO 19115-3
- ISO 19110 - GFC 1.1 https://schemas.isotc211.org/19110/gfc/1.1/gfc/#element_FC_FeatureType
geometa::geometaLogger -> geometa::ISOAbstractObject -> geometa::ISOFeatureType -> ISOFeatureType19115_3
typeNametypeName [1..1]: character
definitiondefinition [0..1]: character
codecode [0..1]: character
isAbstractisAbstract [1..1]: logical
aliasesaliases [0..*]: character
designationdesignation [0..1]: character
carrierOfCharacteristicscarrierOfCharacteristics [0..*]: ISOCarrierOfCharacteristics
inheritsFrominheritsFrom [0..*]: ISOInheritanceRelation
inheritsToinheritsTo [0..*]: ISOInheritanceRelation
constrainedByconstrainedBy [0..*]: ISOConstraint
definitionReferencedefinitionReference [0..*]: ISODefinitionReference
featureCataloguefeatureCatalogue: ISOFeatureCatalogue
Inherited methods
geometa::geometaLogger$ERROR()geometa::geometaLogger$INFO()geometa::geometaLogger$WARN()geometa::ISOAbstractObject$addFieldAttrs()geometa::ISOAbstractObject$addListElement()geometa::ISOAbstractObject$checkMetadataStandardCompliance()geometa::ISOAbstractObject$contains()geometa::ISOAbstractObject$createLocalisedProperty()geometa::ISOAbstractObject$decode()geometa::ISOAbstractObject$delListElement()geometa::ISOAbstractObject$encode()geometa::ISOAbstractObject$getClass()geometa::ISOAbstractObject$getClassName()geometa::ISOAbstractObject$getNamespaceDefinition()geometa::ISOAbstractObject$isDocument()geometa::ISOAbstractObject$isFieldInheritedFrom()geometa::ISOAbstractObject$print()geometa::ISOAbstractObject$save()geometa::ISOAbstractObject$setAttr()geometa::ISOAbstractObject$setCodeList()geometa::ISOAbstractObject$setCodeListValue()geometa::ISOAbstractObject$setCodeSpace()geometa::ISOAbstractObject$setHref()geometa::ISOAbstractObject$setId()geometa::ISOAbstractObject$setIsNull()geometa::ISOAbstractObject$setValue()geometa::ISOAbstractObject$stopIfMetadataStandardIsNot()geometa::ISOAbstractObject$validate()geometa::ISOAbstractObject$wrapBaseElement()
new()Initializes object
ISOFeatureType19115_3$new(xml = NULL)xmlobject of class XMLInternalNode-class
setIsAbstract()Set whether feature type is abstract
isAbstractobject of class logical
addAlias()Adds alias
aliasobject of class ISOLocalName (in ISO 19139 only) or character (in ISO 19139 or ISO 19115-3)
delAlias()aliasobject of class ISOLocalName (in ISO 19139 only) or character (in ISO 19139 or ISO 19115-3)
addCharacteristic()Adds characteristic
characteristiccharacteristic, object inheriting class ISOAbstractCarrierOfCharacteristics
delCharacteristic()Deletes characteristic
characteristiccharacteristic, object inheriting class ISOAbstractCarrierOfCharacteristics
addInheritsFrom()Adds 'inheritsFrom' relation
relrel, object of class ISOInheritanceRelation
delInheritsFrom()Deletes 'inheritsFrom' relation
relrel, object of class ISOInheritanceRelation
addInheritsTo()Adds 'inheritsTo' relation
relrel, object of class ISOInheritanceRelation
delInheritsTo()Deletes 'inheritsTo' relation
relrel, object of class ISOInheritanceRelation
addConstraint()Adds constraint
constraintconstraint, object of class ISOConstraint
delConstraint()Deletes constraint
constraintconstraint, object of class ISOConstraint
setDefinitionReference()Set definition reference
definitionReferenceobject of class ISODefinitionReference
# \dontrun{
setMetadataStandard("19115-3") #required
#> Loading ISO 19115-3 codelists...
#featuretype
md <- ISOFeatureType$new()
md$setTypeName("typeName")
md$setDefinition("definition")
md$setDesignation("designation")
md$setCode("code")
md$setIsAbstract(FALSE)
md$addAlias("alias1")
#> [1] TRUE
md$addAlias("alias2")
#> [1] TRUE
#add feature attributes
for(i in 1:3){
#create attribute
fat <- ISOFeatureAttribute$new()
fat$setMemberName(sprintf("name %s",i))
fat$setDefinition(sprintf("definition %s",i))
fat$setCardinality(lower=1,upper=1)
fat$setCode(sprintf("code %s",i))
#add measurement unit
gml <- GMLBaseUnit$new(id = "ID%")
gml$setDescriptionReference("someref")
gml$setIdentifier("identifier", "codespace")
gml$addName("name1", "codespace")
gml$addName("name2", "codespace")
gml$setQuantityTypeReference("someref")
gml$setCatalogSymbol("symbol")
gml$setUnitsSystem("somelink")
fat$setValueMeasurementUnit(gml)
#add listed values
val1 <- ISOListedValue$new()
val1$setCode("code1")
val1$setLabel("label1")
val1$setDefinition("definition1")
fat$addListedValue(val1)
val2 <- ISOListedValue$new()
val2$setCode("code2")
val2$setLabel("label2")
val2$setDefinition("definition2")
fat$addListedValue(val2)
fat$setValueType("typeName")
#add feature attribute as carrierOfCharacteristic
md$addCharacteristic(fat)
}
xml <- md$encode()
#> [geometa][WARN] Element '{http://standards.iso.org/iso/19115/-3/gco/1.0}UomIdentifier': Element content is not allowed, because the type definition is simple at line 30.
#> [geometa][WARN] Element '{http://standards.iso.org/iso/19115/-3/gco/1.0}UomIdentifier': '' is not a valid value of the union type '{http://standards.iso.org/iso/19115/-3/gco/1.0}UomIdentifierType' at line 30.
#> [geometa][WARN] Element '{http://standards.iso.org/iso/19115/-3/gco/1.0}UomIdentifier': Element content is not allowed, because the type definition is simple at line 92.
#> [geometa][WARN] Element '{http://standards.iso.org/iso/19115/-3/gco/1.0}UomIdentifier': '' is not a valid value of the union type '{http://standards.iso.org/iso/19115/-3/gco/1.0}UomIdentifierType' at line 92.
#> [geometa][WARN] Element '{http://standards.iso.org/iso/19115/-3/gco/1.0}UomIdentifier': Element content is not allowed, because the type definition is simple at line 154.
#> [geometa][WARN] Element '{http://standards.iso.org/iso/19115/-3/gco/1.0}UomIdentifier': '' is not a valid value of the union type '{http://standards.iso.org/iso/19115/-3/gco/1.0}UomIdentifierType' at line 154.
#> [geometa][WARN] Object 'ISOFeatureType19115_3' is INVALID according to ISO 19115-3 XML schemas!
setMetadataStandard("19139")
# }