[general]
name=QCT GIS2DXF Exporter
qgisMinimumVersion=3.28
qgisMaximumVersion=4.99.0
supportsQt6=True
description=QGIS to AutoCAD DXF export: vectors and rasters in one drawing. Orthophotos and hillshades attach as georeferenced image xrefs, clipped to a rectangle or polygon. Points as blocks with attributes, Z elevation, symbology colours and lineweights. QCivilTools suite.
about=Part of the QCivilTools (QCT) suite. Exports any mix of vector and raster layers to an AutoCAD R2000 (AC1015) DXF, clipped to a crop box drawn on the map canvas, taken from the canvas or layer extent, typed in, or defined by a drawn polygon or a selected polygon feature.
    Vectors become LWPOLYLINE, 3D POLYLINE, POINT, TEXT and HATCH entities with symbology colour, lineweight and linetype carried across, and optional Z from geometry or an attribute field. Point layers can instead be inserted as blocks carrying every field as an attribute, ready for ATTEXT or Data Extraction in CAD.
    Rasters are written as sidecar PNG, JPEG or GeoTIFF files and attached to the DXF as IMAGE xrefs (IMAGEDEF, IMAGEDEF_REACTOR and ACAD_IMAGE_DICT), so they open georeferenced and in place in AutoCAD, Civil 3D and BricsCAD, complete with a polygonal clip boundary. Styled rendering reproduces the QGIS symbology of DEMs, hillshades and pseudocolour rasters, and a colorize mode matching the QGIS Hue/Saturation renderer can produce greyscale or black and white backdrops, optionally attached alongside the colour version.
    No third-party Python packages are required. Works unmodified on QGIS 3.28 through QGIS 4.x (Qt5 and Qt6 builds alike).
version=1.1.1
author=Dat Vu
email=datmast@gmail.com

tracker=https://github.com/QCivilTools/QCT-GIS2DXF-Exporter/issues
repository=https://github.com/QCivilTools/QCT-GIS2DXF-Exporter
homepage=https://github.com/QCivilTools/QCT-GIS2DXF-Exporter

category=Vector
icon=resources/icon.png
experimental=False
deprecated=False
server=False
hasProcessingProvider=no

tags=dxf,cad,autocad,civil 3d,bricscad,export,raster,orthophoto,aerial,imagery,geotiff,image,xref,block,attributes,civil,engineering,survey,contours,clip

changelog=1.1.1 - Re-exporting over an existing drawing name now clears the old
      images in its _images folder, so removed or renamed raster layers no
      longer leave stale images behind.
    1.1.0 - QGIS 4.x (Qt6) support.
    - Raised qgisMaximumVersion to 4.99.0 so plugins.qgis.org actually
      offers the plugin to QGIS 4.x users (it was previously capped at
      the repository's own default of 3.99.0, which silently excluded
      every QGIS 4.x install even though the code was already Qt6-safe)
    - Verified against QGIS 4.x: all Qt/QGIS enum access is fully
      scoped (Qt.CheckState.Checked, QgsWkbTypes.GeometryType.*, etc.)
      with no unscoped PyQt5-only fallbacks anywhere in the codebase
    - All Qt imports go through qgis.PyQt, never PyQt5/PyQt6 directly,
      so the plugin follows whichever binding QGIS itself is built with
    - Point/polygon layer-type checks now survive QGIS's 3.36+ move of
      GeometryType from QgsWkbTypes to Qgis, falling back to the plain
      integer value if the scoped comparison ever raises
    - Re-confirmed zero Bandit findings and zero flake8 issues
    - No behaviour change for QGIS 3.28-3.x users
    1.0.0 - First public release.
    - Export any mix of vector and raster layers to one AC1015 DXF
    - Crop area from a drawn rectangle, drawn polygon, selected polygon
      feature, canvas extent, layer extent or typed coordinates
    - Rasters attached as georeferenced image xrefs with a polygonal clip
      boundary and correct transparency handling
    - Styled render or source-pixel clip per raster, with greyscale, QGIS
      style colorize and 1-bit threshold colour modes, plus an optional
      separate black and white copy on its own layer
    - Point layers exportable as blocks with attributes
    - Symbology colour (true colour), lineweight and linetype carried across
    - 2D, geometry Z and attribute Z elevation modes
    - Built-in Help, Troubleshooting and About window
    - Registers on the shared QCivilTools menu and toolbar
    - Resizable window with scrollable pages; size is remembered
    - Qt6 ready: all enum access is scoped, no PyQt5-only fallbacks
    - Non-fatal failures are recorded in the QGIS message log under the
      "QCT GIS2DXF" tag rather than being silently discarded
