fmeobjects.FMEGeometryTools.join

FMEGeometryTools.join(firstGeom, secondGeom, aggregatable)

This routine joins two geometries together. Options applying to joining will affect the result. Both geometries will be taken ownership if the result is successful. If the joining of two geometries doesn’t make any sense, put them into an aggregate. For example: one ellipse and one line

Parameters:
  • firstGeom (FMEGeometry) – The first geometry to join.

  • secondGeom (FMEGeometry) – The second geometry to join.

  • aggregatable (bool) – Boolean indictaing whether or not to combine the two geometries into an aggregate.

Return type:

FMEGeometry

Returns:

The combined geometries. Note: This method returns a terminal geometry type of the FMEGeometry; i.e. one of the leaf classes in the FMEGeometry inheritance graph. For example, a FMELine is returned if the geometry truly is a line.

Raises:

FMEException – An exception is raised if an error occurred.