pygplates.PropertyName
- class pygplates.PropertyName
Bases:
instance
The namespace-qualified name of a property.
All comparison operators (==, !=, <, <=, >, >=) are supported. PropertyName is hashable (can be used as a key in a
dict
).As a convenience the following common property names are available as class attributes:
pygplates.PropertyName.gpml_rift_edgeLength_threshold_degrees
pygplates.PropertyName.gpml_rift_exponential_stretching_constant
pygplates.PropertyName.gpml_rift_strain_rate_resolution_log10
As a convenience the following common
enumeration
property names are available as class attributes:As a convenience the following common geometry property names are available as class attributes:
A PropertyName can also be pickled.
Changed in version 0.42: Added pickle support.
Changed in version 0.49: Added attributes gpml_rift_edgeLength_threshold_degrees, gpml_rift_exponential_stretching_constant, gpml_rift_left_plate, gpml_rift_right_plate and gpml_rift_strain_rate_resolution_log10.
- __init__()
You cannot directly instantiate this class from Python.
Note
This constructor is only provided for pickle support.
Methods
You cannot directly instantiate this class from Python.
[staticmethod] Creates a
PropertyName
instance from a fully qualified name string.create_gml
(name)[staticmethod] Create a property name qualified with the
gml:
prefix (gml:
+name
).create_gpml
(name)[staticmethod] Create a property name qualified with the
gpml:
prefix (gpml:
+name
).create_xsi
(name)[staticmethod] Create a property name qualified with the
xsi:
prefix (xsi:
+name
).get_name
()Returns the unqualified name.
Returns the namespace URI.
Returns the namespace alias.
Returns the fully qualified name.
Attributes
gml_description
gml_name
gml_valid_time
gpml_absolute_reference_frame
gpml_average_age
gpml_average_declination
gpml_average_inclination
gpml_average_sample_site_position
gpml_boundary
gpml_center_line_of
gpml_conjugate_plate_id
gpml_crust
gpml_dip_side
gpml_dip_slip
gpml_edge
gpml_error_bounds
gpml_fixed_reference_frame
gpml_fold_annotation
gpml_geometry_import_time
gpml_left_plate
gpml_motion
gpml_moving_reference_frame
gpml_multi_position
gpml_network
gpml_outline_of
gpml_polarity_chron_id
gpml_polarity_chron_offset
gpml_polarity_chron_orientation
gpml_pole_a95
gpml_pole_dm
gpml_pole_dp
gpml_pole_position
gpml_position
gpml_primary_slip_component
gpml_quality
gpml_reconstruction_method
gpml_reconstruction_plate_id
gpml_relative_plate
gpml_rift_edgeLength_threshold_degrees
gpml_rift_exponential_stretching_constant
gpml_rift_left_plate
gpml_rift_right_plate
gpml_rift_strain_rate_resolution_log10
gpml_right_plate
gpml_seed_points
gpml_shapefile_attributes
gpml_side
gpml_strike_slip
gpml_subduction_polarity
gpml_times
gpml_total_reconstruction_pole
gpml_unclassified_geometry
- static create_from_qualified_string(name)
[staticmethod] Creates a
PropertyName
instance from a fully qualified name string.- Parameters:
name (string) – qualified name
- Return type:
PropertyName
or None
The name string should have a
:
character separating the namespace alias from the unqualified name, for examplegpml:reconstructionPlateId
. If the namespace alias is not recognised (asgpml
,gml
orxsi
) thengpml
is assumed.An over-qualified name string (eg, containing two or more
:
characters) will result inNone
being returned.property_name = pygplates.PropertyName.create_from_qualified_string('gpml:reconstructionPlateId')
- static create_gml(name)
[staticmethod] Create a property name qualified with the
gml:
prefix (gml:
+name
).- Parameters:
name (string) – unqualified name
- Return type:
gml_valid_time_property_name = pygplates.PropertyName.create_gml('validTime')
- static create_gpml(name)
[staticmethod] Create a property name qualified with the
gpml:
prefix (gpml:
+name
).- Parameters:
name (string) – unqualified name
- Return type:
gpml_reconstruction_plate_id_property_name = pygplates.PropertyName.create_gpml('reconstructionPlateId')
- static create_xsi(name)
[staticmethod] Create a property name qualified with the
xsi:
prefix (xsi:
+name
).- Parameters:
name (string) – unqualified name
- Return type:
property_name = pygplates.PropertyName.create_xsi(name)
- get_name()
Returns the unqualified name.
- Return type:
string
This is the fully qualified name minus the
gpml:
prefix (if created with create_gpml()).For example,
reconstructionPlateId
.
- get_namespace()
Returns the namespace URI.
- Return type:
string
For example, the
gpml
namespace alias has the namespacehttp://www.gplates.org/gplates
.
- get_namespace_alias()
Returns the namespace alias.
- Return type:
string
For example,
gpml
(if created with create_gpml()).
- to_qualified_string()
Returns the fully qualified name.
- Return type:
string
For example,
gpml:reconstructionPlateId
.