Skip to main content

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!

 

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.


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.


Reply