Skip to content

[Bug] SVG symbols scaling issues during rasterization since version 8.6.0 #7430

Description

@linea974

Description: Since the installation of MapServer version 8.6.0, SVG symbol processing no longer yields the expected results when rasterized.

Observed Behavior:

  • The anomaly is visible during rendering via OpenLayers and when exporting to image formats (JPEG).
  • Interestingly, when the map is exported to PDF format, the symbols are processed correctly.
  • It appears that the symbol is not being resized correctly during the rasterization process.

Environment & Versioning: Tests were performed on the same machine (Ubuntu 24.04) using compiled versions of MapServer. Rolling back to version 8.4.1 restores the expected behavior.

Output of mapserv -v:

  • Version 8.4.1 (Working): MapServer version 8.4.1 PROJ version 9.4 GDAL version 3.11 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=OGCAPI_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE INPUT=FLATGEOBUF
  • Version 8.6.0 (Buggy): MapServer version 8.6.0 PROJ version 9.4 GDAL version 3.11 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=OGCAPI_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE INPUT=FLATGEOBUF

Mapfile Class:
CLASS
NAME ""
MAXSCALEDENOM 8000
MINSCALEDENOM 10
STYLE
SIZE 28
SYMBOL "E07D9565-7FB7-48D5-9778-BB05F6E3B185_arch_industrie.svg"
END # STYLE
END # CLASS

SVG Header: The first line of the SVG used is:
<svg role="img" width="14" height="14" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 14 14">

Attachments: Please find screenshots showing the difference between the expected and current rendering below:

OpenLayers preview :
Version 8.6.0
Image
Version 8.4.1
Image

PDF export :
Version 8.6.0
Image
Version 8.4.1
Image

JPEG export :
Version 8.6.0
Image
Version 8.4.1
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions