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:
- Returns:
The scaled geometry. Note: This method returns a terminal geometry type of the
FMEGeometry
; i.e. one of the leaf classes in theFMEGeometry
inheritance graph. For example, aFMESimpleArea
is returned if the geometry truly is a simple area.- Raises:
FMEException – An exception is raised if an error occurred.