[gdal-dev] geospatialPDF DPI and EXTRA_IMAGES
Luca Delucchi
lucadeluge at gmail.com
Mon Jun 6 07:06:01 PDT 2016
On 26 May 2016 at 17:23, Even Rouault <even.rouault at spatialys.com> wrote:
>
> Ah ok, so you create a vector dataset then ?
>
it could be both
> Here's the relevant code in pdfwritabledataset.cpp:
>
> double dfRatio = (sGlobalExtent.MaxY - sGlobalExtent.MinY) /
> (sGlobalExtent.MaxX - sGlobalExtent.MinX);
>
> int nWidth, nHeight;
>
> if (dfRatio < 1)
> {
> nWidth = 1024;
> nHeight = static_cast<int>(nWidth * dfRatio);
> }
> else
> {
> nHeight = 1024;
> nWidth = static_cast<int>(nHeight / dfRatio);
> }
>
> where sGlobalExtent is the georeferenced extent of the vectors added in the
> PDF vector layer.
>
thanks a lot, I was able to fix both raster and vector
> Even
>
--
ciao
Luca
www.lucadelu.org
More information about the gdal-dev
mailing list