pygplates.FeatureType¶
-
class
pygplates.
FeatureType
¶ Bases:
Boost.Python.instance
The 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 FeatureType
instance 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_ridge
gpml_basic_rock_unit
gpml_basin
gpml_closed_continental_boundary
gpml_closed_plate_boundary
gpml_coastline
gpml_continental_crust
gpml_continental_fragment
gpml_continental_rift
gpml_craton
gpml_extended_continental_crust
gpml_fault
gpml_flowline
gpml_fold_plane
gpml_fracture_zone
gpml_fracture_zone_identification
gpml_geological_lineation
gpml_geological_plane
gpml_hot_spot
gpml_hot_spot_trail
gpml_inferred_paleo_boundary
gpml_island_arc
gpml_isochron
gpml_large_igneous_province
gpml_magnetic_anomaly_identification
gpml_magnetic_anomaly_lineation
gpml_magnetic_anomaly_ship_track
gpml_mid_ocean_ridge
gpml_motion_path
gpml_oceanic_crust
gpml_ophiolite
gpml_orogenic_belt
gpml_passive_continental_boundary
gpml_pluton
gpml_pseudo_fault
gpml_seamount
gpml_slab_edge
gpml_subduction_zone
gpml_suture
gpml_terrane_boundary
gpml_topological_closed_plate_boundary
gpml_topological_network
gpml_topological_slab_boundary
gpml_total_reconstruction_sequence
gpml_transform
gpml_transitional_crust
gpml_unclassified_feature
gpml_unconformity
gpml_unknown_contact
gpml_virtual_geomagnetic_pole
gpml_volcano
-
static
create_from_qualified_string
(name)¶ [staticmethod] Creates a
FeatureType
instance from a fully qualified name string.Parameters: name (string) – qualified name Return type: FeatureType
or 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
,gml
orxsi
) thengpml
is assumed.An over-qualified name string (eg, containing two or more
:
characters) will result inNone
being 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: FeatureType
gpml_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
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:Coastline
.