<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Creating an image map from SVG</title>
	<atom:link href="http://davidlynch.org/blog/2008/03/creating-an-image-map-from-svg/feed/" rel="self" type="application/rss+xml" />
	<link>http://davidlynch.org/blog/2008/03/creating-an-image-map-from-svg/</link>
	<description>has a blog</description>
	<lastBuildDate>Wed, 10 Mar 2010 21:22:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Katrin (Assoly)</title>
		<link>http://davidlynch.org/blog/2008/03/creating-an-image-map-from-svg/comment-page-1/#comment-6329</link>
		<dc:creator>Katrin (Assoly)</dc:creator>
		<pubDate>Mon, 28 Sep 2009 07:29:39 +0000</pubDate>
		<guid isPermaLink="false">http://davidlynch.org/blog/2008/03/creating-an-image-map-from-svg/#comment-6329</guid>
		<description>Hello, David!
I tried to use your script for parsing this http://narod.ru/disk/13596896000/regioni.svg.html file.
Output file:
http://narod.ru/disk/13596953000/output_file.html
But it does not work.
Please help me to solve this problem.</description>
		<content:encoded><![CDATA[<p>Hello, David!<br />
I tried to use your script for parsing this <a href="http://narod.ru/disk/13596896000/regioni.svg.html" rel="nofollow">http://narod.ru/disk/13596896000/regioni.svg.html</a> file.<br />
Output file:<br />
<a href="http://narod.ru/disk/13596953000/output_file.html" rel="nofollow">http://narod.ru/disk/13596953000/output_file.html</a><br />
But it does not work.<br />
Please help me to solve this problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jason</title>
		<link>http://davidlynch.org/blog/2008/03/creating-an-image-map-from-svg/comment-page-1/#comment-4887</link>
		<dc:creator>jason</dc:creator>
		<pubDate>Wed, 06 May 2009 18:37:35 +0000</pubDate>
		<guid isPermaLink="false">http://davidlynch.org/blog/2008/03/creating-an-image-map-from-svg/#comment-4887</guid>
		<description>HI THERE- awesome script.  wondering how to scale the coordinates so that the script works with an image that is 600 px wide by 247 high (i already made the image)</description>
		<content:encoded><![CDATA[<p>HI THERE- awesome script.  wondering how to scale the coordinates so that the script works with an image that is 600 px wide by 247 high (i already made the image)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Helder Magalhães</title>
		<link>http://davidlynch.org/blog/2008/03/creating-an-image-map-from-svg/comment-page-1/#comment-3729</link>
		<dc:creator>Helder Magalhães</dc:creator>
		<pubDate>Fri, 13 Mar 2009 09:57:34 +0000</pubDate>
		<guid isPermaLink="false">http://davidlynch.org/blog/2008/03/creating-an-image-map-from-svg/#comment-3729</guid>
		<description>One may also use the Batik framework [1] for that. There&#039;s a patch which is directed towards creating an image map which, although with some limitations, can be a serious helper! ;-)  
Unfortunately, to use the patch, some development experience is needed (one needs to user the source version, not a binary release).

Hope this helps,
 Helder Magalhães


[1] http://xmlgraphics.apache.org/batik/
[2] https://issues.apache.org/bugzilla/show_bug.cgi?id=45783</description>
		<content:encoded><![CDATA[<p>One may also use the Batik framework [1] for that. There&#8217;s a patch which is directed towards creating an image map which, although with some limitations, can be a serious helper! ;-)<br />
Unfortunately, to use the patch, some development experience is needed (one needs to user the source version, not a binary release).</p>
<p>Hope this helps,<br />
 Helder Magalhães</p>
<p>[1] <a href="http://xmlgraphics.apache.org/batik/" rel="nofollow">http://xmlgraphics.apache.org/batik/</a><br />
[2] <a href="https://issues.apache.org/bugzilla/show_bug.cgi?id=45783" rel="nofollow">https://issues.apache.org/bugzilla/show_bug.cgi?id=45783</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: José Antonio Oliveira</title>
		<link>http://davidlynch.org/blog/2008/03/creating-an-image-map-from-svg/comment-page-1/#comment-3724</link>
		<dc:creator>José Antonio Oliveira</dc:creator>
		<pubDate>Thu, 12 Mar 2009 21:37:23 +0000</pubDate>
		<guid isPermaLink="false">http://davidlynch.org/blog/2008/03/creating-an-image-map-from-svg/#comment-3724</guid>
		<description>Giovanni, if you are using Inkscape to draw the image, try to save it as Plain SVG instead of Inkscape SVG.

I had the same problem and solved this way.

Best regards!</description>
		<content:encoded><![CDATA[<p>Giovanni, if you are using Inkscape to draw the image, try to save it as Plain SVG instead of Inkscape SVG.</p>
<p>I had the same problem and solved this way.</p>
<p>Best regards!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: crankycoder.com &#187; Links for January 16th</title>
		<link>http://davidlynch.org/blog/2008/03/creating-an-image-map-from-svg/comment-page-1/#comment-3288</link>
		<dc:creator>crankycoder.com &#187; Links for January 16th</dc:creator>
		<pubDate>Fri, 16 Jan 2009 19:01:39 +0000</pubDate>
		<guid isPermaLink="false">http://davidlynch.org/blog/2008/03/creating-an-image-map-from-svg/#comment-3288</guid>
		<description>[...] Creating an image map from SVG &lt; David Lynch - [...]</description>
		<content:encoded><![CDATA[<p>[...] Creating an image map from SVG &lt; David Lynch &#8211; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jiri Barton</title>
		<link>http://davidlynch.org/blog/2008/03/creating-an-image-map-from-svg/comment-page-1/#comment-1736</link>
		<dc:creator>Jiri Barton</dc:creator>
		<pubDate>Tue, 21 Oct 2008 22:24:04 +0000</pubDate>
		<guid isPermaLink="false">http://davidlynch.org/blog/2008/03/creating-an-image-map-from-svg/#comment-1736</guid>
		<description>Interestingly, I want to do the same thing for my django-worldmap application - http://lurkingideas.net/worldmap/.

Having spent the several hours looking for a solution, it seems the only way to do it is to parse the svg and draw the map again somehow - like you have done.

Thanks, at least I know there is probably no other way :)</description>
		<content:encoded><![CDATA[<p>Interestingly, I want to do the same thing for my django-worldmap application &#8211; <a href="http://lurkingideas.net/worldmap/" rel="nofollow">http://lurkingideas.net/worldmap/</a>.</p>
<p>Having spent the several hours looking for a solution, it seems the only way to do it is to parse the svg and draw the map again somehow &#8211; like you have done.</p>
<p>Thanks, at least I know there is probably no other way :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alpv</title>
		<link>http://davidlynch.org/blog/2008/03/creating-an-image-map-from-svg/comment-page-1/#comment-1693</link>
		<dc:creator>Alpv</dc:creator>
		<pubDate>Sun, 19 Oct 2008 13:56:09 +0000</pubDate>
		<guid isPermaLink="false">http://davidlynch.org/blog/2008/03/creating-an-image-map-from-svg/#comment-1693</guid>
		<description>Hello David,

Great examples. FYI, you mispelled Ecuador (you wrote Equador).</description>
		<content:encoded><![CDATA[<p>Hello David,</p>
<p>Great examples. FYI, you mispelled Ecuador (you wrote Equador).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul McGuire</title>
		<link>http://davidlynch.org/blog/2008/03/creating-an-image-map-from-svg/comment-page-1/#comment-1229</link>
		<dc:creator>Paul McGuire</dc:creator>
		<pubDate>Fri, 26 Sep 2008 13:57:57 +0000</pubDate>
		<guid isPermaLink="false">http://davidlynch.org/blog/2008/03/creating-an-image-map-from-svg/#comment-1229</guid>
		<description>David -

I noticed that your image map of the world contains many doubled coordinates, that is, consecutive coordinates that are the same x-y pair (probably due to float-to-integer roundoff).  

Here (http://pyparsing.pastebin.com/f6d3558d9) is a pyparsing script to post-process your generated image map - on your map of the world, it removes over 7700 duplicate coords.  The maximum number of duplicates was 14 on line 108.

-- Paul</description>
		<content:encoded><![CDATA[<p>David -</p>
<p>I noticed that your image map of the world contains many doubled coordinates, that is, consecutive coordinates that are the same x-y pair (probably due to float-to-integer roundoff).  </p>
<p>Here (<a href="http://pyparsing.pastebin.com/f6d3558d9" rel="nofollow">http://pyparsing.pastebin.com/f6d3558d9</a>) is a pyparsing script to post-process your generated image map &#8211; on your map of the world, it removes over 7700 duplicate coords.  The maximum number of duplicates was 14 on line 108.</p>
<p>&#8211; Paul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: muyi</title>
		<link>http://davidlynch.org/blog/2008/03/creating-an-image-map-from-svg/comment-page-1/#comment-526</link>
		<dc:creator>muyi</dc:creator>
		<pubDate>Sun, 22 Jun 2008 02:02:57 +0000</pubDate>
		<guid isPermaLink="false">http://davidlynch.org/blog/2008/03/creating-an-image-map-from-svg/#comment-526</guid>
		<description>Hi,

I tried using your svg2imagemap.py script to rescale the Wikipedia BlankMap-World6-Equirectangular.svg map, but the script doesn&#039;t seem to work. Did you use it in your example?  The width_ratio and height_ratio formulas don&#039;t seem to do anything to my image, and the path coordinates come out way higher than the image size that I gave on the command line.  I&#039;m trying to get an image that is 630px wide.  

Thanks for any help / comments.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I tried using your svg2imagemap.py script to rescale the Wikipedia BlankMap-World6-Equirectangular.svg map, but the script doesn&#8217;t seem to work. Did you use it in your example?  The width_ratio and height_ratio formulas don&#8217;t seem to do anything to my image, and the path coordinates come out way higher than the image size that I gave on the command line.  I&#8217;m trying to get an image that is 630px wide.  </p>
<p>Thanks for any help / comments.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: giovanni</title>
		<link>http://davidlynch.org/blog/2008/03/creating-an-image-map-from-svg/comment-page-1/#comment-501</link>
		<dc:creator>giovanni</dc:creator>
		<pubDate>Thu, 05 Jun 2008 20:56:59 +0000</pubDate>
		<guid isPermaLink="false">http://davidlynch.org/blog/2008/03/creating-an-image-map-from-svg/#comment-501</guid>
		<description>Hi, I&#039;m tryng your python script, but I&#039;m experiencing some problems.
When I first run the script I got this error:
C:\Python25&gt;python.exe svg2imagemap.py Italia.svg 1000 1000 regioni
Traceback (most recent call last):
  File &quot;svg2imagemap.py&quot;, line 49, in 
    raw_width = float(svg.getAttribute(&#039;width&#039;))
ValueError: invalid literal for float(): 553.423px

I have a tryed editing line 49 e 50 from:

raw_width = float(svg.getAttribute(&#039;width&#039;))

to

raw_width = float(svg.getAttribute(&#039;width&#039;).replace(&#039;px&#039;, &#039;&#039;))

But now no errors are displayed, but the result file is 0 byte.

If can be useful for debug the doctype of the file is:



Any help appreciated, thank you</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;m tryng your python script, but I&#8217;m experiencing some problems.<br />
When I first run the script I got this error:<br />
C:\Python25&gt;python.exe svg2imagemap.py Italia.svg 1000 1000 regioni<br />
Traceback (most recent call last):<br />
  File &#8220;svg2imagemap.py&#8221;, line 49, in<br />
    raw_width = float(svg.getAttribute(&#8216;width&#8217;))<br />
ValueError: invalid literal for float(): 553.423px</p>
<p>I have a tryed editing line 49 e 50 from:</p>
<p>raw_width = float(svg.getAttribute(&#8216;width&#8217;))</p>
<p>to</p>
<p>raw_width = float(svg.getAttribute(&#8216;width&#8217;).replace(&#8216;px&#8217;, &#8221;))</p>
<p>But now no errors are displayed, but the result file is 0 byte.</p>
<p>If can be useful for debug the doctype of the file is:</p>
<p>Any help appreciated, thank you</p>
]]></content:encoded>
	</item>
</channel>
</rss>
