A few tips I can give you:
- Create a box around the point or area (2DBoxReplacer for a point, BoundingBoxReplacer) and use that to query the WMS through a FeatureReader
- Put everything in to the same input port of a PDFPageFormatter so it ends up in the same coordinate space.
- If I recall correctly you need to make sure stuff enters in the right order, or is on the right layer (which in turn are in the right order), you can manually assign attributes for that and use a Sorter, or use the pdf_layer_name attribute.
Can you share what you have done so far? That'll probably help us get you closer to what you want.
A few tips I can give you:
- Create a box around the point or area (2DBoxReplacer for a point, BoundingBoxReplacer) and use that to query the WMS through a FeatureReader
- Put everything in to the same input port of a PDFPageFormatter so it ends up in the same coordinate space.
- If I recall correctly you need to make sure stuff enters in the right order, or is on the right layer (which in turn are in the right order), you can manually assign attributes for that and use a Sorter, or use the pdf_layer_name attribute.
Can you share what you have done so far? That'll probably help us get you closer to what you want.
I've tried to simplify the workflow, and currently it looks like this:
The input is a single point from a GeoDB, which I've run through a CoordinateExtractor to get the X Y value. As suggested, I've then used a 2DBoxReplacer with +10 and -10 added to the point X Y values to create an area:
I've then run this through the FeatureReader with the WMS details included as follows:
I've given it the following attributes:
I've then run it through the PDFPageFormatter as a single output:
Finally, I've written it to a PDF2D Writer. Unfortunately, this workspace doesn't get past the FeatureReader when I run it. I'm not totally sure which output from the FeatureReader I am expecting the matched image to come from? A new feature type was populated for RGB, but this does not work.