fmeobjects.FMEGeometryTools.scale

FMEGeometryTools.scale(geometry, xscale, yscale, zscale)

The ‘zscale’ is ignored if geometry is 2D. The returned geometry may or may not be the original object that was passed in. If a different object is returned, the original object will be destroyed. If an error occurs an exception is thrown.

Parameters:
  • geometry (FMEGeometry) – The geometry to scale.

  • xscale (float) – The x scale factor.

  • yscale (float) – The y scale factor.

  • zscale (float) – The z scale factor.

Return type:

FMEGeometry

Returns:

The scaled geometry. 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 FMESimpleArea is returned if the geometry truly is a simple area.

Raises:

FMEException – An exception is raised if an error occurred.