DXF export — Export map data to DXF
Principle
The DXF export feature allows users to export the current map view as a DXF file via QGIS Server. This is useful for users who need to work with the map data in CAD software such as AutoCAD.
The feature is disabled by default and must be explicitly enabled in the Lizmap plugin. You can control which user groups are allowed to use the export and which layers can be exported.
The usage in Lizmap Web Client is described in DXF export.
Prerrequisitos
The layers you want to make available for DXF export must have WFS capabilities enabled.
The layer must be published as WFS (see WFS/OAPI) and the primary key must be published as well in the Layer properties.
Configuring the tool
In the Lizmap plugin, open the DXF Export panel:
Check Allow DXF export to enable the feature for the project.
Optionally, enter a comma-separated list of Lizmap group IDs in Allowed groups to restrict access. The WIZARD button helps to choose the groups. If left empty, all users can use the export (when the feature is enabled).
The layer table is automatically populated with all WFS-enabled layers. Use the checkboxes to enable or disable individual layers for DXF export.
Configuration storage
The configuration is stored in the .qgs.cfg file:
options.dxfExportEnabled(boolean, default:false) — enables or disables the DXF export feature.options.allowedGroups(string, comma-separated group IDs) — restricts access to specific Lizmap groups.layers.<layer name>.dxfExportEnabled(boolean, default:true) — for each layer, controls if it is available for export.
Nota
Existing projects without DXF export configuration will default to having the feature disabled, ensuring backward compatibility.