fmeobjects.FMEGeometryInstance.setGeometryDefinitionReference

FMEGeometryInstance.setGeometryDefinitionReference()

setGeometryDefinitionReference(gdReference),

This method sets the geometry definition reference of this geometry instance.

If ‘gdReference’ reference was not found in the library, it will still attach the reference to the instance, but this is an unhealthy situation as it represents a ‘dangling reference’ and the user should remedy this by either adding a Geometry Definition with that exact reference to the library, or else remove the reference from this geometry instance.

Parameters:

gdReference (int) – A valid geometry definition reference to a geometry definition stored in the FMELibrary.

Return type:

None

Raises:

FMEException – An exception is raised if an error occurred or the reference was not found in the library and a dangling reference was attached.