[Qgis-user] Problems with custom SVG images when transfering a project to another computer
Stefan Giese (WhereGroup)
stefan.giese at wheregroup.com
Mon Feb 24 05:23:02 PST 2025
Hi Bernhard,
you can embed the SVG into the project:
Best regards
Stefan
Am 24.02.2025 um 13:37 schrieb Bernhard Seckinger via QGIS-User:
> Hi,
>
> I'm using QgsSvgMarkerSymbolLayer('some/path/to/icon.svg') to add an icon to a
> layer. That works great.
>
> When I'm saving the project, including all layers, into a geopackage, send
> that geopackage to a different computer and open ist again, everything works,
> but the icons are replaced by black question marks.
>
> The reason is obvious: The project saves the markers with paths that are only
> valid on my computer, and thus they cannot be found on the other computer
> (they do not even exist).
>
> It wouldn't be a problem to put all the icons in a folder and add that folder
> to Settings -> Options -> System -> SVG Path.
>
> And here's my question: What parameter do I have to use on
> QgsSvgMarkerSymbolLayer() to access icons via SVG path?
>
> (Alternatively it would be possible to save the icons in the geopackage, but
> I've got no clue, where to start with this approach at all.)
>
> Any ideas?
>
> Thanks, Bernhard
>
> --
> Bernhard Seckinger<bernhard.seckinger at bueffee.de>
> _______________________________________________
> QGIS-User mailing list
> QGIS-User at lists.osgeo.org
> List info:https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe:https://lists.osgeo.org/mailman/listinfo/qgis-user
>
--
Mit freundlichen Grüßen
Stefan Giese
Projektleiter/Consultant
---------------------------------------------
FOSSGIS Konferenz 2025 in Münster
26.-29. März 2025
https://www.fossgis.de/konferenz/
---------------------------------------------
WhereGroup GmbH
Schwimmbadstr. 2
79100 Freiburg
Germany
Tel.: +49 (0)761 / 519 102 - 61
Fax: +49 (0)761 / 519 102 - 11
stefan.giese at wheregroup.com
www.wheregroup.com
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20250224/4d9bb399/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: brv8OE0KrVE7alrc.png
Type: image/png
Size: 75313 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20250224/4d9bb399/attachment-0001.png>
More information about the QGIS-User
mailing list