QGIS API Documentation 4.1.0-Master (60fea48833c)
Loading...
Searching...
No Matches
qgssldexportcontext.cpp
Go to the documentation of this file.
1/***************************************************************************
2 qgssldexportcontext.cpp - QgsSldExportContext
3
4 ---------------------
5 begin : 21.12.2022
6 copyright : (C) 2022 by Alessandro Pasotti
7 email : elpaso at itopen dot it
8 ***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16#include "qgssldexportcontext.h"
17
18QgsSldExportContext::QgsSldExportContext( const Qgis::SldExportOptions &options, const Qgis::SldExportVendorExtension &vendorExtension, const QString &filePath )
19 : mExportOptions( options )
20 , mVendorExtensions( vendorExtension )
21 , mExportFilePath( filePath )
22{}
23
25{
26 return mExportOptions;
27}
28
33
35{
36 return mVendorExtensions;
37}
38
40{
41 mVendorExtensions = vendorExtension;
42}
43
45{
46 return mExportFilePath;
47}
48
50{
51 mExportFilePath = exportFilePath;
52}
53
55{
56 return mExtraProperties;
57}
58
59void QgsSldExportContext::setExtraProperties( const QVariantMap &properties )
60{
61 mExtraProperties = properties;
62}
SldExportVendorExtension
SLD export vendor extensions, allow the use of vendor extensions when exporting to SLD.
Definition qgis.h:737
QFlags< SldExportOption > SldExportOptions
Definition qgis.h:728
Qgis::SldExportVendorExtension vendorExtensions() const
Returns the vendor extension enabled for the SLD export.
QString exportFilePath() const
Returns the export file path for the SLD.
void setExtraProperties(const QVariantMap &properties)
Sets the open ended set of properties that can drive/inform the SLD encoding.
void setExportFilePath(const QString &exportFilePath)
Sets the export file path for the SLD to exportFilePath.
void setExportOptions(const Qgis::SldExportOptions &exportOptions)
Set export options to exportOptions.
Qgis::SldExportOptions exportOptions() const
Returns the export options.
QVariantMap extraProperties() const
Returns the open ended set of properties that can drive/inform the SLD encoding.
QgsSldExportContext()=default
Constructs a default SLD export context.
void setVendorExtension(const Qgis::SldExportVendorExtension &vendorExtension)
Sets the vendor extensions to vendorExtension.