Hi @dfresh,
Did you try to use a PythonCaller and a scrpit to get the coordinatesystem:
import fme
import fmeobjects
def _sistema_coord(feature):
   Â
    csMgr = fmeobjects.FMECoordSysManager() # call coord system
   Â
    cs = feature.getCoordSys()  #get the coord system of features
  Â
    if cs != None and cs != '':
       Â
        params = csMgr.getCoordSysParms(cs)
        if 'EPSG' in params:
           Â
            loc = params.index('EPSG') + 1 Â
            feature.setAttribute('EPSG',params loc])
But i believe to need to have a feature beforr this transformer.
Thanks,
Danilo
Hi @dfresh,
Did you try to use a PythonCaller and a scrpit to get the coordinatesystem:
import fme
import fmeobjects
def _sistema_coord(feature):
   Â
    csMgr = fmeobjects.FMECoordSysManager() # call coord system
   Â
    cs = feature.getCoordSys()  #get the coord system of features
  Â
    if cs != None and cs != '':
       Â
        params = csMgr.getCoordSysParms(cs)
        if 'EPSG' in params:
           Â
            loc = params.index('EPSG') + 1 Â
            feature.setAttribute('EPSG',params loc])
But i believe to need to have a feature beforr this transformer.
Thanks,
Danilo
yes you do need a feature, so this one wont solve it.
Â
Â
Hi @dfresh,
If you use the Esri Geodatabase (ArcObjects) reader, you have the option to set the Feature Read Mode to Metadata. This will allow the reader to return a metadata feature for each feature class.
The metadata feature geometry will be the bounds of the feature class, in the feature class coordinate system, so you can use a CoordinateSystemExtractor to get the coordinate system name in an attribute.
If you want the Esri WKT for this coordinate system, you can use the CoordinateSystemDescriptionConverter transformer to convert the attribute containing the FME coordinate system name to Esri WKT.
Hi @dfresh,
If you use the Esri Geodatabase (ArcObjects) reader, you have the option to set the Feature Read Mode to Metadata. This will allow the reader to return a metadata feature for each feature class.
The metadata feature geometry will be the bounds of the feature class, in the feature class coordinate system, so you can use a CoordinateSystemExtractor to get the coordinate system name in an attribute.
If you want the Esri WKT for this coordinate system, you can use the CoordinateSystemDescriptionConverter transformer to convert the attribute containing the FME coordinate system name to Esri WKT.
Thanks @DaveAtSafe
Â
you solved it, I completely forgot about the metadata feature read mode. this is exactly what I need. thanks!!