pygplates.XsDouble

class pygplates.XsDouble

Bases: pygplates.PropertyValue

A property value that represents a double-precision floating-point number. Note that, in python, the float built-in type is double-precision. The ‘Xs’ prefix is there since this type of property value is associated with the XML Schema Instance Namespace.

__init__(float_value)

Create a floating-point property value from a float.

Parameters

float_value (float) – the floating-point value

float_property = pygplates.XsDouble(float_value)

Methods

__init__(float_value)

Create a floating-point property value from a float.

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_double()

Returns the floating-point value.

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.

set_double(float_value)

Sets the floating-point value.

get_double()

Returns the floating-point value.

Return type

float

set_double(float_value)

Sets the floating-point value.

Parameters

float_value (float) – the floating-point value