Class: QgsSldExportContext

class qgis.core.QgsSldExportContext

Bases: sip.wrapper

The QgsSldExportContext class holds SLD export options and other information related to SLD export of a QGIS layer style.

New in version 3.30.

QgsSldExportContext() Constructs a default SLD export context

QgsSldExportContext(other: QgsSldExportContext) Constructs a copy of SLD export context other

QgsSldExportContext(options: Union[Qgis.SldExportOptions, Qgis.SldExportOption], vendorExtension: Qgis.SldExportVendorExtension, filePath: str) /brief Create a new QgsSldExportContext /param options SLD export options /param vendorExtension SLD export vendor extension /param filePath SLD export file path

Methods

exportFilePath

Returns the export file path for the SLD

exportOptions

Returns the export options

setExportFilePath

Sets the export file path for the SLD to exportFilePath

setExportOptions

Set export options to exportOptions

setVendorExtension

Sets the vendor extensions to vendorExtension

vendorExtensions

Returns the vendor extension enabled for the SLD export

exportFilePath(self) str

Returns the export file path for the SLD

Return type

str

exportOptions(self) Qgis.SldExportOptions

Returns the export options

Return type

Qgis.SldExportOptions

setExportFilePath(self, exportFilePath: str)

Sets the export file path for the SLD to exportFilePath

Parameters

exportFilePath (str) –

setExportOptions(self, exportOptions: Union[Qgis.SldExportOptions, Qgis.SldExportOption])

Set export options to exportOptions

Parameters

exportOptions (Union[Qgis.SldExportOptions) –

setVendorExtension(self, vendorExtension: Qgis.SldExportVendorExtension)

Sets the vendor extensions to vendorExtension

Parameters

vendorExtension (Qgis.SldExportVendorExtension) –

vendorExtensions(self) Qgis.SldExportVendorExtension

Returns the vendor extension enabled for the SLD export

Return type

Qgis.SldExportVendorExtension