Bug report #6792

SVG from URL the local files should be with file:

Added by aperi2007 - about 12 years ago. Updated about 12 years ago.

Status:Closed
Priority:Normal
Assignee:Giuseppe Sucameli
Category:Symbology
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed
Crashes QGIS or corrupts data:No Copied to github as #:15940

Description

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.

Associated revisions

Revision b45e2154
Added by Giuseppe Sucameli about 12 years ago

SLD support: export local svg paths to URI (fix #6792)

History

#1 Updated by Giuseppe Sucameli about 12 years ago

  • Assignee set to Giuseppe Sucameli

Links must follow the 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.

#2 Updated by aperi2007 - about 12 years ago

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 ?

#3 Updated by Giuseppe Sucameli about 12 years ago

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.

#4 Updated by Giuseppe Sucameli about 12 years ago

  • Status changed from Open to Closed

#5 Updated by Giuseppe Sucameli about 12 years ago

  • Resolution set to fixed

Please, try and report if you find any problem.

Also available in: Atom PDF