Quantcast
Channel: Question and Answer » gdal
Viewing all articles
Browse latest Browse all 397

OGR_LINK_FIELD to filename in a Geospatial PDF

$
0
0

Im using gdal_translate to create a Geospatial PDF. im trying to add file path to my feature when clicking on them by using:

-co OGR_LINK_FIELD=<column whit path> 

i creating my pdf in the main folder and the files that i link to is in main/images/unique.jpg

In my vrt layer is i column whit “Filepaths”.

my code is:

gdal_translate -of PDF maininput_background.tif mainoutput.pdf -co OGR_DATASOURCE=maindatavrt_input.vrt -co OGR_LINK_FIELD=Filepaths -co TILED=YES

in the shape file, used to create the vrt is column Filepaths filled whit:

/images/unique.jpg

In the resulting PDF I see that file:// is added to the link, but when i click on it it open the brwoser, but doesn’t show the image.

If i place the output pdf in the same folder as the images and set the filepath to

unique.jpg 

it opens the image.

What can be wrong? Or is it not possible to use relative paths in this ?


Viewing all articles
Browse latest Browse all 397

Trending Articles