QGIS API Documentation  3.37.0-Master (a5b4d9743e8)
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
QgsDxfExport Class Reference

Exports QGIS layers to the DXF format. More...

#include <qgsdxfexport.h>

Inheritance diagram for QgsDxfExport:
Inheritance graph
[legend]

Classes

struct  DxfLayer
 Layers and optional attribute index to split into multiple layers using attribute value as layer name. More...
 

Public Types

enum  DxfPolylineFlag {
  Closed = 1 , Curve = 2 , Spline = 4 , Is3DPolyline = 8 ,
  Is3DPolygonMesh = 16 , PolygonMesh = 32 , PolyfaceMesh = 64 , ContinuousPattern = 128
}
 Flags for polylines. More...
 
typedef QFlags< DxfPolylineFlagDxfPolylineFlags
 
enum class  ExportResult { Success = 0 , InvalidDeviceError , DeviceNotWritableError , EmptyExtentError }
 The result of an export as dxf operation. More...
 
enum  Flag { FlagNoMText = 1 << 1 , FlagOnlySelectedFeatures = 1 << 2 }
 Export flags. More...
 
typedef QFlags< FlagFlags
 
enum class  HAlign : int {
  HLeft = 0 , HCenter = 1 , HRight = 2 , HAligned = 3 ,
  HMiddle = 4 , HFit = 5 , Undefined = 9999
}
 Horizontal alignments. More...
 
enum class  VAlign : int {
  VBaseLine = 0 , VBottom = 1 , VMiddle = 2 , VTop = 3 ,
  Undefined = 9999
}
 Vertical alignments. More...
 

Public Member Functions

 QgsDxfExport ()
 Constructor for QgsDxfExport. More...
 
 ~QgsDxfExport () override
 
void addLayers (const QList< QgsDxfExport::DxfLayer > &layers)
 Add layers to export. More...
 
void clipValueToMapUnitScale (double &value, const QgsMapUnitScale &scale, double pixelToMMFactor) const
 Clips value to scale minimum/maximum. More...
 
QgsCoordinateReferenceSystem destinationCrs () const
 Returns the destination CRS, or an invalid CRS if no reprojection will be done. More...
 
void drawLabel (const QString &layerId, QgsRenderContext &context, pal::LabelPosition *label, const QgsPalLayerSettings &settings) override
 Add a label to the dxf output. More...
 
QgsRectangle extent () const
 Gets extent of area to export. More...
 
const QString feedbackMessage () const
 Returns any feedback message produced while export to dxf file. More...
 
QgsDxfExport::Flags flags () const
 Returns the export flags. More...
 
bool force2d ()
 Retrieve whether the output should be forced to 2d. More...
 
QString layerName (const QString &id, const QgsFeature &f) const
 Gets layer name for feature. More...
 
QString layerName (QgsVectorLayer *vl) const
 Gets name for layer respecting the use layer title as layer name mode. More...
 
bool layerTitleAsName ()
 Retrieve whether layer title (where set) instead of name shall be use. More...
 
Qgis::DistanceUnit mapUnits () const
 Retrieve map units. More...
 
Q_DECL_DEPRECATED void registerDxfLayer (const QString &layerId, QgsFeatureId fid, const QString &layer)
 Register name of layer for feature. More...
 
void setDestinationCrs (const QgsCoordinateReferenceSystem &crs)
 Set destination CRS. More...
 
void setExtent (const QgsRectangle &r)
 Set extent of area to export. More...
 
void setFlags (QgsDxfExport::Flags flags)
 Sets the export flags. More...
 
