[Qgis-user] Sharing SVGs/custom graphics referenced by projects and styles
Charles Dixon-Paver
charles at kartoza.com
Mon Apr 12 10:41:08 PDT 2021
Usually for individual projects you can embed the svg in the project file
itself using the drop down options from the svg path selection area.
If you're using the same svgs for multiple files though, I would strongly
suggest setting up a repository for them and adding them using the resource
sharing plugin.
https://github.com/QGIS-Contribution/QGIS-ResourceSharing
On Mon, 12 Apr 2021, 19:28 David Galt, <davidlgalt.gis+qlist at gmail.com>
wrote:
> In working from home I am presented with the challenge of sharing project
> files and data. A central PostGIS database makes it easy to share data and
> styles, but the one area that I am struggling with how to effectively share
> a massive trove of custom SVG files that are referenced by my projects and
> styles.
>
> One possibility I have explored is putting the files on the web and then
> referencing the URL in the style rather than a file-based path. When I do
> this, 3 things seem to happen:
>
> 1. The SVG shape appears correctly under "Text Sample", but in the path,
> the font of the URL appears as red indicating that it is in error
> <https://photos.app.goo.gl/AgCuQvL18d4aTxdQ8>.
>
> 2. Otherwise, it seems to work on the map. The SVGs
> are displayed correctly <https://photos.app.goo.gl/NmmbG5KMhDwEPkQMA>.
>
> 3. After I save, exit and reload the project file, the graphics still
> appear as they should on the map, but the feedback meter on the bottom of
> QGIS that churns during ongoing operations never stops churning and when
> you click on it, each image that is referenced from a URL is shown as
> 100% completed but still "fetching"
> <https://photos.app.goo.gl/mJQXfKKsjF99denX7>.
>
> Am I doing something wrong? Any recommendations/best practices for
> referencing graphics from web addresses rather than local file paths?
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210412/456095d6/attachment.html>
More information about the Qgis-user
mailing list