Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I needed some coordinates for a HTML MAP and tried to use inkskape by opening the image and just draw a path with my polygon coordinates.

My document properties are set to 256 x 256 pixels and units: px

When opening the svg file i get coordinates which are not immediately apparent.

   d="m 23.864407,126.91525 3.254237,
                   44.47458 35.79661,
                   44.47458 71.593216,
                   19.52542 71.59322,
                   -37.9661 22.77967,
                   -72.67797 L 218.0339,
                   64 192,49.898305 l -32.54237,
                   8.677966 -18.44068,
                   -35.79661 1.08474,
                  -17.3559322 -71.593215,0 L 45.559322,34.711864 35.
                   79661,57.491525 5.4237288,
                   74.847458 6.5084746,101.9661 23.864407,126.91525 z"
                   id="path2840" />

How can I get coordinates I can use ?

The original image

alt text

The SVG file from inkscape

Link to SVG


I tried a tool called InkscapeMap which looks promising and simple, but unfortunately it looks like it didn't work with this particular svn file.

alt text


Saving the file as a Plain SVG solved the problem and InkscapeMap worked perfectly.

(Btw. saving as an optimized svg caused a parsing error)

Update 13.11

Using inkscapeMap 0.6 and Inkscape 0.48 i needed to uncheck relative coordinates in SVG output preferences. Also if you get a C error message, hunt down the polygon with a C in it, and redraw the polygon using the XML editor in inkscape.

Update 25.11.2011

I modified the source to improve parsing.

share|improve this question
Please don't embed SVG files, they don't show up in every browser. Link to them instead. – BloodPhilia Jul 12 '10 at 21:18
No problem :-)) – tovare Jul 12 '10 at 21:28
Thanks! =) You just made the community healthier! haha! – BloodPhilia Jul 12 '10 at 21:30
+1 Just because you have awesome images! – Ivo Flipse Jul 14 '10 at 6:31
up vote 3 down vote accepted

Check it:

share|improve this answer
Very promising tool :-) It looks like the tool doesn't work on this particular file. – tovare Jul 12 '10 at 21:07
Correction: it did work when saving as a Plain SVG file :) – tovare Jul 13 '10 at 6:12
hello i'm trying to do the same thing but i have teh same problem as tovare. I use inkscape 0.48 and i tried to save as svg simple but it doesn't work. – Mermoz Jan 29 '11 at 18:24
As am I, 0.48 saving with plain svg doesn't seem to work. Error in parsing: org.xml.sax.SAXParseException: Point cohordinates not valid: C – ajbeaven Nov 3 '11 at 1:18
That error is a polygon which hasn't been closed I think. – tovare Nov 13 '11 at 23:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .