[general]
name=CartoDXF
qgisMinimumVersion=3.16
qgisMaximumVersion=4.99
description=Export QGIS vector layers to a professional DXF, one DXF layer per category, with real colors, line widths and line types. / Exporta capas vectoriales de QGIS a un DXF profesional, una capa DXF por categoría, con colores, grosores y tipos de línea reales.
version=1.3.0
author=Kiko Molina
email=kmlidar@outlook.com
about=QGIS plugin to export loaded vector layers (points, lines, polygons) to a single
    professional DXF file, ready to open in AutoCAD or any CAD software.

    Main features:
    - One DXF layer per category: choose a field per QGIS layer to split it into
      several DXF layers automatically (e.g. one DXF layer per road type, per land use...).
    - Independent label/text field: write any field value as DXF text next to each
      feature, regardless of the field used for the DXF layer name.
    - Exact colors (true color RGB) read from the QGIS symbology, plus an automatic
      ACI fallback for older DXF viewers that don't support true color.
    - Real line widths and line types (dashed, dotted, dash-dot...) taken from the
      QGIS simple line symbology.
    - Polygons exported with fill (hatch) and independent outline: solid fill or
      a selectable pattern (diagonal lines, horizontal lines, grid, dots) with
      adjustable scale; optional setting to make the outline match the fill
      color, useful with "Categorized" renderers where only the fill color
      varies.
    - Points exported as DXF POINT entities, with an option to also insert a DXF
      block (INSERT) approximating the QGIS marker shape (circle, square, triangle,
      diamond, cross, X, star, pentagon, hexagon...).
    - Optional export limited to the current canvas view, with geometries clipped
      to that extent instead of exported whole.
    - Text labels try to preserve their QGIS orientation (data-defined rotation,
      or the line's own direction for road-name style labels) instead of always
      being exported horizontal.
    - Automatic reprojection to the QGIS project CRS.
    - A faulty feature (invalid geometry, unusual category value...) is skipped
      instead of aborting the whole export.

tracker=https://github.com/kmlidar/CartoDXF/issues
repository=https://github.com/kmlidar/CartoDXF
changelog=
    1.3.0
    - Fixed: Rule-based renderers (e.g. a building style with scale-dependent
      "shadow" sub-rules) could resolve to no symbol at all when exporting
      outside QGIS's normal canvas render pipeline, so the whole DXF layer
      silently fell back to plain black. Rules are now matched manually,
      ignoring their scale range (a DXF has no viewing scale), so the
      correct rule and its real color are used.
    - Improved: fill-color extraction now also covers advanced fill symbol
      layer types beyond Simple Fill (gradient, shapeburst, texture/raster,
      point/line pattern, centroid fill with marker...), instead of leaving
      the color unresolved and defaulting to black.
    - Fixed: the render context used to resolve QGIS symbology is now built
      from the actual current map canvas settings instead of an empty one,
      so scale- and extent-aware styling resolves correctly.
    - Added: "Export only features within the current canvas view" option.
      Previously every export used all features in a layer's data source,
      so a layer with no filter of its own (subset string) was always
      exported in full, even if you were just zoomed into part of it
      (e.g. a whole province instead of a single municipality).
    - Fixed: with the option above, features that only partly overlapped
      the exported view used to be exported whole. Geometries are now
      clipped to that rectangle instead of just included/excluded by a
      bounding-box test.
    - Added: exported text labels now try to preserve their QGIS
      orientation instead of always being horizontal, using the label's
      own data-defined rotation field/expression when set, or, for labels
      on line features (e.g. street names), an angle approximated from the
      line's own direction at the label point.

    1.2.1
    - Fixed: Qt6 compatibility issue. Geometry type comparisons used the old
      unscoped enum syntax (e.g. QgsWkbTypes.Point), which is invalid in the
      newer, strictly-scoped PyQt6/PyQGIS API. Changed to the scoped form
      (QgsWkbTypes.Type.Point) throughout the export code.
    - Fixed: the automatic ezdxf installer could report success and still leave
      the plugin unable to import it (ModuleNotFoundError right after
      installing). This happened because it installed into the user's
      "--user" site-packages folder, which QGIS's bundled Python often does
      not search. It now installs into a private folder inside the plugin
      itself and adds it directly to the Python path, so it no longer
      depends on that setting.

    1.1.1
    - Fixed: on Linux, automatic installation of the ezdxf library could fail
      with no clear explanation, due to the "externally-managed-environment"
      protection present in recent Ubuntu/Debian Python installations. The
      plugin now tries several installation strategies automatically, and if
      it still fails, the error message shows the real reason and how to
      install ezdxf manually.

tags=DXF, DWG, CAD, AutoCAD, export, vector, layers, categories, true color, cartografia, vector, capas, exportar
homepage=https://github.com/kmlidar/CartoDXF
donate=https://www.paypal.com/donate/?hosted_button_id=UF9SYUY42GWTG
category=Vector
license=GPLv2
icon=icons/icon.png
experimental=False
deprecated=False
