pygplates.FeatureType¶
-
class
pygplates.FeatureType¶ Bases:
Boost.Python.instanceThe namespace-qualified type of a feature.
All comparison operators (==, !=, <, <=, >, >=) are supported. FeatureType is hashable (can be used as a key in a
dict).The default feature type for
Feature()ispygplates.FeatureType.gpml_unclassified_feature(which is the same aspygplates.FeatureType.create_gpml('UnclassifiedFeature')).As a convenience the following common feature types are available as class attributes:
- pygplates.FeatureType.gpml_aseismic_ridge
- pygplates.FeatureType.gpml_basic_rock_unit
- pygplates.FeatureType.gpml_basin
- pygplates.FeatureType.gpml_closed_continental_boundary
- pygplates.FeatureType.gpml_closed_plate_boundary
- pygplates.FeatureType.gpml_coastline
- pygplates.FeatureType.gpml_continental_crust
- pygplates.FeatureType.gpml_continental_fragment
- pygplates.FeatureType.gpml_continental_rift
- pygplates.FeatureType.gpml_craton
- pygplates.FeatureType.gpml_extended_continental_crust
- pygplates.FeatureType.gpml_fault
- pygplates.FeatureType.gpml_flowline
- pygplates.FeatureType.gpml_fold_plane
- pygplates.FeatureType.gpml_fracture_zone
- pygplates.FeatureType.gpml_fracture_zone_identification
- pygplates.FeatureType.gpml_geological_lineation
- pygplates.FeatureType.gpml_geological_plane
- pygplates.FeatureType.gpml_hot_spot
- pygplates.FeatureType.gpml_hot_spot_trail
- pygplates.FeatureType.gpml_inferred_paleo_boundary
- pygplates.FeatureType.gpml_island_arc
- pygplates.FeatureType.gpml_isochron
- pygplates.FeatureType.gpml_large_igneous_province
- pygplates.FeatureType.gpml_magnetic_anomaly_identification
- pygplates.FeatureType.gpml_magnetic_anomaly_lineation
- pygplates.FeatureType.gpml_magnetic_anomaly_ship_track
- pygplates.FeatureType.gpml_mid_ocean_ridge
- pygplates.FeatureType.gpml_motion_path
- pygplates.FeatureType.gpml_oceanic_crust
- pygplates.FeatureType.gpml_ophiolite
- pygplates.FeatureType.gpml_orogenic_belt
- pygplates.FeatureType.gpml_passive_continental_boundary
- pygplates.FeatureType.gpml_pluton
- pygplates.FeatureType.gpml_pseudo_fault
- pygplates.FeatureType.gpml_seamount
- pygplates.FeatureType.gpml_slab_edge
- pygplates.FeatureType.gpml_subduction_zone
- pygplates.FeatureType.gpml_suture
- pygplates.FeatureType.gpml_terrane_boundary
- pygplates.FeatureType.gpml_topological_closed_plate_boundary
- pygplates.FeatureType.gpml_topological_network
- pygplates.FeatureType.gpml_topological_slab_boundary
- pygplates.FeatureType.gpml_total_reconstruction_sequence
- pygplates.FeatureType.gpml_transform
- pygplates.FeatureType.gpml_transitional_crust
- pygplates.FeatureType.gpml_unconformity
- pygplates.FeatureType.gpml_unknown_contact
- pygplates.FeatureType.gpml_virtual_geomagnetic_pole
- pygplates.FeatureType.gpml_volcano
-
__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 FeatureTypeinstance from a fully qualified name string.create_gpml(name)[staticmethod] Create a feature type qualified with the gpml:prefix (gpml:+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
gpml_aseismic_ridgegpml_basic_rock_unitgpml_basingpml_closed_continental_boundarygpml_closed_plate_boundarygpml_coastlinegpml_continental_crustgpml_continental_fragmentgpml_continental_riftgpml_cratongpml_extended_continental_crustgpml_faultgpml_flowlinegpml_fold_planegpml_fracture_zonegpml_fracture_zone_identificationgpml_geological_lineationgpml_geological_planegpml_hot_spotgpml_hot_spot_trailgpml_inferred_paleo_boundarygpml_island_arcgpml_isochrongpml_large_igneous_provincegpml_magnetic_anomaly_identificationgpml_magnetic_anomaly_lineationgpml_magnetic_anomaly_ship_trackgpml_mid_ocean_ridgegpml_motion_pathgpml_oceanic_crustgpml_ophiolitegpml_orogenic_beltgpml_passive_continental_boundarygpml_plutongpml_pseudo_faultgpml_seamountgpml_slab_edgegpml_subduction_zonegpml_suturegpml_terrane_boundarygpml_topological_closed_plate_boundarygpml_topological_networkgpml_topological_slab_boundarygpml_total_reconstruction_sequencegpml_transformgpml_transitional_crustgpml_unclassified_featuregpml_unconformitygpml_unknown_contactgpml_virtual_geomagnetic_polegpml_volcano-
static
create_from_qualified_string(name)¶ [staticmethod] Creates a
FeatureTypeinstance from a fully qualified name string.Parameters: name (string) – qualified name Return type: FeatureTypeor NoneThe name string should have a
:character separating the namespace alias from the unqualified name, for examplegpml:Coastline. 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.feature_type = pygplates.FeatureType.create_from_qualified_string('gpml:Coastline')
-
static
create_gpml(name)¶ [staticmethod] Create a feature type qualified with the
gpml:prefix (gpml:+name).Parameters: name (string) – unqualified name Return type: FeatureTypegpml_coastline_feature_type = pygplates.FeatureType.create_gpml('Coastline')
-
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,
Coastline.
-
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:Coastline.