fmeobjects.FMECoordSysManager.defineEllipsoid

FMECoordSysManager.defineEllipsoid(ellipsoidName, ellipsoidParams)

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

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

  • ellipsoidParams (list[str] or dict[str, str]) – A pairwise list of ellipsoid definition parameters, and their values. (i.e. entry 0 is an ellipsoid definition keyword, as defined in the coordinate systems section of the FME Reference Manual section 8.7.1, and entry 1 is its value. 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.