pygplates.GpmlTopologicalLine
- class pygplates.GpmlTopologicalLine
Bases:
pygplates.PropertyValue
A topological line geometry that is resolved from topological sections.
New in version 0.21.
- __init__(sections)
Create a topological line made from topological sections.
- Parameters
sections (Any sequence such as a
list
or atuple
) – A sequence ofGpmlTopologicalSection
elements
topological_line = pygplates.GpmlTopologicalLine(topological_sections)
Methods
__init__
(sections)Create a topological line made from topological sections.
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_geometry
()Extracts the
geometry
if this property value contains a geometry.Returns the
sections
in a sequence that behaves as a pythonlist
.get_value
([time=0])Extracts the value, of this possibly time-dependent property value, at the reconstruction time.
- get_sections()
Returns the
sections
in a sequence that behaves as a pythonlist
.- Return type
Modifying the returned sequence will modify the internal state of the GpmlTopologicalLine instance:
sections = topological_line.get_sections() # Append a section sections.append(pygplates.GpmlTopologicalPoint(...))