Skip to content

Commit

Permalink
Add PNG export options
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Jan 5, 2023
1 parent 1ac4dd3 commit ef89f70
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/core/auto_additions/qgis.py
Expand Up @@ -182,7 +182,8 @@
# monkey patching scoped based enum
Qgis.SldExportOption.NoOptions.__doc__ = "Default SLD export"
Qgis.SldExportOption.Svg.__doc__ = "Export complex styles to separate SVG files for better compatibility with OGC servers"
Qgis.SldExportOption.__doc__ = 'SLD export options\n\n.. versionadded:: 3.30\n\n' + '* ``NoOptions``: ' + Qgis.SldExportOption.NoOptions.__doc__ + '\n' + '* ``Svg``: ' + Qgis.SldExportOption.Svg.__doc__
Qgis.SldExportOption.Png.__doc__ = "Export complex styles to separate PNG files for better compatibility with OGC servers"
Qgis.SldExportOption.__doc__ = 'SLD export options\n\n.. versionadded:: 3.30\n\n' + '* ``NoOptions``: ' + Qgis.SldExportOption.NoOptions.__doc__ + '\n' + '* ``Svg``: ' + Qgis.SldExportOption.Svg.__doc__ + '\n' + '* ``Png``: ' + Qgis.SldExportOption.Png.__doc__
# --
Qgis.SldExportOption.baseClass = Qgis
Qgis.SldExportOptions.baseClass = Qgis
Expand Down
1 change: 1 addition & 0 deletions python/core/auto_generated/qgis.sip.in
Expand Up @@ -165,6 +165,7 @@ The development version
{
NoOptions,
Svg,
Png,
};
typedef QFlags<Qgis::SldExportOption> SldExportOptions;

Expand Down
1 change: 1 addition & 0 deletions src/core/qgis.h
Expand Up @@ -250,6 +250,7 @@ class CORE_EXPORT Qgis
{
NoOptions = 0, //!< Default SLD export
Svg = 1 << 0, //!< Export complex styles to separate SVG files for better compatibility with OGC servers
Png = 1 << 1, //!< Export complex styles to separate PNG files for better compatibility with OGC servers
};
Q_ENUM( SldExportOption )
Q_DECLARE_FLAGS( SldExportOptions, SldExportOption )
Expand Down

0 comments on commit ef89f70

Please sign in to comment.