<?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/"
	xmlns:series="http://unfoldingneurons.com/"
		>
<channel>
	<title>Comments on: Tutorial: Rendering a World Map in ActionScript</title>
	<atom:link href="http://vis4.net/blog/posts/rendering-world-maps-in-as3/feed/" rel="self" type="application/rss+xml" />
	<link>http://vis4.net/blog/posts/rendering-world-maps-in-as3/?piwik_campaign=rss&#038;piwik_kwd=1248</link>
	<description>The geeky side of information visualization</description>
	<lastBuildDate>Tue, 24 Jan 2012 23:04:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Rendering SVG Country Maps in Python &#8212; vis4.net</title>
		<link>http://vis4.net/blog/posts/rendering-world-maps-in-as3/?piwik_campaign=rss&#038;piwik_kwd=1248/comment-page-1/#comment-1726</link>
		<dc:creator>Rendering SVG Country Maps in Python &#8212; vis4.net</dc:creator>
		<pubDate>Thu, 03 Nov 2011 12:22:14 +0000</pubDate>
		<guid isPermaLink="false">http://vis4.net/blog/?p=1248#comment-1726</guid>
		<description>[...] There are several algorithms for polygon simplification, like the ones by Douglas &amp; Peuker and Visvalingam, but I used a very fast and simple one. Actually, it&#039;s the same algorithm that I used a few years ago, when I rendered my first world maps in Flash. [...]</description>
		<content:encoded><![CDATA[<p>[...] There are several algorithms for polygon simplification, like the ones by Douglas &amp; Peuker and Visvalingam, but I used a very fast and simple one. Actually, it&#039;s the same algorithm that I used a few years ago, when I rendered my first world maps in Flash. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gregor</title>
		<link>http://vis4.net/blog/posts/rendering-world-maps-in-as3/?piwik_campaign=rss&#038;piwik_kwd=1248/comment-page-1/#comment-362</link>
		<dc:creator>Gregor</dc:creator>
		<pubDate>Thu, 03 Jun 2010 14:41:57 +0000</pubDate>
		<guid isPermaLink="false">http://vis4.net/blog/?p=1248#comment-362</guid>
		<description>What you&#039;re trying to do should be no problem, the render() method definitly draws on the given canvas. Maybe you forgot to add your sprite to the stage? 

Again, please try the more simple example I posted in my previous comment. You find all the code you need (100 lines or so) without dependency to any of my other projection classes. This might help you, at least until I find the time to do some bug-fixing and performance optimization on the net.vis4.renderer package.</description>
		<content:encoded><![CDATA[<p>What you're trying to do should be no problem, the render() method definitly draws on the given canvas. Maybe you forgot to add your sprite to the stage? </p>
<p>Again, please try the more simple example I posted in my previous comment. You find all the code you need (100 lines or so) without dependency to any of my other projection classes. This might help you, at least until I find the time to do some bug-fixing and performance optimization on the net.vis4.renderer package.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://vis4.net/blog/posts/rendering-world-maps-in-as3/?piwik_campaign=rss&#038;piwik_kwd=1248/comment-page-1/#comment-361</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Thu, 03 Jun 2010 14:30:27 +0000</pubDate>
		<guid isPermaLink="false">http://vis4.net/blog/?p=1248#comment-361</guid>
		<description>Thanks, Gregor.  At least I know I&#039;m not insane trying to get it to work.

One other possibility: could I drop the projection on a sprite, rather than on the stage?  The render() method passes a Graphics class as its second argument and I tried creating a Sprite called _canvas, then passing _canvas.graphics to the PolygonRenderer, but it didn&#039;t work.

Perhaps I&#039;m not understanding the render() method properly.</description>
		<content:encoded><![CDATA[<p>Thanks, Gregor.  At least I know I'm not insane trying to get it to work.</p>
<p>One other possibility: could I drop the projection on a sprite, rather than on the stage?  The render() method passes a Graphics class as its second argument and I tried creating a Sprite called _canvas, then passing _canvas.graphics to the PolygonRenderer, but it didn't work.</p>
<p>Perhaps I'm not understanding the render() method properly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gregor</title>
		<link>http://vis4.net/blog/posts/rendering-world-maps-in-as3/?piwik_campaign=rss&#038;piwik_kwd=1248/comment-page-1/#comment-359</link>
		<dc:creator>Gregor</dc:creator>
		<pubDate>Wed, 02 Jun 2010 18:52:07 +0000</pubDate>
		<guid isPermaLink="false">http://vis4.net/blog/?p=1248#comment-359</guid>
		<description>Hi Nathan

I think there might be some bugs in the DataView class.. While doing the &lt;a href=&quot;http://vis4.net/blog/2010/04/map-rendering-speed-flash-vs-html5/&quot; rel=&quot;nofollow&quot;&gt;map rendering speed comparision&lt;/a&gt; I also found out that the map rendering I showed in this tutorial still needs a lot of performance improvements. 

So what I recommend to you now is to take a look at a &lt;a href=&quot;http://vis4.net/experiments/as3maps/QuickAndDirty.swf&quot; rel=&quot;nofollow&quot;&gt;more simple example&lt;/a&gt; of map rendering in actionscript. I also uploaded the &lt;a href=&quot;http://vis4.net/experiments/as3maps/QuickAndDirty.as&quot; rel=&quot;nofollow&quot;&gt;source file&lt;/a&gt;, which contains all calculation needed to render the map. If you want to run this locally, you need to download the used &lt;a href=&quot;http://vis4.net/experiments/as3maps/mapdata.csv&quot; rel=&quot;nofollow&quot;&gt;csv map data file&lt;/a&gt; as well.

Good luck.</description>
		<content:encoded><![CDATA[<p>Hi Nathan</p>
<p>I think there might be some bugs in the DataView class.. While doing the <a href="http://vis4.net/blog/2010/04/map-rendering-speed-flash-vs-html5/" rel="nofollow">map rendering speed comparision</a> I also found out that the map rendering I showed in this tutorial still needs a lot of performance improvements. </p>
<p>So what I recommend to you now is to take a look at a <a href="http://vis4.net/experiments/as3maps/QuickAndDirty.swf" rel="nofollow">more simple example</a> of map rendering in actionscript. I also uploaded the <a href="http://vis4.net/experiments/as3maps/QuickAndDirty.as" rel="nofollow">source file</a>, which contains all calculation needed to render the map. If you want to run this locally, you need to download the used <a href="http://vis4.net/experiments/as3maps/mapdata.csv" rel="nofollow">csv map data file</a> as well.</p>
<p>Good luck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://vis4.net/blog/posts/rendering-world-maps-in-as3/?piwik_campaign=rss&#038;piwik_kwd=1248/comment-page-1/#comment-358</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Wed, 02 Jun 2010 18:14:25 +0000</pubDate>
		<guid isPermaLink="false">http://vis4.net/blog/?p=1248#comment-358</guid>
		<description>Hi Gregor.  First, thanks for the helpful projection classes and their accompanying tutorials.  Great stuff.

I have a question about the DataView class and the polygon rendering routine, particularly this line:

var screen:Rectangle = new Rectangle(0,0, stage.stageWidth, stage.stageHeight);

When I change the first two coordinates of the screen object to anything besides (0,0), the map no longer draws on screen.  Tracing through the code and the DataView class, it appears that the scale (which is incredibly large for my data set) is creating massive x- and y-offsets, so the map is drawn with coordinates in the tens or hundreds of thousands.  

Essentially, I want to be able to move the initial starting coordinates of the screen rectangle so my map will draw anywhere on the screen (and at any scale) that I choose.  Any suggestions?  Was the DataView class only designed with stage-sized boundaries in mind, or am I missing something simple here?

Thanks again.</description>
		<content:encoded><![CDATA[<p>Hi Gregor.  First, thanks for the helpful projection classes and their accompanying tutorials.  Great stuff.</p>
<p>I have a question about the DataView class and the polygon rendering routine, particularly this line:</p>
<p>var screen:Rectangle = new Rectangle(0,0, stage.stageWidth, stage.stageHeight);</p>
<p>When I change the first two coordinates of the screen object to anything besides (0,0), the map no longer draws on screen.  Tracing through the code and the DataView class, it appears that the scale (which is incredibly large for my data set) is creating massive x- and y-offsets, so the map is drawn with coordinates in the tens or hundreds of thousands.  </p>
<p>Essentially, I want to be able to move the initial starting coordinates of the screen rectangle so my map will draw anywhere on the screen (and at any scale) that I choose.  Any suggestions?  Was the DataView class only designed with stage-sized boundaries in mind, or am I missing something simple here?</p>
<p>Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gregor</title>
		<link>http://vis4.net/blog/posts/rendering-world-maps-in-as3/?piwik_campaign=rss&#038;piwik_kwd=1248/comment-page-1/#comment-189</link>
		<dc:creator>Gregor</dc:creator>
		<pubDate>Fri, 30 Apr 2010 14:41:09 +0000</pubDate>
		<guid isPermaLink="false">http://vis4.net/blog/?p=1248#comment-189</guid>
		<description>That might work sometimes but it doesn&#039;t work in all cases and especially not for all projections. Take a look at some of the azimuthal projections and what kind of distortion they&#039;re introducing. Here is a small example to prove this:

Let&#039;s say you want to project the following coordinates (-180°;-70°), (0°;0°) and (180°;70°) using the Mollweide projection. The projection of the data bounding box would be much larger than the bounding box of the projected coordinates, because at Mollweide the projected longitude distance are getting smaller, the nearer you get to the poles.</description>
		<content:encoded><![CDATA[<p>That might work sometimes but it doesn't work in all cases and especially not for all projections. Take a look at some of the azimuthal projections and what kind of distortion they're introducing. Here is a small example to prove this:</p>
<p>Let's say you want to project the following coordinates (-180°;-70°), (0°;0°) and (180°;70°) using the Mollweide projection. The projection of the data bounding box would be much larger than the bounding box of the projected coordinates, because at Mollweide the projected longitude distance are getting smaller, the nearer you get to the poles.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vtstarin</title>
		<link>http://vis4.net/blog/posts/rendering-world-maps-in-as3/?piwik_campaign=rss&#038;piwik_kwd=1248/comment-page-1/#comment-188</link>
		<dc:creator>vtstarin</dc:creator>
		<pubDate>Fri, 30 Apr 2010 13:25:08 +0000</pubDate>
		<guid isPermaLink="false">http://vis4.net/blog/?p=1248#comment-188</guid>
		<description>Hi Gregor,

No need to calculate the range of the projected coordinates again in coding, because shapefile already has [shp_bounding_box] value stored in for us.</description>
		<content:encoded><![CDATA[<p>Hi Gregor,</p>
<p>No need to calculate the range of the projected coordinates again in coding, because shapefile already has [shp_bounding_box] value stored in for us.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gregor</title>
		<link>http://vis4.net/blog/posts/rendering-world-maps-in-as3/?piwik_campaign=rss&#038;piwik_kwd=1248/comment-page-1/#comment-175</link>
		<dc:creator>Gregor</dc:creator>
		<pubDate>Tue, 27 Apr 2010 21:05:05 +0000</pubDate>
		<guid isPermaLink="false">http://vis4.net/blog/?p=1248#comment-175</guid>
		<description>Sounds like a good idea, but this doesn&#039;t work because transform() expects a flash.geom.Point and not a org.vanrijkom.shp.ShpPoint. So instead it would be

&gt; o = projection.transform(new Point(pt.x, pt.y), new Point());

which is much nicer than using project() because we get results in metres. 

Thanks for this remark.</description>
		<content:encoded><![CDATA[<p>Sounds like a good idea, but this doesn't work because transform() expects a flash.geom.Point and not a org.vanrijkom.shp.ShpPoint. So instead it would be</p>
<p>> o = projection.transform(new Point(pt.x, pt.y), new Point());</p>
<p>which is much nicer than using project() because we get results in metres. </p>
<p>Thanks for this remark.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vtstarin</title>
		<link>http://vis4.net/blog/posts/rendering-world-maps-in-as3/?piwik_campaign=rss&#038;piwik_kwd=1248/comment-page-1/#comment-174</link>
		<dc:creator>vtstarin</dc:creator>
		<pubDate>Tue, 27 Apr 2010 18:48:38 +0000</pubDate>
		<guid isPermaLink="false">http://vis4.net/blog/?p=1248#comment-174</guid>
		<description>Thank you for making this tutorial. 

Instead of using 
&gt; o = projection.project(deg2rad(pt.x), deg2rad(pt.y), new Point());

Can we use this method
&gt; o = projection.transform(pt, new Point()); in Projection class.</description>
		<content:encoded><![CDATA[<p>Thank you for making this tutorial. </p>
<p>Instead of using<br />
&gt; o = projection.project(deg2rad(pt.x), deg2rad(pt.y), new Point());</p>
<p>Can we use this method<br />
&gt; o = projection.transform(pt, new Point()); in Projection class.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached (User agent is rejected)
Database Caching 1/16 queries in 0.009 seconds using memcached
Object Caching 545/546 objects using memcached
Content Delivery Network via N/A

Served from: vis4.net @ 2012-02-05 23:16:42 -->
