qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.62k stars 3.01k forks source link

Vectorization of selective masking when exporting as GeoPDF #54852

Open cxcandid opened 1 year ago

cxcandid commented 1 year ago

Feature description

In QGIS 3.26 we got this great enhancement (https://github.com/qgis/QGIS-Enhancement-Proposals/issues/186) of selective masking vectorization for PDF and SVG exports (https://www.qgis.org/en/site/forusers/visualchangelog326/#feature-selective-masking-vectorization, ). Unfortunately it doesn't work in PDF, when Create Geospatial PDF (GeoPDF) is enabled.

Is there any chance to get this feature even for GeoPDF exports?

Additional context

No response

agiudiceandrea commented 1 year ago

@troopa81, may you please have a look at this?

troopa81 commented 1 year ago

It's not an easy fix because the code used to render a GeoPDF is specific (QGIS need to generate one layer at a time) and is not aware of the 2-pass rendering needed for selective masking (render mask first then masked).

If you willing to fund such a feature, you can contact me at julien dot cabieces at oslandia dot com

cxcandid commented 5 months ago

At the moment I use a special workaround to get around this issue: https://gis.stackexchange.com/questions/52858/interrupting-contour-lines-beneath-elevation-labels-instead-of-using-label-buff/343274#343274