fmeobjects.FMECoordSysManager.defineCoordSysFromOGCDef¶
-
FMECoordSysManager.
defineCoordSysFromOGCDef
(ogcDef, coordSysName)¶ Defines a coord system based on the OGC definition passed in.
Parameters: - ogcDef (str) – The OGC definition the coordinate system is defined from.
- coordSysName (str) –
The coordSysName is a parameter that takes in the following hint constants that define the form of the OGC definition.
- ESRI: Translate ESRI style to standard first, before getting a FME name,
- AUTODESK: Use the autodesk WKT exceptions file first before trying automated WKT conversion,
- EPSG: Translate an EPSG code to FME (needs some support files to operate),
- MAPINFO: Convert a MapInfo coordinate system string (held in the ogcDef string) to a FME name,
- PROJ4: Translate a PROJ.4 string to FME,
- ORACLE: Use the Oracle SRID to FME name exceptions file (an SRID code is excepted in the ogcDef parameter.
Return type: Returns: The name of the coordinate system that can be used within FME. If the source representation does not have a FME representation (but no errors occur) the return value will be an empty string. This could occur, for example, when no mapping exists between an Oracle SRID and a FME coordinate system.
Raises: FMEException – An FMEException is raised if there was an error.