[gdal-dev] geospatialPDF DPI and EXTRA_IMAGES

Luca Delucchi lucadeluge at gmail.com
Thu May 26 00:38:21 PDT 2016


On 25 May 2016 at 17:12, Even Rouault <even.rouault at spatialys.com> wrote:

> The following extract from the driver should hopefully answer your questions :
>

more or less yes, now I understood a little bit more but..

>     double dfUserUnit = dfDPI * USER_UNIT_IN_INCH;
>     double dfWidthInUserUnit = nWidth / dfUserUnit + sMargins.nLeft + sMargins.nRight;
>     double dfHeightInUserUnit = nHeight / dfUserUnit + sMargins.nBottom + sMargins.nTop;
>
> --> nWidth and nHeight are the dimensions of the source raster in pixel.
>

if I have no raster how can I found this two values?


-- 
ciao
Luca

www.lucadelu.org


More information about the gdal-dev mailing list