| ISOFeatureType19115_3 | R Documentation |
ISOFeatureType19115_3
ISOFeatureType19115_3
R6Class object.
Object of R6Class for modelling an ISO FeatureType in ISO 19115-3
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
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
setTypeName()Set type name
ISOFeatureType19115_3$setTypeName(typeName)
typeNametype name, object of class character
setDefinition()Set definition
ISOFeatureType19115_3$setDefinition(definition, locales = NULL)
definitiondefinition
localeslist of localized definitions. Default is NULL
setCode()Set code
ISOFeatureType19115_3$setCode(code, locales = NULL)
codedefinition
localeslist of localized codes. Default is NULL
setIsAbstract()Set whether feature type is abstract
ISOFeatureType19115_3$setIsAbstract(isAbstract)
isAbstractobject of class logical
addAlias()Adds alias
ISOFeatureType19115_3$addAlias(alias)
aliasobject of class ISOLocalName (in ISO 19139 only) or character (in ISO 19139 or ISO 19115-3)
TRUE if added, FALSE otherwise
delAlias()ISOFeatureType19115_3$delAlias(alias)
aliasobject of class ISOLocalName (in ISO 19139 only) or character (in ISO 19139 or ISO 19115-3)
TRUE if deleted, FALSE otherwise
setDesignation()Set designation
ISOFeatureType19115_3$setDesignation(designation, locales = NULL)
designationdesignation
localeslist of localized designations. Default is NULL
addCharacteristic()Adds characteristic
ISOFeatureType19115_3$addCharacteristic(characteristic)
characteristiccharacteristic, object inheriting class ISOAbstractCarrierOfCharacteristics
TRUE if added, FALSE otherwise
delCharacteristic()Deletes characteristic
ISOFeatureType19115_3$delCharacteristic(characteristic)
characteristiccharacteristic, object inheriting class ISOAbstractCarrierOfCharacteristics
TRUE if deleted, FALSE otherwise
addInheritsFrom()Adds 'inheritsFrom' relation
ISOFeatureType19115_3$addInheritsFrom(rel)
relrel, object of class ISOInheritanceRelation
TRUE if added, FALSE otherwise
delInheritsFrom()Deletes 'inheritsFrom' relation
ISOFeatureType19115_3$delInheritsFrom(rel)
relrel, object of class ISOInheritanceRelation
TRUE if deleted, FALSE otherwise
addInheritsTo()Adds 'inheritsTo' relation
ISOFeatureType19115_3$addInheritsTo(rel)
relrel, object of class ISOInheritanceRelation
TRUE if added, FALSE otherwise
delInheritsTo()Deletes 'inheritsTo' relation
ISOFeatureType19115_3$delInheritsTo(rel)
relrel, object of class ISOInheritanceRelation
TRUE if deleted, FALSE otherwise
addConstraint()Adds constraint
ISOFeatureType19115_3$addConstraint(constraint)
constraintconstraint, object of class ISOConstraint
TRUE if added, FALSE otherwise
delConstraint()Deletes constraint
ISOFeatureType19115_3$delConstraint(constraint)
constraintconstraint, object of class ISOConstraint
TRUE if deleted, FALSE otherwise
setDefinitionReference()Set definition reference
ISOFeatureType19115_3$setDefinitionReference(definitionReference)
definitionReferenceobject of class ISODefinitionReference
setFeatureCatalogue()Set feature catalogue
ISOFeatureType19115_3$setFeatureCatalogue(fc)
fcobject of class ISOFeatureCatalogue
clone()The objects of this class are cloneable with this method.
ISOFeatureType19115_3$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
- ISO 19110 - GFC 1.1 https://schemas.isotc211.org/19110/gfc/1.1/gfc/#element_FC_FeatureType
## Not run:
setMetadataStandard("19115-3") #required
#featuretype
md <- ISOFeatureType$new()
md$setTypeName("typeName")
md$setDefinition("definition")
md$setDesignation("designation")
md$setCode("code")
md$setIsAbstract(FALSE)
md$addAlias("alias1")
md$addAlias("alias2")
#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()
setMetadataStandard("19139")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.