pygplates.ResolvedTopologicalNetwork
- class pygplates.ResolvedTopologicalNetwork
Bases:
pygplates.ReconstructionGeometry
The geometry of a topological network feature resolved to a geological time.
The
resolve_topologies()
function can be used to generate ResolvedTopologicalNetwork instances.- __init__()
Raises an exception This class cannot be instantiated from Python
Methods
Raises an exception This class cannot be instantiated from Python
Returns the
sub-segments
that make up the boundary of this resolved topological network.Returns the feature associated with this
ResolvedTopologicalNetwork
.Returns the feature property containing the topological network property associated with this
ResolvedTopologicalNetwork
.get_reconstruction_time
()Returns the reconstruction time that this instance was created at.
Returns the resolved boundary of this network.
Returns a feature containing the resolved boundary geometry.
Same as
get_resolved_boundary()
.- get_boundary_sub_segments()
Returns the
sub-segments
that make up the boundary of this resolved topological network.- Return type
list of
ResolvedTopologicalSubSegment
To get a list of the unreversed boundary sub-segment geometries:
sub_segment_geometries = [] for sub_segment in resolved_topological_network.get_boundary_sub_segments(): sub_segment_geometries.append(sub_segment.get_resolved_geometry())
To get a list of sub-segment geometries with points in the same order as this topological network boundary:
sub_segment_geometries = [] for sub_segment in resolved_topological_network.get_boundary_sub_segments(): sub_segment_geometry = sub_segment.get_resolved_geometry() if sub_segment.was_geometry_reversed_in_topology(): # Create a new sub-segment polyline with points in reverse order. sub_segment_geometry = pygplates.PolylineOnSphere(sub_segment_geometry[::-1]) sub_segment_geometries.append(sub_segment_geometry)
The following is essentially equivalent to
get_resolved_boundary (except rubber banding points, if any, between adjacent sub-segments are included below but not in :meth:`get_resolved_boundary()
):def get_resolved_boundary(resolved_topological_network): resolved_boundary_points = [] for sub_segment in resolved_topological_network.get_boundary_sub_segments(): sub_segment_points = sub_segment.get_resolved_geometry().get_points() if sub_segment.was_geometry_reversed_in_topology(): # Reverse the sub-segment points. sub_segment_points = sub_segment_points[::-1] resolved_boundary_points.extend(sub_segment_points) return pygplates.PolygonOnSphere(resolved_boundary_points)
- get_feature()
Returns the feature associated with this
ResolvedTopologicalNetwork
.- Return type
Note
The returned feature is what was used to generate this
ResolvedTopologicalNetwork
viaresolve_topologies()
.See also
- get_property()
Returns the feature property containing the topological network property associated with this
ResolvedTopologicalNetwork
.- Return type
This is the
Property
that theget_resolved_boundary()
is obtained from.
- get_resolved_boundary()
Returns the resolved boundary of this network.
- Return type
- get_resolved_feature()
Returns a feature containing the resolved boundary geometry.
- Return type
The returned feature contains the static
resolved geometry
. Unlikeget_feature()
it cannot be used to generate aResolvedTopologicalNetwork
viaresolve_topologies()
.Note
The returned feature does not contain present-day geometry as is typical of most GPlates features.In this way the returned feature is similar to a GPlates reconstruction export.Note
The returned feature should not be
reverse reconstructed
to present day because topologies are resolved (not reconstructed).See also
- get_resolved_geometry()
Same as
get_resolved_boundary()
.