Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qgis dont load SVG symbol from they are in more than one subfolder in name attribute of a style #17393

Closed
qgib opened this issue Sep 25, 2013 · 3 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers

Comments

@qgib
Copy link
Contributor

qgib commented Sep 25, 2013

Author Name: aperi2007 - (aperi2007 -)
Original Redmine Issue: 8664
Affected QGIS version: 2.0.1
Redmine category:symbology
Assignee: Radim Blazek


Hi.
I found this really bad boring bug.

If a put my svg symbol in a sub-sub-folder of an external path
(please notice the proof of subfolder should be almost two level to show the bug)

I see thay in the svg dialog.
I choose a symbol in a sub-sub-folder.
After this.
I save it on a style.

As I can see the svg path in the qml file is saved like this:

    <layer pass="0" class="SvgMarker" locked="0">
      <prop k="angle" v="0"/>
      <prop k="fill" v="#000000"/>
      <prop k="name" v="/sub-folder-1/sub-folder-1/3100-9.svg"/>
      <prop k="offset" v="0,0"/>
      <prop k="offset_unit" v="MM"/>
      <prop k="outline" v="#000000"/>
      <prop k="outline-width" v="1"/>
      <prop k="outline_width_unit" v="MM"/>
      <prop k="size" v="4"/>
      <prop k="size_unit" v="MM"/>
    </layer>

But when I go to reload the style It don't find the SVG.
After some other test.
I can see that qgis undertand only one level subfolder when it load the stye.

So if the SVG symbol is in a relative path like this:

is correctly load

but if the svg symbol is in a relative path like this other:

it is not load.

Please notice that both are generate choosing the svg from svg diloag and saving they as style.

@qgib
Copy link
Contributor Author

qgib commented Dec 30, 2013

Author Name: aperi2007 - (aperi2007 -)


Hi,

Is confirmed this issue ?

@qgib
Copy link
Contributor Author

qgib commented May 26, 2014

Author Name: Radim Blazek (@blazek)


Fixed in changeset "0eed3dccd9937956aa7829c053664ab0de7a844f".


  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented May 26, 2014

Author Name: Radim Blazek (@blazek)


Ticket fixed with funding from Regione Toscana-SITA (CIG:ZB10C90E5A).


  • assigned_to_id was configured as Radim Blazek

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers labels May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers
Projects
None yet
Development

No branches or pull requests

1 participant