[OSM-dev] Osmarender: Resolving <use xlink:href...> Elements

Alexrk alexrk2 at yahoo.de
Sun Dec 6 19:25:27 GMT 2009


Hi,

I have a problem with the SVG files produced by Osmarender. They contain <use> 
elements to link geometry (path) data from a <defs> section via xlink:href.

<use
    xlink:href="#way_start_28553110"
    class="waterway-casing waterway-drain-casing osmarender-stroke-linecap-round 
osmarender-no-marker-end"
    id="use34412"
    style="fill:none;stroke:#b0b0b0"
    x="0"
    y="0"
    width="287.60001"
    height="245.00163" />


Unfortuneatly SVG-Editors like Inkscape can't handle these kind of linked 
elements very well. It is not possible to edit these geometries. Is there any 
way to resolve or convert these <use> elements into "normal" SVG elements?

It would be nice if Osmarender would offer an option to either make use of that 
xlink feature or just create normal path elements ...might produce larger SVG 
files but it is much more SVG-editor-friendly.

Alex
-- 
http://de.wikipedia.org/wiki/Benutzer:Alexrk2





More information about the dev mailing list