mt.geo2d.shapely
Support for shapely.
Functions
join_volume_shapely()
: Joins the areas of two 2D geometry objects supporting shapely.
- mt.geo2d.shapely.join_volume_shapely(obj1: HasShapely, obj2: HasShapely)
Joins the areas of two 2D geometry objects supporting shapely.
- Parameters:
obj1 (HasShapely) – the first 2D geometry object
obj2 (HasShapely) – the second 2D geometry object
- Returns:
intersection_area (float) – the area of the intersection of the two objects’ interior regions
obj1_only_area (float) – the area of the interior of obj1 that does not belong to obj2
obj2_only_area (float) – the area of the interior of obj2 that does not belong to obj1
union_area (float) – the area of the union of the two objects’ interior regions
Classes
HasShapely
: Mixin to assert that the geometric object has the ‘shapely’ property.
- class mt.geo2d.shapely.HasShapely
Mixin to assert that the geometric object has the ‘shapely’ property.
Inheritance
digraph inheritance83fa44405d { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "HasShapely" [URL="#mt.geo2d.shapely.HasShapely",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Mixin to assert that the geometric object has the 'shapely' property."]; }- __weakref__
list of weak references to the object (if defined)
- property shapely
Shapely representation for fast intersection operations. Noe that shapely treats signed and unsigned regions equally.