If your WKT geometry is something like this:
POLYGON((507248 137339,507484 137669,507865 137441,507629 137111,507248 137339))
You have to replace commas by <comma> before sending it to the WorkspaceRunner as in the attached example.
POLYGON((507248 137339<comma>507484 137669<comma>507865 137441<comma>507629 137111<comma>507248 137339))
You could also write the data first with a FeatureWriter, then read it back in the next workspace with a FeatureReader, optionally sending the file name through the WorkspaceRunner.
It depends on how much data we're talking about. I wouldn't send more than a few coordinate pairs via a published parameter. They just aren't built to handle that kind of activity.
Hi @rbovard, in most cases, you can pass a string value containing commas to a published user parameter with Text (Multiline) type. Try changing the type of the parameter.
"Text: Creates a parameter for entering a text string. Note: Any leading or trailing white space, commas, or other common delimiters are automatically trimmed. To maintain delimiters, use Text (Multiline)." -- Creating and Modifying User Parameters, FME Workbench Help
Hi @rbovard, in most cases, you can pass a string value containing commas to a published user parameter with Text (Multiline) type. Try changing the type of the parameter.
"Text: Creates a parameter for entering a text string. Note: Any leading or trailing white space, commas, or other common delimiters are automatically trimmed. To maintain delimiters, use Text (Multiline)." -- Creating and Modifying User Parameters, FME Workbench Help
Thanks a lot for the tip @takashi, changing the parameter type solved my issue!
You could also write the data first with a FeatureWriter, then read it back in the next workspace with a FeatureReader, optionally sending the file name through the WorkspaceRunner.
It depends on how much data we're talking about. I wouldn't send more than a few coordinate pairs via a published parameter. They just aren't built to handle that kind of activity.
Thanks for your answer. I wanted to avoid saving the data during my workflow, because I'm handling "simple" geometries.
But in more complex cases, using a FeatureWriter is the right solution.
If your WKT geometry is something like this:
POLYGON((507248 137339,507484 137669,507865 137441,507629 137111,507248 137339))
You have to replace commas by <comma> before sending it to the WorkspaceRunner as in the attached example.
POLYGON((507248 137339<comma>507484 137669<comma>507865 137441<comma>507629 137111<comma>507248 137339))
Thank you for your suggestion, the tip of @takashi is even better because it's handled directly in the parameter type.