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<[email protected]>
_______________________________________________
QGIS-User mailing list
[email protected]
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
[email protected]
www.wheregroup.com
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885
_______________________________________________
QGIS-User mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user