pygplates.GpmlPropertyDelegate¶
-
class
pygplates.GpmlPropertyDelegate¶ Bases:
pygplates.PropertyValueA property value that represents a reference, or delegation, to a property in another feature.
New in version 21.
-
__init__(feature_id, property_name, property_type)¶ Create a reference, or delegation, to a property in another feature.
Parameters: - feature_id (
FeatureId) – the referenced feature - property_name (
PropertyName) – the name of the referenced property - property_type (a class object of a property type (derived from
PropertyValue) exceptEnumerationand time-dependent wrappersGpmlConstantValue,GpmlIrregularSamplingandGpmlPiecewiseAggregation.) – the type of the referenced property
property_delegate = pygplates.GpmlPropertyDelegate( referenced_feature.get_feature_id(), pygplates.PropertyName.gpml_center_line_of, pygplates.GmlLineString)
- feature_id (
Methods
__init__(feature_id, property_name, …)Create a reference, or delegation, to a property in another feature. accept_visitor(visitor)Accept a property value visitor so that it can visit this property value. clone()Create a duplicate of this property value (derived) instance, including a recursive copy of any nested property values that this instance might contain. get_feature_id()Returns the feature ID of the feature containing the delegated property. get_geometry()Extracts the geometryif this property value contains a geometry.get_property_name()Returns the property name of the delegated property. get_property_type()Returns the property type of the delegated property. get_value([time=0])Extracts the value, of this possibly time-dependent property value, at the reconstruction time. -
get_feature_id()¶ Returns the feature ID of the feature containing the delegated property.
Return type: FeatureId
-
get_property_name()¶ Returns the property name of the delegated property.
Return type: PropertyName
-
get_property_type()¶ Returns the property type of the delegated property.
For example, it might return
pygplates.GmlLineStringwhich is a class object (not an instance).Return type: a class object of the property type (derived from PropertyValue)
-