cityImage.angle_line_geometries#

cityImage.angle_line_geometries(line_geometryA, line_geometryB, degree=False, calculation_type='vector')[source]#

Given two LineStrings it computes the angle between them. Returns value in degrees or radians.

Parameters:
  • line_geometryA (LineString) – The first line.

  • line_geometryB (LineString) – The other line; it must share a vertex with line_geometryA.

  • degree (boolean) – If True it returns value in degree, otherwise in radians.

  • calculation_type (string) – One of: ‘vectors’, ‘angular_change’, ‘deflection’: -‘vectors’: computes angle between vectors. -‘angular_change’: computes angle of incidence between the two lines. -‘deflection’: computes angle of incidence between the two lines, on the basis of the vertex in common and the second following(intermediate, if existing) vertexes forming each of the line.

  • Returns

  • ----------

  • angle (float) – The resulting angle in radians or degrees.