[QGIS-trac] [Quantum GIS] #3154: SVG Patterns: References to SVG files should start with pattern/symbol repository when paths are set to relative

Quantum GIS qgis at qgis.org
Mon Oct 25 11:49:51 EDT 2010


#3154: SVG Patterns: References to SVG files should start with pattern/symbol
repository when paths are set to relative
--------------------------------+-------------------------------------------
   Reporter:  neumann           |              Owner:  nobody       
       Type:  bug               |             Status:  new          
   Priority:  minor: annoyance  |          Milestone:  Version 1.6.0
  Component:  Symbology         |            Version:               
   Keywords:                    |   Platform_version:               
   Platform:  All               |           Must_fix:  No           
Status_info:  0                 |  
--------------------------------+-------------------------------------------
 For SVG pattern fills, currently, the paths are stored relatively to the
 project file and not relatively to the symbol/pattern repository.

 This makes it harder to move projects to a server or different machine
 that may have a different file/path layout.

 It would be good if it could be implemented the same way like SVG symbols:

 Current relative behavior with symbols:

 <pointsymbol>svg:/abwasser/Oelabscheider_Mischwasser.svg</pointsymbol>


 Current relative behavior with patterns:

 <layer pass="0" class="SVGFill" locked="0" >
   <prop k="svgFile"
 v="../../qgis/patterns/use_zone_plan/wohnzone_mit_gewerbeerleichterung_1_satz_w2_40_wohnzone_2_geschossig.svg"
 />
   <prop k="width" v="20" />
 </layer>

 I think the "relative" paths should be stored absolutely, but starting
 from the pattern/symbol repository, with the svg:/ syntax.

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/3154>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list