Hi Nyall,
Thanks for your thoughts.
And how about going through GDAL/OGR and exporting vector layers twice?
One time as raster with styling preserved, and a second time as
invisible vector overlays (e.g. fully transparent but still queryable
(attributes preserved))?
My fear with upstream qt is, that:
* qt is not geo-aware, but GeoPDFs need to preserve
georeferencing/coordinate system information. Upstream qt may or may not
accept "geo"-improvements to their PDF support. There is a risk they
deny such improvements.
* it may be expensive to implement, if we would have to improve qt
* it may be slow to get it into qt
Andreas
On 2018-07-05 09:47, Nyall Dawson wrote:
> On Thu, 5 Jul 2018 at 17:39, Andreas Neumann <a.neum...@carto.net> wrote:
>
>> Dear QGIS developers,
>>
>> One of our sponsors is asking if there are any ways/plans/upcoming
>> improvements regarding export to GeoPDFs.
>>
>> Specifically of interest are:
>>
>> export of georeferenced data (query coordinates)
>> proper export of the exact same styling from QGIS (the existing OGR feature
>> styling would be too limited)
>> ability to toggle layers
>> ability to query attributes from vector layers
>> Offer an export similar to the export of DXF (exporting multiple selected
>> layers or the whole map at once).
>>
>> Now I know that GDAL/OGR supports generation of PDF, but the styling options
>> are limited - see also http://www.gdal.org/frmt_pdf.html
>>
>> On the other hand, QGIS supports a lot of styling options which wouldn't be
>> exported correctly when writing to GeoPDF through gdal.
>>
>> So here are my questions:
>>
>> Is there a dev out there who would be interested in working on it and who
>> could make a proposal how to properly support GeoPDF for export from QGIS?
>> Do you know of any similar QGIS users/clients who would be interested in
>> co-financing?
>> Do you have any ideas how to technically solve the issue of retaining style
>> while also allow the querying of vector features? Perhaps export as raster
>> to retain style with invisible (transparent) vector overlays?
>>
>> Thanks for the discussion!
>
> My initial thoughts:
>
> This would all predominantly need to be done upstream in Qt itself -
> adding support for layers etc to the Qt PDF writer. We'll never get an
> exact match between QGIS styles and OGR styles, so the ONLY way we can
> create PDFs with exact style matches is by extending the Qt
> functionality.
>
> Nyall
_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer