Skip to main content

I have created a workspace based on https://community.safe.com/s/article/creating-pdf-cartographic-outputthat outputs a simple PDF. Users can input a specific attribute (via a published parameter) and query out this feature, buffer around it and the output map is centered around this feature. Background data such as hydrology, roads and text are clipped to a bounding box from the buffer and displayed to give context to the location of the queried feature.

1557762909113 

This works very well when there is only one feature as it produces a simple map zoomed to a suitable scale showing the queried feature and the surrounding background data.

1557761915372 

I would like to modify this workspace to run multiple queried features through it and produce multiple PDFs showing one queried feature per page along with its background data. I'm not sure how to achieve this. Should I be looking to use a data fanout? Or would a loop work? Any help I can get would be most appreciated.

Hi,

If I understand your needs you should use a WorkspaceRunner and work with a Parent/Child approach.

 

The parent (First workspace) will launch the child (2nd workspace) as many times as there are "queried features". With the WorkspaceRunner transformer, you will be able to manage the child parameters such as the "queried feature", the name of the pdf, etc.

 

Tell me if it's not clear ;)


Reply