Hi,
I have 2 datasets in my workspace and I want to use "PythonCreator" transformer to create a new feature base on those datasets in my workspace but I don't know how to use workspace datasets in "PythonCreator" transformer. Could you help me?
Hi,
I have 2 datasets in my workspace and I want to use "PythonCreator" transformer to create a new feature base on those datasets in my workspace but I don't know how to use workspace datasets in "PythonCreator" transformer. Could you help me?
Hi @nafise, if FME supports the data format, you could use the FMEUniversalReader class from FME Objects Python API to implement to read features from a dataset.
In personal opinion, however, generally there is no advantage to do so, since using the API class is equivalent to use a regular FME reader. Further, using a regular reader (or the FeatureReader transformer) would be much easier and also much more robust.
Why do you need to use the PythonCreator to read features from the datasets?
Hi @nafise, if FME supports the data format, you could use the FMEUniversalReader class from FME Objects Python API to implement to read features from a dataset.
In personal opinion, however, generally there is no advantage to do so, since using the API class is equivalent to use a regular FME reader. Further, using a regular reader (or the FeatureReader transformer) would be much easier and also much more robust.
Why do you need to use the PythonCreator to read features from the datasets?
Hi @nafise, if FME supports the data format, you could use the FMEUniversalReader class from FME Objects Python API to implement to read features from a dataset.
In personal opinion, however, generally there is no advantage to do so, since using the API class is equivalent to use a regular FME reader. Further, using a regular reader (or the FeatureReader transformer) would be much easier and also much more robust.
Why do you need to use the PythonCreator to read features from the datasets?
Hi @nafise, if FME supports the data format, you could use the FMEUniversalReader class from FME Objects Python API to implement to read features from a dataset.
In personal opinion, however, generally there is no advantage to do so, since using the API class is equivalent to use a regular FME reader. Further, using a regular reader (or the FeatureReader transformer) would be much easier and also much more robust.
Why do you need to use the PythonCreator to read features from the datasets?
What are the criteria merge the data from a "cable_BOM" feature to a "cable" feature?
Hi @nafise, if FME supports the data format, you could use the FMEUniversalReader class from FME Objects Python API to implement to read features from a dataset.
In personal opinion, however, generally there is no advantage to do so, since using the API class is equivalent to use a regular FME reader. Further, using a regular reader (or the FeatureReader transformer) would be much easier and also much more robust.
Why do you need to use the PythonCreator to read features from the datasets?
In general my question is how
I would still consider using the FeatureMerger for this scenario. The PythonCaller isn't really equipped to merge datasets, especially large datasets.
If you have several join cases, consider using e.g. a TestFilter to separate the different join cases and send them to different FeatureMergers set up for each join case.
If your data resides in a SQL database, you might also want to consider the SQLCreator and using database joins in your select statement. For large datasets this would be much faster than using a FeatureMerger.
Hi @nafise, if FME supports the data format, you could use the FMEUniversalReader class from FME Objects Python API to implement to read features from a dataset.
In personal opinion, however, generally there is no advantage to do so, since using the API class is equivalent to use a regular FME reader. Further, using a regular reader (or the FeatureReader transformer) would be much easier and also much more robust.
Why do you need to use the PythonCreator to read features from the datasets?
However, I still think that there might be easier way. We could think of that, if you clarify the conditions for merging more specifically.
Hi @nafise, if FME supports the data format, you could use the FMEUniversalReader class from FME Objects Python API to implement to read features from a dataset.
In personal opinion, however, generally there is no advantage to do so, since using the API class is equivalent to use a regular FME reader. Further, using a regular reader (or the FeatureReader transformer) would be much easier and also much more robust.
Why do you need to use the PythonCreator to read features from the datasets?