pygplates.GmlPolygon

class pygplates.GmlPolygon

Bases: pygplates.PropertyValue

A property value representing a polygon geometry.

__init__(polygon)

Create a property value representing a polygon geometry.

Parameters

polygon (PolygonOnSphere) – the polygon geometry

polygon_property = pygplates.GmlPolygon(polygon)

Methods

__init__(polygon)

Create a property value representing a polygon geometry.

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.

get_polygon()

Returns the polygon geometry of this property value.

get_value([time=0])

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

set_polygon(polygon)

Sets the polygon geometry of this property value.

get_polygon()

Returns the polygon geometry of this property value.

Return type

PolygonOnSphere

set_polygon(polygon)

Sets the polygon geometry of this property value.

Parameters

polygon (PolygonOnSphere) – the polygon geometry