[gdal-dev] How to write many raster layers into PDF?

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Thu Aug 30 02:15:15 PDT 2012


Even Rouault wrote: 


> There would be some difficulties in implementing a EXTRA_DATASETS option.
> Mainly to deal with possible different projections and/or different
> georeferenced extents. For example, when inputs are in different
> projections and/or have different extent, should they be
> reprojected/mosaiced to overlap on each other, with a common
> georeferencing, or should they be handled as map insets (a bit like Hawaï is
> represented in a USA map), each one with its own georeferencing info.
> Nothing that can't be solved, but would need some work.

I was thinking about something simple like taking the extents from the master raster layer and clipping extra layers with it. Equivalent to running gdal_translate -projwin ulx uly lrx lry and appending what gets clipped as a new PDF layer. OGR layers are already trimmed this way.

-Jukka Rahkonen-



More information about the gdal-dev mailing list