# This file contains metadata for your plugin.

# This file should be included when you package your plugin.

# Mandatory items:

[general]
name=Cut 2 SVG
qgisMinimumVersion=3.22
qgisMaximumVersion=4.99
# QGIS 4 / Qt6 compatible (flag used by the QGIS 3.x Qt6 builds, kept for them)
supportsQt6=True
description=Clean SVG export of print layouts: vector layers cut by the frame of the maps
version=1.0
author=Sébastien Poudroux (Kheper 3D)
email=sebastien.poudroux@kheper3d.com

about=When a print layout is exported to SVG, QGIS writes the vector features whole: lines and polygons go beyond the frame of the maps and reappear in Inkscape or Illustrator. Cut 2 SVG adds "Export as SVG with Cut Vectors" commands to the layout designer: for the time of the export, the vector layers of the maps are really cut by the frame of each map, by its clipping shape or by the atlas feature, then everything is put back.
    Why not the clipping settings of QGIS? "Clip During Render Only" (the default) is lost in SVG files, and "Clip Feature Before Render" is not reliable: it is ignored for rule-based layers with labels, and it does not follow the map frame for layers in another CRS than the map (e.g. a WGS 84 map showing a UTM layer). Cut 2 SVG cuts the geometries itself, whatever the symbology, labels or CRS of the layers. It is a workaround for these QGIS bugs, until a QGIS update fixes them.
    Features:
    - commands in the Layout and Atlas menus and toolbars of the layout designer
    - cut by the visible extent of each map (rotation included), by its "Clip to item" shape and by the atlas feature
    - exact cut for layers in another CRS than the map (the clipping geometry is densified before reprojection)
    - atlas export: one cut SVG file per feature
    - styles, labels, map themes and locked layers kept; the project and the layout are not changed
    - same SVG options as the native export; optional GeoPackage of the cut layers
    - French and English interface and user guide
    Compatible with QGIS 3.22+ and QGIS 4. No external dependency.

tracker=https://github.com/Seboon/Cut2SVG/issues
repository=https://github.com/Seboon/Cut2SVG
# End of mandatory metadata

# Recommended items:

hasProcessingProvider=no
changelog=
    1.0 - Rewritten for QGIS 3 and QGIS 4 (Qt5 / Qt6)
        - Commands in the layout designer: Export as SVG / Export Atlas as SVG with cut vectors
        - Cut by the visible extent of the maps (rotation included), by the "Clip to item" shape and by the atlas feature
        - Atlas export, one SVG file per feature
        - Temporary cut layers: the project and the layout are not changed, no shapefile written
        - Styles, labels, map themes and locked layers kept; layers in another CRS cut exactly at the frame
        - Works around the current limits of the native clipping (rule-based layers with labels, layers in another CRS)
        - Same SVG options as the native export; optional GeoPackage of the cut layers
        - French and English interface and user guide
        - New SVG icons
    0.1 - Initial release (QGIS 2)
# Tags are comma separated with spaces allowed
tags=svg, export, layout, print layout, atlas, clip, cut, vector, inkscape, illustrator, cartography

homepage=https://seboon.github.io/Cut2SVG/
category=Plugins
icon=icons/icon.svg
# experimental flag
experimental=False

# deprecated flag (applies to the whole plugin, not just a single version)
deprecated=False

# If the plugin can run on QGIS Server.
server=False
