fmeobjects.FMELibrary.replaceGeometryDefinition

FMELibrary.replaceGeometryDefinition(geometryDefinitionReference, newGeometryDefinition)

Replaces the GeometryDefinition with a new one at index = ‘geometryDefinitionReference’. A FMEException is thrown if ‘newGeometryDefinition’ is None, ‘geometryDefinitionReference’ is not a valid index or the existing shared object is not a geometry definition type.

Parameters
  • geometryDefinitionReference (int) – The index of the geometry to replace.

  • newGeometryDefinition (FMEGeometry) – The new geometry definition to replace the original with.

Return type

None

Raises

FMEException – An exception is raised if an error occurred.