Skip to main content

I'm slowly getting this PDF to work and have made some progress, now getting stuck in another spot. Right now the process is I clip a raster and a points shapefile by the same polygon > rotate both > and export out to a PDF. I've figured out how to rotate and align the points all neatly, but I want the raster image to fill the extent I want. Examples:

The extent I want (made from ArcMap) on top and the extent that FME outputs:

I am not an expert on this, but could the PDFPageFormatter transformer help?


Hi @apence23

Like erik_jan's comment, I would recommend the PDFPageFormatter.

You can place and resize your raster object to the extent that you want within the PDFPageFormatter.

Please ensure Maintain Aspect Ratio is set to 'Yes'. To check, right-click on blue part and select Properties from the drop-down menu.

Hope this helps,

Debbi


Hi @apence23

Like erik_jan's comment, I would recommend the PDFPageFormatter.

You can place and resize your raster object to the extent that you want within the PDFPageFormatter.

Please ensure Maintain Aspect Ratio is set to 'Yes'. To check, right-click on blue part and select Properties from the drop-down menu.

Hope this helps,

Debbi

I've always had that set to 'Yes' - I'm feeling it might have something to do with the raster still itself. When I add a border around the raster its around the square of the raster not the part that I clipped:

How do I go about getting just the imagery part to fit into the extent, not the square/noData part? Basically I need it to be a rectangle (which is the shape of the clipper)

 

 


Too add one more what I'm experiencing - is when I remove the raster completely. The clipping box and the point shapfile that was clipped are shown here at the correct extent (hard to see blue dots but they are there):


I've always had that set to 'Yes' - I'm feeling it might have something to do with the raster still itself. When I add a border around the raster its around the square of the raster not the part that I clipped:

How do I go about getting just the imagery part to fit into the extent, not the square/noData part? Basically I need it to be a rectangle (which is the shape of the clipper)

 

 

It appears like your clipped raster still has the extent of the original unclipped raster. This is not expected behaviour from the Clipper. Would you mind posting your data and workspace for a closer investigation?

 

 


It appears like your clipped raster still has the extent of the original unclipped raster. This is not expected behaviour from the Clipper. Would you mind posting your data and workspace for a closer investigation?

 

 

Let me know if this doesn't work for you and I can try sending again -geospatialpdf-2.fmw

 

Thanks for the help!
Let me know if this doesn't work for you and I can try sending again -geospatialpdf-2.fmw

 

Thanks for the help!
In your workspace, you have Preserve Clippee Extent set to 'Yes' for your raster Clipper. This was causing your raster to retain its original extent; hence the no data part was appearing in your PDF output. Change this parameter to 'No' and you should get your expected output.

 

 

 


Hi @apence23

Like erik_jan's comment, I would recommend the PDFPageFormatter.

You can place and resize your raster object to the extent that you want within the PDFPageFormatter.

Please ensure Maintain Aspect Ratio is set to 'Yes'. To check, right-click on blue part and select Properties from the drop-down menu.

Hope this helps,

Debbi

I just changed the clipper setting as you have shown below and still get the same results. Not sure what I'm still missing here. Its seems to be once I rotate the raster it loses it's extent size-

 

 


Hi @apence23

Like erik_jan's comment, I would recommend the PDFPageFormatter.

You can place and resize your raster object to the extent that you want within the PDFPageFormatter.

Please ensure Maintain Aspect Ratio is set to 'Yes'. To check, right-click on blue part and select Properties from the drop-down menu.

Hope this helps,

Debbi

I believe I have found maybe a work-around. It might take a bit of finessing to get everything to line up, but when I just create a JPEG/raster of the extent and correct rotation to what I want (made with photoshop) and pass that through to the PDFPageFormatter on a separate input than my shapefiles its more what I'm looking for. Looks like I'll just need to make sure they are all lined up perfectly- its not a solution that I like but looks like it will work in the mean time.

 

 


Reply