pygplates.GpmlTopologicalPolygon

class pygplates.GpmlTopologicalPolygon

Bases: pygplates.PropertyValue

A topological polygon geometry that is resolved from topological sections.

New in version 0.21.

__init__(exterior_sections)

Create a topological polygon made from topological sections.

Parameters

exterior_sections (Any sequence such as a list or a tuple) – A sequence of GpmlTopologicalSection elements

topological_polygon = pygplates.GpmlTopologicalPolygon(topological_sections)

Methods

__init__(exterior_sections)

Create a topological polygon 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_boundary_sections()

Returns the boundary sections in a sequence that behaves as a python list.

get_exterior_sections()

Same as get_boundary_sections().

get_geometry()

Extracts the geometry if this property value contains a geometry.

get_value([time=0])

Extracts the value, of this possibly time-dependent property value, at the reconstruction time.

get_boundary_sections()

Returns the boundary sections in a sequence that behaves as a python list.

Return type

GpmlTopologicalSectionList

Modifying the returned sequence will modify the internal state of the GpmlTopologicalPolygon instance:

boundary_sections = topological_polygon.get_boundary_sections()

# Append a section
boundary_sections.append(pygplates.GpmlTopologicalLineSection(...))

New in version 0.24.

get_exterior_sections()

Same as get_boundary_sections().