gemgis.vector.calculate_dipping_angle_linestring#

gemgis.vector.calculate_dipping_angle_linestring(linestring: shapely.geometry.linestring.LineString)#

Calculating the dipping angle of a LineString digitized on a cross section

Parameters

linestring (shapely.geometry.linestring.LineString) – Shapely LineString digitized on a cross section, e.g. linestring = LineString([(0, 0), (20, 20)])

Returns

dip – Dipping angle of the LineString

Return type

float

New in version 1.0.x.

Example

>>> # Loading Libraries and creating LineString
>>> import gemgis as gg
>>> from shapely.geometry import LineString
>>> linestring = LineString([(0, 0), (20, -20)])
>>> linestring.wkt
'LINESTRING (0 0, 20 -20)'
>>> # Creating dipping angle from LineString
>>> angle = gg.vector.calculate_dipping_angle_linestring(linestring=linestring)
>>> angle
45.0

See also

calculate_angle

Calculating the angle of a LineString

calculate_strike_direction_straight_linestring

Calculating the strike direction of a straight LineString

calculate_strike_direction_bent_linestring

Calculating the strike direction of a bent LineString

calculate_dipping_angles_linestrings

Calculate the dipping angles of LineStrings

Note

The LineString must only consist of two points (start and end point)