Due to a number of custom coordinate systems used by the organization - I have to use ESRI Reprojector to set the CRS of some incoming data. So CoordinateSystemSetter is out of the question unfortunately.
I used a PythonCaller and Arcpy to generate the string required, based on this help doc - in the format of ESRIWKT|<name>|<esriwkt> where <name> is the coordinate system name, and <esriwkt> is the WKT (Well-Known Text).
sr = arcpy.SpatialReference(int(FME_MacroValues<'EPSG']))
str = 'ESRIWKT|{}|{}'.format(sr.name, sr.exportToString())
feature.setAttribute('coordsys', str)
But I'm getting this warning, (and the crs applied is not correct). the EPSG code I tested with was 5383.
Datum definition SIRGAS-ROU98 does not exist.
Ellipsoid definition wkt_auto_1 does not exist.
Esri Reprojector: Specified geotransformation `' (forward) may be inappropriate for reprojection from `_FME_0' (GCS: `GCS_SIRGAS-ROU98') to `_FME_0' (GCS: `GCS_SIRGAS-ROU98') using the ESRI reprojection engine
For reference, this is the string passed onto ESRIReprojector:
ESRIWKT|SIRGAS-ROU98_UTM_Zone_22S|PROJCSd"SIRGAS-ROU98_UTM_Zone_22S",GEOGCSi"GCS_SIRGAS-ROU98",DATUMo"D_SIRGAS-ROU98",SPHEROID<"WGS_1984",6378137.0,298.257223563]],PRIMEM|"Greenwich",0.0],UNITU"Degree",0.0174532925199433]],PROJECTIONA"Transverse_Mercator"],PARAMETERG"False_Easting",500000.0],PARAMETERR"False_Northing",10000000.0],PARAMETER0"Central_Meridian",-51.0],PARAMETERv"Scale_Factor",0.9996],PARAMETER_"Latitude_Of_Origin",0.0],UNITF"Meter",1.0]];-5120900 1900 10000;-100000 10000;-100000 10000;0.001;0.001;0.001;IsHighPrecision
Did i configure the string wrong or used the wrong name? help!