<?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: Choropleth Map Component (Adobe Flex 3)</title>
	<atom:link href="http://srirangan.net/?feed=rss2&#038;p=209" rel="self" type="application/rss+xml" />
	<link>http://srirangan.net/?p=209</link>
	<description>tweaking flex, java and python code</description>
	<lastBuildDate>Wed, 01 Sep 2010 12:02:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Gordon</title>
		<link>http://srirangan.net/?p=209&#038;cpage=1#comment-4751</link>
		<dc:creator>Gordon</dc:creator>
		<pubDate>Tue, 24 Aug 2010 14:32:43 +0000</pubDate>
		<guid isPermaLink="false">http://srirangan.net/?p=209#comment-4751</guid>
		<description>Firstly, many thanks to Srirangan for publishing this code, it has been very useful.

In response to anyone like Srikanth who is wondering how the map data needs to be formatted to work with this Choropleth map my understanding is as follows:
The polygon object requires a Hamiltonian set of coordinates (x,y) delimited by &#124; (you can easily change this if you&#039;d prefer to use whitespace, look at PolygonAs.as on line 35).
This format is NOT the same as represented in SVG as encountered by Srikanth. You will have to do some basic transformation to convert the coordinates found in definition of an SVG path tag to the format required for working with this Component. Follow these steps:
 - Remove all alphabetical characters from the the d element so you are just left with coordinate pairs (if you didn&#039;t change the coords delimiter then do find replace to swap &quot; &quot; for &quot;&#124;&quot;)
 - Rename d element to coords
 - Rename id to gid
 - Change the tag names (path) to district
 - Replace current XMLList in ChoroplethMap.mxml with your new one
 - Supply required overlaying data
 - Hey presto, you should have your own Choropleth map.</description>
		<content:encoded><![CDATA[<p>Firstly, many thanks to Srirangan for publishing this code, it has been very useful.</p>
<p>In response to anyone like Srikanth who is wondering how the map data needs to be formatted to work with this Choropleth map my understanding is as follows:<br />
The polygon object requires a Hamiltonian set of coordinates (x,y) delimited by | (you can easily change this if you’d prefer to use whitespace, look at PolygonAs.as on line 35).<br />
This format is NOT the same as represented in SVG as encountered by Srikanth. You will have to do some basic transformation to convert the coordinates found in definition of an SVG path tag to the format required for working with this Component. Follow these steps:<br />
 — Remove all alphabetical characters from the the d element so you are just left with coordinate pairs (if you didn’t change the coords delimiter then do find replace to swap ” ” for “|”)<br />
 — Rename d element to coords<br />
 — Rename id to gid<br />
 — Change the tag names (path) to district<br />
 — Replace current XMLList in ChoroplethMap.mxml with your new one<br />
 — Supply required overlaying data<br />
 — Hey presto, you should have your own Choropleth map.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nirav</title>
		<link>http://srirangan.net/?p=209&#038;cpage=1#comment-4747</link>
		<dc:creator>Nirav</dc:creator>
		<pubDate>Mon, 14 Jun 2010 08:40:48 +0000</pubDate>
		<guid isPermaLink="false">http://srirangan.net/?p=209#comment-4747</guid>
		<description>Hi Sir,

Can you post coordinates for india? I&#039;ve tried from ur code but, I&#039;m not getting the right .svg.</description>
		<content:encoded><![CDATA[<p>Hi Sir,</p>
<p>Can you post coordinates for india? I’ve tried from ur code but, I’m not getting the right .svg.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sanj</title>
		<link>http://srirangan.net/?p=209&#038;cpage=1#comment-4550</link>
		<dc:creator>sanj</dc:creator>
		<pubDate>Thu, 25 Mar 2010 15:42:11 +0000</pubDate>
		<guid isPermaLink="false">http://srirangan.net/?p=209#comment-4550</guid>
		<description>wow! this is a great hint but it took me so long to figure out how to get the coordinates in correct format.

After 2 hours I have finally figured out.  Thanks</description>
		<content:encoded><![CDATA[<p>wow! this is a great hint but it took me so long to figure out how to get the coordinates in correct format.</p>
<p>After 2 hours I have finally figured out.  Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vikas</title>
		<link>http://srirangan.net/?p=209&#038;cpage=1#comment-4518</link>
		<dc:creator>vikas</dc:creator>
		<pubDate>Thu, 18 Mar 2010 10:04:22 +0000</pubDate>
		<guid isPermaLink="false">http://srirangan.net/?p=209#comment-4518</guid>
		<description>i m creat a india map n all state map but i got some problem i still searching the how to link all state to the india map.
i m creating the all map with the help of ur code</description>
		<content:encoded><![CDATA[<p>i m creat a india map n all state map but i got some problem i still searching the how to link all state to the india map.<br />
i m creating the all map with the help of ur code</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vikas</title>
		<link>http://srirangan.net/?p=209&#038;cpage=1#comment-4514</link>
		<dc:creator>vikas</dc:creator>
		<pubDate>Wed, 17 Mar 2010 08:31:30 +0000</pubDate>
		<guid isPermaLink="false">http://srirangan.net/?p=209#comment-4514</guid>
		<description>i want link all district to main pakistahn map.just give me some hint now</description>
		<content:encoded><![CDATA[<p>i want link all district to main pakistahn map.just give me some hint now</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Srikanth</title>
		<link>http://srirangan.net/?p=209&#038;cpage=1#comment-4353</link>
		<dc:creator>Srikanth</dc:creator>
		<pubDate>Mon, 23 Nov 2009 16:32:09 +0000</pubDate>
		<guid isPermaLink="false">http://srirangan.net/?p=209#comment-4353</guid>
		<description>Thanks for the response srirangan. Sorry to bother you with followup question. 
I think my concern is not about finding SVG file, but how you are determining the coordinates. I&#039;ve found an svg file in wikipedia for Pakistan: (http://upload.wikimedia.org/wikipedia/commons/6/66/Pakistan_location_map.svg) and I checked the xml using firebug. I was able to see the path data, but it looks quite different from what you&#039;ve in your file. 

M 2330.6728,914.3584 C 2331.9409,914.64014 2333.6338,915.33203 2334.5864,916.25635 C 2335.5376,915.92041 2337.9995,915.66114 2338.9302,915.86768 L 2342.1411,916.93164 C 2342.7676,917.13916 2343.1558,917.17041 2343.7466,917.46338 C 2343.8227,917.50147 2346.1401,919.38086 2346.3613,919.55713 C 2346.9985,920.06787 2347.7476,920.29443 2348.4019,920.74609 C 2349.1699,921.27588 2350.4512,922.69384 2351.3477,922.84765 L 2353.687,922.49658 L 2354.7305,923.10058 L 2355.9805,923.08154 C 2356.1426,923.24023 2357.7598,924.84961 2357.8247,924.88867 C 2358.7764,925.45849 2361.1802,926.32666 2363.2842,927.00976


Your coordinates does not have any &quot;C&quot;s, &quot;L&quot;s and &quot;M&quot;s. Is it only because of different SVG file? I searched for many svgs on wikipedia and almost all of them have C, L and M in the coordinates. 


Thanks for your response.</description>
		<content:encoded><![CDATA[<p>Thanks for the response srirangan. Sorry to bother you with followup question.<br />
I think my concern is not about finding SVG file, but how you are determining the coordinates. I’ve found an svg file in wikipedia for Pakistan: (<a href="http://upload.wikimedia.org/wikipedia/commons/6/66/Pakistan_location_map.svg" rel="nofollow">http://upload.wikimedia.org/wikipedia/commons/6/66/Pakistan_location_map.svg</a>) and I checked the xml using firebug. I was able to see the path data, but it looks quite different from what you’ve in your file. </p>
<p>M 2330.6728,914.3584 C 2331.9409,914.64014 2333.6338,915.33203 2334.5864,916.25635 C 2335.5376,915.92041 2337.9995,915.66114 2338.9302,915.86768 L 2342.1411,916.93164 C 2342.7676,917.13916 2343.1558,917.17041 2343.7466,917.46338 C 2343.8227,917.50147 2346.1401,919.38086 2346.3613,919.55713 C 2346.9985,920.06787 2347.7476,920.29443 2348.4019,920.74609 C 2349.1699,921.27588 2350.4512,922.69384 2351.3477,922.84765 L 2353.687,922.49658 L 2354.7305,923.10058 L 2355.9805,923.08154 C 2356.1426,923.24023 2357.7598,924.84961 2357.8247,924.88867 C 2358.7764,925.45849 2361.1802,926.32666 2363.2842,927.00976</p>
<p>Your coordinates does not have any “C“s, “L“s and “M“s. Is it only because of different SVG file? I searched for many svgs on wikipedia and almost all of them have C, L and M in the coordinates. </p>
<p>Thanks for your response.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Srirangan</title>
		<link>http://srirangan.net/?p=209&#038;cpage=1#comment-4352</link>
		<dc:creator>Srirangan</dc:creator>
		<pubDate>Mon, 23 Nov 2009 04:54:28 +0000</pubDate>
		<guid isPermaLink="false">http://srirangan.net/?p=209#comment-4352</guid>
		<description>Hi Srikanth,

I&#039;ll try to find the link for that file and post it here. It has been a while since I worked on this and locating the file will take me some time.

For the map of India, I would recommend the following:
1. Use the iLog Elixir map components since it has a shapefile converter
2. The shape files for India is available on the Election Commission of India website

- Sri</description>
		<content:encoded><![CDATA[<p>Hi Srikanth,</p>
<p>I’ll try to find the link for that file and post it here. It has been a while since I worked on this and locating the file will take me some time.</p>
<p>For the map of India, I would recommend the following:<br />
1. Use the iLog Elixir map components since it has a shapefile converter<br />
2. The shape files for India is available on the Election Commission of India website</p>
<p>- Sri</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Srikanth</title>
		<link>http://srirangan.net/?p=209&#038;cpage=1#comment-4350</link>
		<dc:creator>Srikanth</dc:creator>
		<pubDate>Sat, 21 Nov 2009 06:34:56 +0000</pubDate>
		<guid isPermaLink="false">http://srirangan.net/?p=209#comment-4350</guid>
		<description>Could you post the link to your svg file (with coordiates)?
Do you have the same for India with states?

Thanks,
 Srikanth</description>
		<content:encoded><![CDATA[<p>Could you post the link to your svg file (with coordiates)?<br />
Do you have the same for India with states?</p>
<p>Thanks,<br />
 Srikanth</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny Trejo</title>
		<link>http://srirangan.net/?p=209&#038;cpage=1#comment-4304</link>
		<dc:creator>Danny Trejo</dc:creator>
		<pubDate>Tue, 13 Oct 2009 00:33:50 +0000</pubDate>
		<guid isPermaLink="false">http://srirangan.net/?p=209#comment-4304</guid>
		<description>Hey  it works  !</description>
		<content:encoded><![CDATA[<p>Hey  it works  !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny Trejo</title>
		<link>http://srirangan.net/?p=209&#038;cpage=1#comment-4303</link>
		<dc:creator>Danny Trejo</dc:creator>
		<pubDate>Tue, 13 Oct 2009 00:31:26 +0000</pubDate>
		<guid isPermaLink="false">http://srirangan.net/?p=209#comment-4303</guid>
		<description>Hey when execute the swf out of bin folder it doesnt work, it shows nothing, I put in the project properties &quot; -locale en_US -use-network=false&quot;</description>
		<content:encoded><![CDATA[<p>Hey when execute the swf out of bin folder it doesnt work, it shows nothing, I put in the project properties ” –locale en_US –use-network=false”</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny Trejo</title>
		<link>http://srirangan.net/?p=209&#038;cpage=1#comment-4302</link>
		<dc:creator>Danny Trejo</dc:creator>
		<pubDate>Mon, 12 Oct 2009 23:39:59 +0000</pubDate>
		<guid isPermaLink="false">http://srirangan.net/?p=209#comment-4302</guid>
		<description>Hey very cool example, I need  to do the same but for the canada map.. How I obtain  the polygon coordinates?

can you give me a hand on this please ?</description>
		<content:encoded><![CDATA[<p>Hey very cool example, I need  to do the same but for the canada map.. How I obtain  the polygon coordinates?</p>
<p>can you give me a hand on this please ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Srirangan</title>
		<link>http://srirangan.net/?p=209&#038;cpage=1#comment-4281</link>
		<dc:creator>Srirangan</dc:creator>
		<pubDate>Tue, 22 Sep 2009 01:37:35 +0000</pubDate>
		<guid isPermaLink="false">http://srirangan.net/?p=209#comment-4281</guid>
		<description>Yeah, SVGs can be embedded into Flex as Assets.. http://www.adobe.com/devnet/flex/quickstart/embedding_assets/</description>
		<content:encoded><![CDATA[<p>Yeah, SVGs can be embedded into Flex as Assets.. <a href="http://www.adobe.com/devnet/flex/quickstart/embedding_assets/" rel="nofollow">http://www.adobe.com/devnet/flex/quickstart/embedding_assets/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vlad</title>
		<link>http://srirangan.net/?p=209&#038;cpage=1#comment-4277</link>
		<dc:creator>Vlad</dc:creator>
		<pubDate>Thu, 03 Sep 2009 17:00:44 +0000</pubDate>
		<guid isPermaLink="false">http://srirangan.net/?p=209#comment-4277</guid>
		<description>Thanks, but can you post a link for SVG file?
I can&#039;t find it!
One more...
Does Flex support SVG files?</description>
		<content:encoded><![CDATA[<p>Thanks, but can you post a link for SVG file?<br />
I can’t find it!<br />
One more…<br />
Does Flex support SVG files?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Srirangan</title>
		<link>http://srirangan.net/?p=209&#038;cpage=1#comment-4276</link>
		<dc:creator>Srirangan</dc:creator>
		<pubDate>Thu, 03 Sep 2009 13:02:08 +0000</pubDate>
		<guid isPermaLink="false">http://srirangan.net/?p=209#comment-4276</guid>
		<description>Vlad/Dean, I got the co-ordinates from an SVG file posted on Wikipedia.</description>
		<content:encoded><![CDATA[<p>Vlad/Dean, I got the co-ordinates from an SVG file posted on Wikipedia.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dean</title>
		<link>http://srirangan.net/?p=209&#038;cpage=1#comment-4275</link>
		<dc:creator>Dean</dc:creator>
		<pubDate>Fri, 28 Aug 2009 13:50:18 +0000</pubDate>
		<guid isPermaLink="false">http://srirangan.net/?p=209#comment-4275</guid>
		<description>I agree, very cool.  But, how did you get the coordinates?  Do you have a tool that creates the polygon coordinates?</description>
		<content:encoded><![CDATA[<p>I agree, very cool.  But, how did you get the coordinates?  Do you have a tool that creates the polygon coordinates?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vlad</title>
		<link>http://srirangan.net/?p=209&#038;cpage=1#comment-4274</link>
		<dc:creator>Vlad</dc:creator>
		<pubDate>Sun, 16 Aug 2009 21:58:22 +0000</pubDate>
		<guid isPermaLink="false">http://srirangan.net/?p=209#comment-4274</guid>
		<description>That is very cool thing!
Can you tell how you got coordinates for districts?</description>
		<content:encoded><![CDATA[<p>That is very cool thing!<br />
Can you tell how you got coordinates for districts?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
