pygplates.PropertyName
- class pygplates.PropertyName
Bases:
instanceThe 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
enumerationproperty 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
PropertyNameinstance 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_descriptiongml_namegml_valid_timegpml_absolute_reference_framegpml_average_agegpml_average_declinationgpml_average_inclinationgpml_average_sample_site_positiongpml_boundarygpml_center_line_ofgpml_conjugate_plate_idgpml_crustgpml_dip_sidegpml_dip_slipgpml_edgegpml_error_boundsgpml_fixed_reference_framegpml_fold_annotationgpml_geometry_import_timegpml_left_plategpml_motiongpml_moving_reference_framegpml_multi_positiongpml_networkgpml_outline_ofgpml_polarity_chron_idgpml_polarity_chron_offsetgpml_polarity_chron_orientationgpml_pole_a95gpml_pole_dmgpml_pole_dpgpml_pole_positiongpml_positiongpml_primary_slip_componentgpml_qualitygpml_reconstruction_methodgpml_reconstruction_plate_idgpml_relative_plategpml_rift_edgeLength_threshold_degreesgpml_rift_exponential_stretching_constantgpml_rift_left_plategpml_rift_right_plategpml_rift_strain_rate_resolution_log10gpml_right_plategpml_seed_pointsgpml_shapefile_attributesgpml_sidegpml_strike_slipgpml_subduction_polaritygpml_timesgpml_total_reconstruction_polegpml_unclassified_geometry- static create_from_qualified_string(name)
[staticmethod] Creates a
PropertyNameinstance from a fully qualified name string.- Parameters:
name (string) – qualified name
- Return type:
PropertyNameor 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,gmlorxsi) thengpmlis assumed.An over-qualified name string (eg, containing two or more
:characters) will result inNonebeing 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
gpmlnamespace 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.