Utils#
Utils contains functions used across multiple classes to create, edit, and plot Structures.
|
Returns the azimuth angle between two points (from x-axis). |
|
Modified modulo calculations for angles in degrees. |
|
Calculates the midpoint between two points. |
|
Returns a mirrored object along a given axis "x" or "y". |
|
Appends arbitrary line to another arbitrary line and Return the result. |
|
Calculates a polygon (aka "buffer") along the path defined by the list of point and widths. |
|
Returns a buffered a line with variable widths along its length. |
|
Calculates the position of the label in respect to the centroid of the polygon. |
|
Checks whether two points are equal and raises a ValueError if they are. |
|
Combines two LineStrings by joining them together at their endpoints |
|
Returns a list of geometries from a given geometry object. |
|
Finds the index of the closest point in a Shapely polygon to a given point. |
|
Appends line2 to line1 and returning a new LineString object. |
|
Removes holes from a MultiPolygon object containing Polygons with holes. |
|
Creates a cut line along the centroid of each hole and dissects the polygon. |
|
Calculates the coefficients (a, b, c) of the line equation Ax + By + C = 0 |
|
Calculates the intersection point of two lines represented by their coefficients. |
|
Calculates the intersection point between two line segments using a brute-force approach. |
|
Given three points and offset distances, calculates the coordinate of the offset point from the middle point. |
|
Calculates normal angles of a line at desired locations. |
|
Determines if a polygon has any interior. |
|
Offsets a point by a given distance and angle. |
|
Calculates oriented angle between vectors p1->p2 and p2->p3. |
|
Converts text to a MultiPolygon geometry. |
|
Replaces the closest polygon in a MultiPolygon with a new polygon. |
|
Rounds the corner of the closest polygon in a MultiPolygon around a given point with a specified radius. |
|
Rounds the corners of a polygon by applying a buffer operation. |
|
Rounds one corner of a Shapely polygon. |