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() is pygplates.FeatureType.gpml_unclassified_feature (which is the same as pygplates.FeatureType.create_gpml('UnclassifiedFeature')).

As a convenience the following common feature types are available as class attributes:

__init__()

Raises an exception This class cannot be instantiated from Python

Methods

__init__ Raises an exception
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
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 None

The name string should have a : character separating the namespace alias from the unqualified name, for example gpml:Coastline. If the namespace alias is not recognised (as gpml, gml or xsi) then gpml is assumed.

An over-qualified name string (eg, containing two or more : characters) will result in None being returned.

feature_type = pygplates.FeatureType.create_from_qualified_string('gpml:Coastline')
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 namespace http://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.

Previous topic

pygplates.FeatureId

Next topic

pygplates.PropertyName

This Page