fmeobjects.FMEFactoryPipeline.addFactory

FMEFactoryPipeline. addFactory ( factoryDef,delimiter )

This method is used to add a new factory to the end of the factory pipeline. If ‘factoryDef’ is a list of strings the factory to be added is specified as a set of tokens; one token for every whitespace-delimited string in the factory definition. Each token is represented as one entry in the ‘factoryDef’ parameter. For example, the PolygonFactory show below is be specified using 20 tokens:

  • FACTORY_DEF* PolygonFactory
  • FACTORY_NAMESamplePolygon
  • 输入FEATURE_TYPE*
  • GROUP_BYsomeAttr
  • VERTEX_NODED
  • REMOVE_CORRIDORS
  • OUTPUT波尔YGONFEATURE_TYPEpoly
  • OUTPUTLINEFEATURE_TYPEline

If ‘factoryDef’ is a string, it specifies the factory to be added as an ASCII character string. The ‘delimiter’ parameter specifies the string to be used as delimiter when parsing the ‘factoryDef’ string for tokens.

Parameters:
  • factoryDef(list[str] orstr) – Specifies the factory definition to be added.
  • delimiter((Optional)str) – Only to be specified if ‘factoryDef’ is a string, defaults to .
Return type:

None

Raises:

FMEException– An FMEException is raised if there was an error.