pygplates.PropertyName¶
-
class
pygplates.PropertyName¶ Bases:
Boost.Python.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.gml_description
- pygplates.PropertyName.gml_name
- pygplates.PropertyName.gml_valid_time
- pygplates.PropertyName.gpml_average_age
- pygplates.PropertyName.gpml_average_declination
- pygplates.PropertyName.gpml_average_inclination
- pygplates.PropertyName.gpml_conjugate_plate_id
- pygplates.PropertyName.gpml_fixed_reference_frame
- pygplates.PropertyName.gpml_geometry_import_time
- pygplates.PropertyName.gpml_left_plate
- pygplates.PropertyName.gpml_moving_reference_frame
- pygplates.PropertyName.gpml_polarity_chron_id
- pygplates.PropertyName.gpml_polarity_chron_offset
- pygplates.PropertyName.gpml_pole_a95
- pygplates.PropertyName.gpml_pole_dm
- pygplates.PropertyName.gpml_pole_dp
- pygplates.PropertyName.gpml_reconstruction_method
- pygplates.PropertyName.gpml_reconstruction_plate_id
- pygplates.PropertyName.gpml_relative_plate
- pygplates.PropertyName.gpml_right_plate
- pygplates.PropertyName.gpml_shapefile_attributes
- pygplates.PropertyName.gpml_times
- pygplates.PropertyName.gpml_total_reconstruction_pole
As a convenience the following common
enumerationproperty names are available as class attributes:- pygplates.PropertyName.gpml_absolute_reference_frame
- pygplates.PropertyName.gpml_crust
- pygplates.PropertyName.gpml_dip_side
- pygplates.PropertyName.gpml_dip_slip
- pygplates.PropertyName.gpml_edge
- pygplates.PropertyName.gpml_fold_annotation
- pygplates.PropertyName.gpml_motion
- pygplates.PropertyName.gpml_polarity_chron_orientation
- pygplates.PropertyName.gpml_primary_slip_component
- pygplates.PropertyName.gpml_quality
- pygplates.PropertyName.gpml_side
- pygplates.PropertyName.gpml_strike_slip
- pygplates.PropertyName.gpml_subduction_polarity
As a convenience the following common geometry property names are available as class attributes:
- pygplates.PropertyName.gpml_average_sample_site_position
- pygplates.PropertyName.gpml_boundary
- pygplates.PropertyName.gpml_center_line_of
- pygplates.PropertyName.gpml_error_bounds
- pygplates.PropertyName.gpml_multi_position
- pygplates.PropertyName.gpml_network
- pygplates.PropertyName.gpml_outline_of
- pygplates.PropertyName.gpml_pole_position
- pygplates.PropertyName.gpml_position
- pygplates.PropertyName.gpml_seed_points
- pygplates.PropertyName.gpml_unclassified_geometry
-
__init__()¶ Raises an exception This class cannot be instantiated from Python
Methods
__init__Raises an exception This class cannot be instantiated from Python create_from_qualified_string(name)[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. get_namespace()Returns the namespace URI. get_namespace_alias()Returns the namespace alias. to_qualified_string()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_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 NoneThe 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: PropertyNamegml_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: PropertyNamegpml_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: PropertyNameproperty_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.