Solved

using image in pdf moved vector data

  • 25 November 2019
  • 3 replies
  • 2 views

Badge +9

I'm having an issue writing vector data and an image together into a pdf. The vector data is coming from a sql database, the image is from a web source. I'm using the ImageFetcher to clip the piece of image I need. The bounding box of the image comes from a buffered of all the vector data I'm writing to the pdf layer.

The vector data are pushed off into the corner when I attempt to write both the image and the vector together. I'm following the example of how to create the pdf from a sample workflow from Safe. The only difference is that the image in the sample comes from a file and mine comes from a web source.

Would appreciate help with this. Below are the workspace image, and the image of the pdf with and without the background image.

icon

Best answer by tnarladni 26 November 2019, 01:59

View original

3 replies

Userlevel 2
Badge +12

It appears like the 2 data sets (image and vector data) are not in the same coordinate system).

In that case you will need to use a Reprojector transformer to get them in the same coordinate system.

Hope this helps.

Badge +9

It appears like the 2 data sets (image and vector data) are not in the same coordinate system).

In that case you will need to use a Reprojector transformer to get them in the same coordinate system.

Hope this helps.

In the ImageFetcher, I am specifying the coordinate system of the output image which is the same coordinate system as my vector data. I also selected the lat/long of one of the vertices of the data and in the inspector of the image, that point is within the image.
Badge +9

Found the solution. For whatever reason, the ImageFetcher does not honor the coordinates of the WMS call. The size is correct, but the coordinates are off. So I'm using the RasterGeoreferencer to put the image into the correct location (I used the BoundExtractor first). Incidentally, i'm using the output from the BoundExtractor to get the correct window for the image, but those coordinates are replaced by some random coordinates.

Reply