pygplates.GpmlPropertyDelegate

class pygplates.GpmlPropertyDelegate

Bases: pygplates.PropertyValue

A property value that represents a reference, or delegation, to a property in another feature.

New in version 0.21.

__init__(feature_id, property_name, property_type)

Create a reference, or delegation, to a property in another feature.

Parameters
property_delegate = pygplates.GpmlPropertyDelegate(
    referenced_feature.get_feature_id(),
    pygplates.PropertyName.gpml_center_line_of,
    pygplates.GmlLineString)

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 geometry if 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.GmlLineString which is a class object (not an instance).

Return type

a class object of the property type (derived from PropertyValue)