Bug report #15483

SVG paths get lost when moving QGIS file to a new location

Added by R. R. over 7 years ago. Updated about 7 years ago.

Status:Closed
Priority:Severe/Regression
Assignee:-
Category:Symbology
Affected QGIS version:2.16.1 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:invalid
Crashes QGIS or corrupts data:No Copied to github as #:23407

Description

When moving a QGIS file to a new location the paths of SVG symbols get lost.

15483.mp4 - screencast (3.65 MB) R. R., 2016-08-23 10:17 AM

15483.zip - sample files (14.2 KB) R. R., 2016-08-23 10:17 AM

History

#1 Updated by R. R. over 7 years ago

#2 Updated by Tudor Bărăscu over 7 years ago

Hi,

The SVG symbol is stored relative to the project.
You can see this by editing the qgs project with a text editor:

<prop k="name" v="../SVG/symbol.svg"/>

This is done so that you can deploy your project with the symbols.
What you should do is make a subdirectory (SVG) where the qgs file is located and move the qgs file along with the SVG directory every time.

As an option you could also tell QGIS where to look for SVG files at Options -> System -> SVG paths.

I think you can close this issue.

#3 Updated by Giovanni Manghi about 7 years ago

  • Resolution set to invalid
  • Status changed from Open to Closed

Also available in: Atom PDF