fmeobjects.FMECoordSysManager.getCoordSysAsOGCDef

FMECoordSysManager. getCoordSysAsOGCDef ( coordSysName,ogcDef )

Gets the OGC definition of the coordinate system whose name is passed in.

Parameters:
  • coordSysName(str) – The name of the coordinate system the ogc definition is being retrieved for.
  • ogcDef(str) –

    The ‘ogcDef’ parameter takes in the following hint constants that define the form of the OGC definition.

    • ESRI: Translate to ESRI WKT format,
    • AUTODESK:Use the autodesk WKT exceptions file first before trying automated WKT conversion,
    • EPSG: Translate a FME name to an EPSG SRID code (which is also not OGC WKT at all),
    • 米APINFO: Convert a FME name to a MapInfo coordinate system string (which is also not OGC WKT at all),
    • PROJ4: Translate to a PROJ.4 string (not really OGC WKT at all of course),
    • ORACLE: Translate a FME name to an Oracle SRID code (which is also not OGC WKT at all),
    • PrettyWKT: Translate to nicely formatted WKT that is easier to read,
    • SimplifiedPrettyWKT: WKT, but strip out some of the useless stuff like AXIS definitions,
    • WKT1: Same as regular WKT but strip all parameters not listed in the Simple Features for SQL specification. This is needed for MapGuide for instance.
Return type:

str

Returns:

The target representation for the coordinate system. If the coordinate system does not have a target representation (but no errors occur) the return value will be set to an empty string. This could occur, for example, when no mapping exists between an Oracle SRID and a FME coordinate system.

Raises:

FMEException– An exception is raised if an error occurred.