void setForce2d (bool force2d)
 Force 2d output (eg. More...
 
void setLayerTitleAsName (bool layerTitleAsName)
 Enable use of title (where set) instead of layer name, when attribute index of corresponding layer index is -1. More...
 
void setMapSettings (const QgsMapSettings &settings)
 Set map settings and assign layer name attributes. More...
 
void setSymbologyExport (Qgis::FeatureSymbologyExport e)
 Set symbology export mode. More...
 
void setSymbologyScale (double scale)
 Set reference scale for output. More...
 
Qgis::FeatureSymbologyExport symbologyExport () const
 Gets symbology export mode. More...
 
double symbologyScale () const
 Returns the reference scale for output. More...
 
void writeCircle (const QString &layer, const QColor &color, const QgsPoint &pt, double radius, const QString &lineStyleName, double width)
 Write circle (as polyline) More...
 
void writeDouble (double d)
 Write a floating point value. More...
 
void writeFilledCircle (const QString &layer, const QColor &color, const QgsPoint &pt, double radius)
 Write filled circle (as hatch) More...
 
void writeGroup (const QColor &color, int exactMatch=62, int rgbCode=420, int transparencyCode=440)
 Write a group code with color value. More...
 
void writeGroup (int code, const QgsPoint &p)
 Write a group code with a point. More...
 
void writeGroup (int code, const QString &s)
 Write a group code with a string value. More...
 
void writeGroup (int code, double d)
 Write a group code with a floating point value. More...
 
void writeGroup (int code, int i)
 Write a tuple of group code and integer value. More...
 
void writeGroup (int code, long long i)
 Write a tuple of group code and long value. More...
 
void writeGroupCode (int code)
 Write a group code. More...
 
int writeHandle (int code=5, int handle=0)
 Write a tuple of group code and a handle. More...
 
void writeInt (int i)
 Write an integer value. More...
 
void writeLine (const QgsPoint &pt1, const QgsPoint &pt2, const QString &layer, const QString &lineStyleName, const QColor &color, double width=-1)
 Write line (as a polyline) More...
 
void writeMText (const QString &layer, const QString &text, const QgsPoint &pt, double width, double angle, const QColor &color)
 Write mtext (MTEXT) More...
 
void writePoint (const QString &layer, const QColor &color, const QgsPoint &pt)
 Write point. More...
 
void writePolygon (const QgsCurvePolygon &polygon, const QString &layer, const QString &hatchPattern, const QColor &color)
 Draw dxf curved filled polygon (HATCH) More...
 
void writePolygon (const QgsRingSequence &polygon, const QString &layer, const QString &hatchPattern, const QColor &color)
 Draw dxf filled polygon (HATCH) More...
 
void writePolyline (const QgsCurve &curve, const QString &layer, const QString &lineStyleName, const QColor &color, double width=-1)
 Draw dxf primitives (LWPOLYLINE) More...
 
void writePolyline (const QgsPointSequence &line, const QString &layer, const QString &lineStyleName, const QColor &color, double width=-1)
 Draw dxf primitives (LWPOLYLINE) More...
 
void writeString (const QString &s)
 Write a string value. More...
 
void writeText (const QString &layer, const QString &text, const QgsPoint &pt, double size, double angle, const QColor &color, QgsDxfExport::HAlign hali=QgsDxfExport::HAlign::Undefined, QgsDxfExport::VAlign vali=QgsDxfExport::VAlign::Undefined)
 Write text (TEXT) More...
 
ExportResult writeToFile (QIODevice *d, const QString &codec)
 Export to a dxf file in the given encoding. More...
 
- Public Member Functions inherited from QgsLabelSink
virtual ~QgsLabelSink ()=default
 
virtual void drawUnplacedLabel (const QString &layerId, QgsRenderContext &context, pal::LabelPosition *label, const QgsPalLayerSettings &settings)
 The drawLabel method is called for each unplaced label. More...
 

Static Public Member Functions

static int closestColorMatch (QRgb color)
 Gets DXF palette index of nearest entry for given color. More...
 
static QString dxfEncoding (const QString &name)
 Returns DXF encoding for Qt encoding. More...
 
static QString dxfLayerName (const QString &name)
 Returns cleaned layer name for use in DXF. More...
 
static QStringList encodings ()
 Returns list of available DXF encodings. More...
 
static double mapUnitScaleFactor (double scale, Qgis::RenderUnit symbolUnits, Qgis::DistanceUnit mapUnits, double mapUnitsPerPixel=1.0)
 Returns scale factor for conversion to map units. More...
 

Detailed Description

Exports QGIS layers to the DXF format.

Definition at line 65 of file qgsdxfexport.h.

Member Typedef Documentation

◆ DxfPolylineFlags

Definition at line 192 of file qgsdxfexport.h.

◆ Flags

typedef QFlags< Flag > QgsDxfExport::Flags

Definition at line 136 of file qgsdxfexport.h.

Member Enumeration Documentation

◆ DxfPolylineFlag

Flags for polylines.

Since
QGIS 3.12
Enumerator
Closed 

This is a closed polyline (or a polygon mesh closed in the M direction)

Curve 

Curve-fit vertices have been added.

Spline 
Is3DPolyline 

< Spline-fit vertices have been added

This is a 3D polyline

Is3DPolygonMesh 

This is a 3D polygon mesh.

PolygonMesh 

The polygon mesh is closed in the N direction.

PolyfaceMesh 

The polyline is a polyface mesh.

ContinuousPattern 

The linetype pattern is generated continuously around the vertices of this polyline.

Definition at line 180 of file qgsdxfexport.h.

◆ ExportResult

The result of an export as dxf operation.

Since
QGIS 3.10.1
Enumerator
Success 

Successful export.

InvalidDeviceError 

Invalid device error.

DeviceNotWritableError 

Device not writable error.

EmptyExtentError 

Empty extent, no extent given and no extent could be derived from layers.

Definition at line 143 of file qgsdxfexport.h.

◆ Flag

Export flags.

Enumerator
FlagNoMText 

Export text as TEXT elements. If not set, text will be exported as MTEXT elements.

FlagOnlySelectedFeatures 

Use only selected features for the export.

Definition at line 131 of file qgsdxfexport.h.

◆ HAlign

enum QgsDxfExport::HAlign : int
strong

Horizontal alignments.

Enumerator
HLeft 

Left (0)

HCenter 

Centered (1)

HRight 

Right (2)

HAligned 

Aligned = (3) (if VAlign==0)

HMiddle 

Middle = (4) (if VAlign==0)

HFit 

Fit into point = (5) (if VAlign==0)

Undefined 

Undefined.

Definition at line 164 of file qgsdxfexport.h.

◆ VAlign

enum QgsDxfExport::VAlign : int
strong

Vertical alignments.

Enumerator
VBaseLine 

Top (0)

VBottom 

Bottom (1)

VMiddle 

Middle (2)

VTop 

Top (3)

Undefined 

Undefined.

Definition at line 154 of file qgsdxfexport.h.

Constructor & Destructor Documentation

◆ QgsDxfExport()

QgsDxfExport::QgsDxfExport ( )
default

Constructor for QgsDxfExport.

◆ ~QgsDxfExport()

QgsDxfExport::~QgsDxfExport ( )
override

Definition at line 68 of file qgsdxfexport.cpp.

Member Function Documentation

◆ addLayers()

void QgsDxfExport::addLayers ( const QList< QgsDxfExport::DxfLayer > &  layers)

Add layers to export.

Parameters
layerslist of layers and corresponding attribute indexes that determine the layer name (-1 for original layer name or title)
See also
setLayerTitleAsName

Definition at line 88 of file qgsdxfexport.cpp.

◆ clipValueToMapUnitScale()

void QgsDxfExport::clipValueToMapUnitScale ( double &  value,
const QgsMapUnitScale scale,
double  pixelToMMFactor 
) const

Clips value to scale minimum/maximum.

Parameters
valuethe value to clip
scalethe scale dependent minimum/maximum values
pixelToMMFactorpixels per mm

Definition at line 2008 of file qgsdxfexport.cpp.

◆ closestColorMatch()

int QgsDxfExport::closestColorMatch ( QRgb  color)
static

Gets DXF palette index of nearest entry for given color.

Parameters
color

Definition at line 1941 of file qgsdxfexport.cpp.

◆ destinationCrs()

QgsCoordinateReferenceSystem QgsDxfExport::destinationCrs ( ) const

Returns the destination CRS, or an invalid CRS if no reprojection will be done.

See also
setDestinationCrs()

Definition at line 2560 of file qgsdxfexport.cpp.

◆ drawLabel()

void QgsDxfExport::drawLabel ( const QString &  layerId,
QgsRenderContext context,
pal::LabelPosition label,
const QgsPalLayerSettings settings 
)
overridevirtual

Add a label to the dxf output.

Note
not available in Python bindings

Implements QgsLabelSink.

Definition at line 2390 of file qgsdxfexport.cpp.

◆ dxfEncoding()

QString QgsDxfExport::dxfEncoding ( const QString &  name)
static

Returns DXF encoding for Qt encoding.

Definition at line 2343 of file qgsdxfexport.cpp.

◆ dxfLayerName()

QString QgsDxfExport::dxfLayerName ( const QString &  name)
static

Returns cleaned layer name for use in DXF.

Definition at line 2281 of file qgsdxfexport.cpp.

◆ encodings()

QStringList QgsDxfExport::encodings ( )
static

Returns list of available DXF encodings.

Definition at line 2364 of file qgsdxfexport.cpp.

◆ extent()

QgsRectangle QgsDxfExport::extent ( ) const
inline

Gets extent of area to export.

Returns
area to export
See also
setExtent

Definition at line 296 of file qgsdxfexport.h.

◆ feedbackMessage()

const QString QgsDxfExport::feedbackMessage ( ) const
inline

Returns any feedback message produced while export to dxf file.

Since
QGIS 3.36

Definition at line 238 of file qgsdxfexport.h.

◆ flags()

QgsDxfExport::Flags QgsDxfExport::flags ( ) const

Returns the export flags.

See also
setFlags()

Definition at line 83 of file qgsdxfexport.cpp.

◆ force2d()

bool QgsDxfExport::force2d ( )
inline

Retrieve whether the output should be forced to 2d.

Returns
flag
See also
setForce2d

Definition at line 325 of file qgsdxfexport.h.

◆ layerName() [1/2]

QString QgsDxfExport::layerName ( const QString &  id,
const QgsFeature f 
) const

Gets layer name for feature.

Parameters
idlayer id of layer
ffeature of layer
Returns
layer name for feature

Definition at line 2327 of file qgsdxfexport.cpp.

◆ layerName() [2/2]

QString QgsDxfExport::layerName ( QgsVectorLayer vl) const

Gets name for layer respecting the use layer title as layer name mode.

Parameters
vlthe vector layer
Returns
name of layer
See also
setLayerTitleAsName

Definition at line 2384 of file qgsdxfexport.cpp.

◆ layerTitleAsName()

bool QgsDxfExport::layerTitleAsName ( )
inline

Retrieve whether layer title (where set) instead of name shall be use.

Returns
flag
See also
setLayerTitleAsName

Definition at line 311 of file qgsdxfexport.h.

◆ mapUnits()

Qgis::DistanceUnit QgsDxfExport::mapUnits ( ) const

Retrieve map units.

Returns
unit

Definition at line 301 of file qgsdxfexport.cpp.

◆ mapUnitScaleFactor()

double QgsDxfExport::mapUnitScaleFactor ( double  scale,
Qgis::RenderUnit  symbolUnits,
Qgis::DistanceUnit  mapUnits,
double  mapUnitsPerPixel = 1.0 
)
static

Returns scale factor for conversion to map units.

Parameters
scalethe map scale denominator
symbolUnitsthe symbol output units
mapUnitsthe map units
mapUnitsPerPixelMap units per pixel

Definition at line 1991 of file qgsdxfexport.cpp.

◆ registerDxfLayer()

void QgsDxfExport::registerDxfLayer ( const QString &  layerId,
QgsFeatureId  fid,
const QString &  layer 
)

Register name of layer for feature.

Parameters
layerIdid of layer
fidid of feature
layerdxf layer of feature
Deprecated:
Will be made private in QGIS 4

Definition at line 2546 of file qgsdxfexport.cpp.

◆ setDestinationCrs()

void QgsDxfExport::setDestinationCrs ( const QgsCoordinateReferenceSystem crs)

Set destination CRS.

See also
destinationCrs()

Definition at line 2554 of file qgsdxfexport.cpp.

◆ setExtent()

void QgsDxfExport::setExtent ( const QgsRectangle r)
inline

Set extent of area to export.

Parameters
rarea to export

Definition at line 289 of file qgsdxfexport.h.

◆ setFlags()

void QgsDxfExport::setFlags ( QgsDxfExport::Flags  flags)

Sets the export flags.

See also
flags()

Definition at line 78 of file qgsdxfexport.cpp.

◆ setForce2d()

void QgsDxfExport::setForce2d ( bool  force2d)
inline

Force 2d output (eg.

to support linewidth in polylines)

Parameters
force2dflag
See also
force2d

Definition at line 318 of file qgsdxfexport.h.

◆ setLayerTitleAsName()

void QgsDxfExport::setLayerTitleAsName ( bool  layerTitleAsName)
inline

Enable use of title (where set) instead of layer name, when attribute index of corresponding layer index is -1.

Parameters
layerTitleAsNameflag
See also
addLayers

Definition at line 304 of file qgsdxfexport.h.

◆ setMapSettings()

void QgsDxfExport::setMapSettings ( const QgsMapSettings settings)

Set map settings and assign layer name attributes.

Parameters
settingsmap settings to apply

Definition at line 73 of file qgsdxfexport.cpp.

◆ setSymbologyExport()

void QgsDxfExport::setSymbologyExport ( Qgis::FeatureSymbologyExport  e)
inline

Set symbology export mode.

Parameters
ethe mode

Definition at line 276 of file qgsdxfexport.h.

◆ setSymbologyScale()

void QgsDxfExport::setSymbologyScale ( double  scale)
inline

Set reference scale for output.

The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.

See also
symbologyScale()

Definition at line 245 of file qgsdxfexport.h.

◆ symbologyExport()

Qgis::FeatureSymbologyExport QgsDxfExport::symbologyExport ( ) const
inline

Gets symbology export mode.

Returns
mode
See also
setSymbologyExport

Definition at line 283 of file qgsdxfexport.h.

◆ symbologyScale()

double QgsDxfExport::symbologyScale ( ) const
inline

Returns the reference scale for output.

The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.

See also
setSymbologyScale()

Definition at line 252 of file qgsdxfexport.h.

◆ writeCircle()

void QgsDxfExport::writeCircle ( const QString &  layer,
const QColor &  color,
const QgsPoint pt,
double  radius,
const QString &  lineStyleName,
double  width 
)

Write circle (as polyline)

Note
available in Python bindings as writeCircleV2

Definition at line 1629 of file qgsdxfexport.cpp.

◆ writeDouble()

void QgsDxfExport::writeDouble ( double  d)

Write a floating point value.

Parameters
dfloating point value

Definition at line 177 of file qgsdxfexport.cpp.

◆ writeFilledCircle()

void QgsDxfExport::writeFilledCircle ( const QString &  layer,
const QColor &  color,
const QgsPoint pt,
double  radius 
)

Write filled circle (as hatch)

Note
available in Python bindings as writePointV2

Definition at line 1592 of file qgsdxfexport.cpp.

◆ writeGroup() [1/6]

void QgsDxfExport::writeGroup ( const QColor &  color,
int  exactMatch = 62,
int  rgbCode = 420,
int  transparencyCode = 440 
)

Write a group code with color value.

Parameters
colorcolor
exactMatchgroup code to use if the color has an exact match in the dxf palette
rgbCodegroup code to use if the color doesn't have an exact match or has a transparency component
transparencyCodegroup code to use for transparency component
Note
available in Python bindings as writeGroupPoint

Definition at line 138 of file qgsdxfexport.cpp.

◆ writeGroup() [2/6]

void QgsDxfExport::writeGroup ( int  code,
const QgsPoint p 
)

Write a group code with a point.

Parameters
codegroup code
ppoint value
Note
available in Python bindings as writeGroupPointV2

Definition at line 130 of file qgsdxfexport.cpp.

◆ writeGroup() [3/6]

void QgsDxfExport::writeGroup ( int  code,
const QString &  s 
)

Write a group code with a string value.

Parameters
codegroup code
sstring value

Definition at line 124 of file qgsdxfexport.cpp.

◆ writeGroup() [4/6]

void QgsDxfExport::writeGroup ( int  code,
double  d 
)

Write a group code with a floating point value.

Parameters
codegroup code
dfloating point value
Note
available in Python bindings as writeGroupDouble

Definition at line 118 of file qgsdxfexport.cpp.

◆ writeGroup() [5/6]

void QgsDxfExport::writeGroup ( int  code,
int  i 
)

Write a tuple of group code and integer value.

Parameters
codegroup code
iinteger value
Note
available in Python bindings as writeGroupInt

Definition at line 106 of file qgsdxfexport.cpp.

◆ writeGroup() [6/6]

void QgsDxfExport::writeGroup ( int  code,
long long  i 
)

Write a tuple of group code and long value.

Parameters
codegroup code
iinteger value
Note
available in Python bindings as writeGroupLong

Definition at line 112 of file qgsdxfexport.cpp.

◆ writeGroupCode()

void QgsDxfExport::writeGroupCode ( int  code)

Write a group code.

Parameters
codegroup code value

Definition at line 167 of file qgsdxfexport.cpp.

◆ writeHandle()

int QgsDxfExport::writeHandle ( int  code = 5,
int  handle = 0 
)

Write a tuple of group code and a handle.

Parameters
codegroup code to use
handlehandle to use (0 generates a new handle)
Returns
the used handle

Definition at line 350 of file qgsdxfexport.cpp.

◆ writeInt()

void QgsDxfExport::writeInt ( int  i)

Write an integer value.

Parameters
iinteger value

Definition at line 172 of file qgsdxfexport.cpp.

◆ writeLine()

void QgsDxfExport::writeLine ( const QgsPoint pt1,
const QgsPoint pt2,
const QString &  layer,
const QString &  lineStyleName,
const QColor &  color,
double  width = -1 
)

Write line (as a polyline)

Definition at line 1456 of file qgsdxfexport.cpp.

◆ writeMText()

void QgsDxfExport::writeMText ( const QString &  layer,
const QString &  text,
const QgsPoint pt,
double  width,
double  angle,
const QColor &  color 
)

Write mtext (MTEXT)

Note
available in Python bindings as writeMTextV2

Definition at line 1677 of file qgsdxfexport.cpp.

◆ writePoint()

void QgsDxfExport::writePoint ( const QString &  layer,
const QColor &  color,
const QgsPoint pt 
)

Write point.

Note
available in Python bindings as writePointV2

Definition at line 1581 of file qgsdxfexport.cpp.

◆ writePolygon() [1/2]

void QgsDxfExport::writePolygon ( const QgsCurvePolygon polygon,
const QString &  layer,
const QString &  hatchPattern,
const QColor &  color 
)

Draw dxf curved filled polygon (HATCH)

Parameters
polygonpolygon (including curves)
layerlayer name to use
hatchPatternhatchPattern to use
colorcolor to use
Note
not available in Python bindings
Since
QGIS 3.8

Definition at line 1391 of file qgsdxfexport.cpp.

◆ writePolygon() [2/2]

void QgsDxfExport::writePolygon ( const QgsRingSequence polygon,
const QString &  layer,
const QString &  hatchPattern,
const QColor &  color 
)

Draw dxf filled polygon (HATCH)

Parameters
polygonpolygon
layerlayer name to use
hatchPatternhatchPattern to use
colorcolor to use
Note
not available in Python bindings

Definition at line 1352 of file qgsdxfexport.cpp.

◆ writePolyline() [1/2]

void QgsDxfExport::writePolyline ( const QgsCurve curve,
const QString &  layer,
const QString &  lineStyleName,
const QColor &  color,
double  width = -1 
)

Draw dxf primitives (LWPOLYLINE)

Parameters
curvepolyline (including curved)
layerlayer name to use
lineStyleNameline type to use
colorcolor to use
widthline width to use
Note
not available in Python bindings
Since
QGIS 3.8

Definition at line 1264 of file qgsdxfexport.cpp.

◆ writePolyline() [2/2]

void QgsDxfExport::writePolyline ( const QgsPointSequence line,
const QString &  layer,
const QString &  lineStyleName,
const QColor &  color,
double  width = -1 
)

Draw dxf primitives (LWPOLYLINE)

Parameters
linepolyline
layerlayer name to use
lineStyleNameline type to use
colorcolor to use
widthline width to use
Note
not available in Python bindings

Definition at line 1126 of file qgsdxfexport.cpp.

◆ writeString()

void QgsDxfExport::writeString ( const QString &  s)

Write a string value.

Parameters
sstring value

Definition at line 185 of file qgsdxfexport.cpp.

◆ writeText()

void QgsDxfExport::writeText ( const QString &  layer,
const QString &  text,
const QgsPoint pt,
double  size,
double  angle,
const QColor &  color,
QgsDxfExport::HAlign  hali = QgsDxfExport::HAlign::Undefined,
QgsDxfExport::VAlign  vali = QgsDxfExport::VAlign::Undefined 
)

Write text (TEXT)

Note
available in Python bindings as writeTextV2

Definition at line 1651 of file qgsdxfexport.cpp.

◆ writeToFile()

QgsDxfExport::ExportResult QgsDxfExport::writeToFile ( QIODevice *  d,
const QString &  codec 
)

Export to a dxf file in the given encoding.

Parameters
ddevice
codecencoding
Returns
an ExportResult

Definition at line 190 of file qgsdxfexport.cpp.


The documentation for this class was generated from the following files: