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

SVG from URL the local files should be with file: #15940

Closed
qgib opened this issue Nov 29, 2012 · 5 comments
Closed

SVG from URL the local files should be with file: #15940

qgib opened this issue Nov 29, 2012 · 5 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 Nov 29, 2012

Author Name: aperi2007 - (aperi2007 -)
Original Redmine Issue: 6792
Affected QGIS version: master
Redmine category:symbology
Assignee: Giuseppe Sucameli


Hi,
I see when save a sld file using a local SVG symbol.

The svg has a xlink:href like this:

xlink:href="C:/my-programs/OSGeo4W/apps/qgis-dev/./svg/sport/golf_flag_in_hole_on_gr_01.svg"

AFAIK it should be defined with a URI sintax like this:
file:///C:/my-programs/OSGeo4W/apps/qgis-dev/./svg/sport/golf_flag_in_hole_on_gr_01.svg

Regards.

@qgib
Copy link
Contributor Author

qgib commented Nov 29, 2012

Author Name: Giuseppe Sucameli (@brushtyler)


Links must follow the "xlink":http://www.w3.org/TR/xlink/ specifications, this means that urls could also contain relative paths.
It's better to use relative paths instead of absolute ones so SLD files can be shared in a easier way.

QGIS stores paths into the QML files as relative to either the project path or one of the directories in QgsApplication::svgPaths(), the same approach could be used for SLD files.


  • assigned_to_id was configured as Giuseppe Sucameli

@qgib
Copy link
Contributor Author

qgib commented Dec 2, 2012

Author Name: aperi2007 - (aperi2007 -)


QGIS stores paths into the QML files as relative to either the project path or one of the directories in
QgsApplication::svgPaths(), the same approach could be used for SLD files.

This approach is quite clear to be for local files.

But I don't understand how it is applied to a internet URL.
QGIS store as a directory in svgPath the URL of a remote server ?

@qgib
Copy link
Contributor Author

qgib commented Dec 2, 2012

Author Name: Giuseppe Sucameli (@brushtyler)


aperi2007 - wrote:

But I don't understand how it is applied to a internet URL.

The ticket is about local files...

QGIS store as a directory in svgPath the URL of a remote server ?

No changes will be done to remote URLs, they are stored unchanged in both QML and SLD.

@qgib
Copy link
Contributor Author

qgib commented Dec 2, 2012

Author Name: Giuseppe Sucameli (@brushtyler)


Fixed in changeset "b45e2154578605bc8c7762c281308d1b6f8d2962".


  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented Dec 2, 2012

Author Name: Giuseppe Sucameli (@brushtyler)


Please, try and report if you find any problem.


  • resolution was changed from to fixed

@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