Geometric operations for geometry objects. More...

Public Member Functions

def intersect
 Intersects a polyline with a polygon object (clipping)
def intersect
 intersection of two polygons

Static Public Member Functions

def difference
 difference of two polygons (polygon1 \ polygon2)
def intersect
 Intersects a polyline with a polygon object (clipping)
def join
 join of two polygons (polygon1 'or' polygon2)
def symmetric_difference
 symmetric difference of two polygons ((polygon1 \ polygon2) 'or' (polygon2 \ polygon1))

Detailed Description

Geometric operations for geometry objects.

Member Function Documentation

def difference (   polygon1,
  polygon2 
)
static

difference of two polygons (polygon1 \ polygon2)

def intersect (   line,
  polygon,
  keepPointOrder = False,
  ignorePolygonHeights = False 
)
static

Intersects a polyline with a polygon object (clipping)

The intersection process is done in 2D. The heights of new points will be computed from the height information of the corresponding intersecting segments. In case both segments have height information available, the height at the new point will be averaged. This behavior can be changed by enabling or disabling the ignorePolygonHeights flag. If the flag is disabled (=default behavior) height information of polygon vertices will be ignored for height computation of new points. Hence, only the polyline height values will play a roll.

Parameters
[in]linepolyline object to be clipped (object stays unchanged)
[in]polygonpolygon object use for clipping
[in]keepPointOrderFlag if orientation of the resulting line should be preserved (e.g. important for profiles). If the orientation is irrelevant disable the flag to improve processing speed.
[in]ignorePolygonHeightsenabling or disabling heights of polygon vertices for compute new points (see details)
Returns
clipped polyline object

Referenced by GeometricOperations.intersect().

def intersect (   polygon,
  line,
  keepPointOrder = False,
  ignorePolygonHeights = False 
)

Intersects a polyline with a polygon object (clipping)

The intersection process is done in 2D. The heights of new points will be computed from the height information of the corresponding intersecting segments. In case both segments have height information available, the height at the new point will be averaged. This behavior can be changed by enabling or disabling the ignorePolygonHeights flag. If the flag is disabled (=default behavior) height information of polygon vertices will be ignored for height computation of new points. Hence, only the polyline height values will play a roll.

Parameters
[in]linepolyline object to be clipped (object stays unchanged)
[in]polygonpolygon object use for clipping
[in]keepPointOrderFlag if orientation of the resulting line should be preserved (e.g. important for profiles). If the orientation is irrelevant disable the flag to improve processing speed.
[in]ignorePolygonHeightsenabling or disabling heights of polygon vertices for compute new points (see details)
Returns
clipped polyline object

References GeometricOperations.intersect().

def intersect (   polygon1,
  polygon2 
)

intersection of two polygons

Parameters
polygon1(type: Polygon) mandatory parameter
polygon2(type: Polygon) mandatory parameter
Returns
(type: Polygon)

References GeometricOperations.intersect().

def join (   polygon1,
  polygon2 
)
static

join of two polygons (polygon1 'or' polygon2)

def symmetric_difference (   polygon1,
  polygon2 
)
static

symmetric difference of two polygons ((polygon1 \ polygon2) 'or' (polygon2 \ polygon1))