Skip to content

parse SVG file #209

@KarelWintersky

Description

@KarelWintersky

Is it possible parse SVG file like this:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->

<svg
        width="420mm"
        height="297mm"
        viewBox="0 0 420 297"
        version="1.1"
        id="svg1"
        xml:space="preserve"
        inkscape:version="1.3.2 (091e20e, 2023-11-25)"
        sodipodi:docname="kingsworld_layout.svg"
        xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
        xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
        xmlns:xlink="http://www.w3.org/1999/xlink"
        xmlns="http://www.w3.org/2000/svg"
        xmlns:svg="http://www.w3.org/2000/svg">
    <g
            inkscape:groupmode="layer"
            id="States"
            inkscape:label="States">

<path
   style="fill:none;stroke:#000000;stroke-width:0.365001"
   d="m 135.04592,88.590884 10.96067,2.081016 7.14865,5.247897 4.54505,6.204533 2.40744,6.2632 -5.49717,2.75748 -13.04609,12.36552 16.10203,12.26351 10.67173,9.96094 5.59373,8.31853 -1.49809,5.43164 -13.45237,4.14544 -10.25097,3.25983 -4.99257,2.68578 -0.92561,5.79077 5.27946,5.36826 -29.96526,19.38115 -12.41681,-9.76358 -7.012292,-5.04544 -8.225321,-1.99169 -8.8118,2.41422 -9.029409,1.67904 -20.61429,32.37013 -8.33223,1.80061 -6.743191,-7.09859 -11.059354,-6.0758 -1.936879,-20.38635 5.449154,-15.03341 25.43892,-14.86493 3.804521,-39.44888 27.11655,0.97845 17.021891,-6.44854 -2.989767,-15.312088 z"
   id="north_coast"
   inkscape:label="north_coast"><title
     id="title19">Северное приморье</title></path>

     <path
                sodipodi:type="spiral"
                style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.264583"
                id="port"
                sodipodi:cx="392.59415"
                sodipodi:cy="274.40112"
                sodipodi:expansion="1"
                sodipodi:revolution="3"
                sodipodi:radius="1.0766268"
                sodipodi:argument="-17.702831"
                sodipodi:t0="0"
                d="m 392.59415,274.40112 c 0.0222,0.0492 -0.0554,0.0542 -0.0818,0.0369 -0.0716,-0.0469 -0.0463,-0.15169 0.008,-0.20046 0.097,-0.0872 0.24743,-0.0449 0.31915,0.0528 0.10525,0.14339 0.044,0.34466 -0.0976,0.43784 -0.18879,0.1242 -0.44244,0.0433 -0.55653,-0.1425 -0.14358,-0.23381 -0.0427,-0.54048 0.18735,-0.67522 0.27867,-0.16319 0.63867,-0.0422 0.79391,0.23221 0.18294,0.32343 0.0418,0.73696 -0.27707,0.9126 -0.36812,0.20277 -0.83531,0.0414 -1.03128,-0.32192 -0.22267,-0.41279 -0.041,-0.93372 0.36678,-1.14997 0.45743,-0.24261 1.03214,-0.0406 1.26866,0.41163 0.26257,0.50205 0.0402,1.1306 -0.45649,1.38734"
                transform="translate(11.81834,0.85489582)"
                inkscape:label="port"/>
</g>
</svg>

?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions