Skip to main content
Question

Issues using geometry as a parameter for WorkspaceRunner?

  • September 21, 2023
  • 2 replies
  • 39 views

Hello!

 

I have a workspace selecting a feature then passing its geometry into a different workspace for analysis:

imageHowever, I receive these messages and the second workspace doesn't run:

WorkspaceRunner_CleanerUpperOfBatchesInitiator (CreationFactory): Created 1 features

WorkspaceRunner_CleanerUpperOfBatchesDoWeNeedToDoIt (TestFactory): Tested 1 input feature(s) -- 0 feature(s) passed and 1 feature(s) failed

WorkspaceRunner_CleanerUpperOfBatchesRunner (TestFactory): Tested 0 input feature(s) -- 0 feature(s) passed and 0 feature(s) failed

 

Here is the Geometry Extractor:

image 

Here is the WorkspaceRunner:

image 

Troubleshooting:

When I removed the geometry as a parameter for the second workspace, the WorkspaceRunner succeeded. If I copy the GeoJSON text directly into the analysis boundary box, WorkspaceRunner succeeds as well.

 

I would love some guidance on this! Thank you!

 

2 replies

nielsgerrits
VIP
Forum|alt.badge.img+54

I can reproduce your issue. Not exactly sure what causes this but I suspect the GeoJSON is interfering with workbench using JSON to start the child workspace.

 

You can use GeoJSON, but you have to URL Encode it using a TextEncoder in the parent workspace. Then put a TextDecoder before the GeometryReplacer in the child workspace.


virtualcitymatt
Celebrity
Forum|alt.badge.img+35
nielsgerrits wrote:

I can reproduce your issue. Not exactly sure what causes this but I suspect the GeoJSON is interfering with workbench using JSON to start the child workspace.

 

You can use GeoJSON, but you have to URL Encode it using a TextEncoder in the parent workspace. Then put a TextDecoder before the GeometryReplacer in the child workspace.

Yeah, I found a similar issue in the FME Server web UI when picking GeoJSON geometry - The issue was certain characters we not getting escaped. Great idea to use the TextEncoder here.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings