fmeobjects.FMECoordSysManager.defineDatum

FMECoordSysManager.defineDatum(datumName, datumParams)

Defines a datum based on the parameters passed in. The datum definition is only validated on first use. If the datum was already defined, the new definition replaces the old one and no error is returned. To find out if the datum already existed, the getDatumParms call below can be used.

Parameters:
  • datumName (str) – The name that the datum can be referred to by later in coordinate system definitions.

  • datumParams (list[str] or dict[str, str]) – A list of pairwise datum definition parameters, and their values. (i.e. entry 0 is a datum definition keyword, as defined in the coordinate systems section of the FME Reference Manual section 8.6.1, and entry 1 is its value. Entry 2 is the parameter name, entry 3 is its value, and so on.) There MUST be an even number of parameters.

Return type:

None

Raises:

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