<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Here comes the Sun &#187; map</title>
	<atom:link href="http://sunng.info/blog/tag/map/feed/" rel="self" type="application/rss+xml" />
	<link>http://sunng.info/blog</link>
	<description>47% users on this site use *nix</description>
	<lastBuildDate>Sat, 04 Feb 2012 13:08:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>HeatCanvas support for Leaflet</title>
		<link>http://sunng.info/blog/2011/07/heatcanvas-support-for-leaflet/</link>
		<comments>http://sunng.info/blog/2011/07/heatcanvas-support-for-leaflet/#comments</comments>
		<pubDate>Mon, 18 Jul 2011 12:50:03 +0000</pubDate>
		<dc:creator>sunng</dc:creator>
				<category><![CDATA[ANN]]></category>
		<category><![CDATA[GIS]]></category>
		<category><![CDATA[heatcanvas]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[map]]></category>

		<guid isPermaLink="false">http://sunng.info/blog/?p=916</guid>
		<description><![CDATA[Leaflet is a light weight web mapping library developed by Cloudmade. Leaflet is designed for compatibility with both desktop browser and mobile browser. HeatCanvas-Leaflet extension enables heat map on Leaflet. You can create heat map layer and add it to &#8230; <a href="http://sunng.info/blog/2011/07/heatcanvas-support-for-leaflet/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://leaflet.cloudmade.com/" title="leaflet" target="_blank">Leaflet</a> is a light weight web mapping library developed by <a href="http://cloudmade.com/" title="cloudmade" target="_blank">Cloudmade</a>. Leaflet is designed for compatibility with both desktop browser and mobile browser.</p>
<p>HeatCanvas-Leaflet extension enables heat map on Leaflet. You can create heat map layer and add it to Leatlet map:</p>
<div class="codecolorer-container javascript twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #003366; font-weight: bold;">var</span> heatmap <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> L.<span style="color: #660066;">TileLayer</span>.<span style="color: #660066;">HeatCanvas</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Heat Canvas&quot;</span><span style="color: #339933;">,</span> map<span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span><span style="color: #3366CC;">'step'</span><span style="color: #339933;">:</span><span style="color: #CC0000;">0.3</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'degree'</span><span style="color: #339933;">:</span>HeatCanvas.<span style="color: #660066;">QUAD</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'opacity'</span><span style="color: #339933;">:</span><span style="color: #CC0000;">0.7</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
heatmap.<span style="color: #660066;">pushData</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">32.1104</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">118.0852</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">14</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #006600; font-style: italic;">//push more data ...</span><br />
map.<span style="color: #660066;">addLayer</span><span style="color: #009900;">&#40;</span>heatmap<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<p>You can find live demo on:<br />
<a href="http://sunng87.github.com/heatcanvas/leaflet.html" title="heatcanvas demo" target="_blank">http://sunng87.github.com/heatcanvas/leaflet.html</a><br />
Mobile browser is also supported. (Tested on Firefox Android and default Android browser)</p>
<p>Find more about HeatCanvas on <a href="https://github.com/sunng87/heatcanvas">github page</a>.</p>
<p>Leaflet is still buggy for extension. There is a latlng-pixel coordinate conversion <a href="https://github.com/CloudMade/Leaflet/issues/190" target="_blank">issue</a> in low zoom level, affects this demo. Hope it could be fixed soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://sunng.info/blog/2011/07/heatcanvas-support-for-leaflet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Perfomed my first commit to OpenStreetMap.org</title>
		<link>http://sunng.info/blog/2010/06/perfomed-my-first-commit-to-openstreetmap-org/</link>
		<comments>http://sunng.info/blog/2010/06/perfomed-my-first-commit-to-openstreetmap-org/#comments</comments>
		<pubDate>Sun, 13 Jun 2010 04:59:02 +0000</pubDate>
		<dc:creator>sunng</dc:creator>
				<category><![CDATA[自话]]></category>
		<category><![CDATA[GIS]]></category>
		<category><![CDATA[map]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[OpenStreetMap]]></category>

		<guid isPermaLink="false">http://sunng.info/blog/2010/06/perfomed-my-first-commit-to-openstreetmap-org/</guid>
		<description><![CDATA[每每看到OSM上南京的地图都一阵唏嘘，这么多年了几乎没有任何变化，仅有的一些数据也都是错误百出，身为一个南京人，又是一个GIS专业毕业的，深感压力巨大。 实际上编辑OSM没有大家想象的那么复杂。任何人都可以注册登录网站，用默认的Potlatch工具进行编辑，即使你手上没有数据也可以编辑一些基本的属性，比如把错误的中山路纠正为北京东路。我从MapMyTracks上导出GPX文件上传到OSM，GPS数据会在OSM上被显示出来，根据这些数据稍作加工就是道路信息了。浏览器里的编辑器功能并不强大，KDE桌面的Merkaator的编辑能力要强大得多，可以对道路进行split/join操作，这些操作对之前南京地图上各种错误的数据非常必要。 其实OpenStreetMap可以借助一些背景图进行数字化，但是在国内，目前只有分辨率非常低Yahoo卫星地图可以用。至于Google的卫星地图，由于License的原因，你是不能在编辑自由地图时使用的。 上海的OSM已经非常完善，数据完善的程度、渲染出地图的壮观已经让你难以想象，连去年开通的张江电车已经在地图上标出，还有各个站名。注册后可以发现，仅仅在浦东就有十几位OSM的贡献者。相比之下，南京在这方面一片空白，甚至还没有苏州的地图完善。考虑到南京有这么多学校这么多GIS专业学生，每年做那么多无用的、自以为是的数字化作业，真正有意义的工作却无人问津，并非没有人愿意去做，而恐怕是大部分人对OSM都闻所未闻。 今后每周我回抽出一定的时间来编辑南京的地图，也算是为家乡做一些贡献吧。 The post is brought to you by lekhonee v0.7]]></description>
			<content:encoded><![CDATA[<p>每每看到OSM上<a href="http://osm.org/go/5nFq9bhH-">南京的地图</a>都一阵唏嘘，这么多年了几乎没有任何变化，仅有的一些数据也都是错误百出，身为一个南京人，又是一个GIS专业毕业的，深感压力巨大。</p>
<p>实际上编辑OSM没有大家想象的那么复杂。任何人都可以注册登录网站，用默认的Potlatch工具进行编辑，即使你手上没有数据也可以编辑一些基本的属性，比如把错误的中山路纠正为北京东路。我从MapMyTracks上导出GPX文件上传到OSM，GPS数据会在OSM上被显示出来，根据这些数据稍作加工就是道路信息了。浏览器里的编辑器功能并不强大，KDE桌面的Merkaator的编辑能力要强大得多，可以对道路进行split/join操作，这些操作对之前南京地图上各种错误的数据非常必要。</p>
<p>其实OpenStreetMap可以借助一些背景图进行数字化，但是在国内，目前只有分辨率非常低Yahoo卫星地图可以用。至于Google的卫星地图，<a href="http://wiki.openstreetmap.org/wiki/FAQ#What_images_and_maps_may_I_use_to_make_maps_from.3F">由于License的原因</a>，你是不能在编辑自由地图时使用的。</p>
<p>上海的OSM已经非常完善，数据完善的程度、渲染出地图的壮观已经让你难以想象，连去年开通的张江电车已经在地图上标出，还有各个站名。注册后可以发现，仅仅在浦东就有十几位OSM的贡献者。相比之下，南京在这方面一片空白，甚至还没有苏州的地图完善。考虑到南京有这么多学校这么多GIS专业学生，每年做那么多无用的、自以为是的数字化作业，真正有意义的工作却无人问津，并非没有人愿意去做，而恐怕是大部分人对OSM都闻所未闻。</p>
<p>今后每周我回抽出一定的时间来编辑南京的地图，也算是为家乡做一些贡献吧。</p>
<p>The post is brought to you by <a href="http://fedorahosted.org/lekhonee">lekhonee</a> v0.7</p>
]]></content:encoded>
			<wfw:commentRss>http://sunng.info/blog/2010/06/perfomed-my-first-commit-to-openstreetmap-org/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Emerillon: map viewer for gnome desktop</title>
		<link>http://sunng.info/blog/2010/01/emerillon-map-viewer-for-gnome-desktop/</link>
		<comments>http://sunng.info/blog/2010/01/emerillon-map-viewer-for-gnome-desktop/#comments</comments>
		<pubDate>Sat, 30 Jan 2010 15:03:47 +0000</pubDate>
		<dc:creator>sunng</dc:creator>
				<category><![CDATA[装备]]></category>
		<category><![CDATA[GIS]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[map]]></category>
		<category><![CDATA[OpenStreetMap]]></category>

		<guid isPermaLink="false">http://sunng.info/blog/?p=435</guid>
		<description><![CDATA[自从libchamplain / geoclue等库发布之后，gnome桌面的地理信息工具和支持发展很迅速：例如之前提到过的eye-of-gnome的地理信息插件，根据EXIF信息在地图上显示。现在gnome桌面上终于有一个专门的地图查看器了，仍然是基于libchamplain，名字叫做emerillon 仍然是使用open street maps，这两年上海的地图发展的非常不错，连最新的二号线东延都已经被标注出来了。相比之下，南京的地图就还是一片空白。 在Ubuntu上安装emerillon，可以从其网站上下载源码编译安装： http://www.novopia.com/emerillon/download.html emerillon的几个主要依赖： libchamplain librest ethos libchamplain在ubuntu 9.10的仓库已经包含 librest也在软件仓库中，不过需要注意的是ubuntu将librest安装在pkg-config里时的名字叫做rest.pc，而emerillon查找的是rest-0.6.pc，所以需要手动建立一个软连接： sudo ln -s /usr/lib/pkgconfig/rest.pc /usr/lib/pkgconfig/rest-0.6.pc ethos是一个Gtk的插件框架，目前还不在软件仓库中，需要从网站下载代码编译： http://git.dronelabs.com/ethos/ ethos网站上提到的PPA源中的版本偏旧，不建议使用。 实际上也可以直接添加emerillon的PPA源： deb http://ppa.launchpad.net/mathieu-tl/emerillon/ubuntu karmic main deb-src http://ppa.launchpad.net/mathieu-tl/emerillon/ubuntu karmic main 另外，也可以通过Ubuntu Tweak安装。 作者Blog： http://blog.pierlux.com/en/]]></description>
			<content:encoded><![CDATA[<p>自从libchamplain / geoclue等库发布之后，gnome桌面的地理信息工具和支持发展很迅速：例如之前提到过的eye-of-gnome的地理信息插件，根据EXIF信息在地图上显示。现在gnome桌面上终于有一个专门的地图查看器了，仍然是基于libchamplain，名字叫做<a href="http://www.novopia.com/emerillon/" target="_blank">emerillon</a></p>
<p><a title="Emerillon Map Viewer by 贝小塔, on Flickr" href="http://www.flickr.com/photos/40741608@N08/4315412541/"><img src="http://farm5.static.flickr.com/4021/4315412541_d34e08d02b.jpg" alt="Emerillon Map Viewer" width="500" height="286" /></a></p>
<p>仍然是使用open street maps，这两年上海的地图发展的非常不错，连最新的二号线东延都已经被标注出来了。相比之下，南京的地图就还是一片空白。</p>
<p>在Ubuntu上安装emerillon，可以从其网站上下载源码编译安装：<br />
<a href="http://www.novopia.com/emerillon/download.html">http://www.novopia.com/emerillon/download.html</a></p>
<p>emerillon的几个主要依赖：</p>
<ul>
<li>libchamplain</li>
<li>librest</li>
<li>ethos</li>
</ul>
<p>libchamplain在ubuntu 9.10的仓库已经包含</p>
<p>librest也在软件仓库中，不过需要注意的是ubuntu将librest安装在pkg-config里时的名字叫做rest.pc，而emerillon查找的是rest-0.6.pc，所以需要手动建立一个软连接：<br />
<em>sudo ln -s /usr/lib/pkgconfig/rest.pc /usr/lib/pkgconfig/rest-0.6.pc</em></p>
<p>ethos是一个Gtk的插件框架，目前还不在软件仓库中，需要从网站下载代码编译：<br />
<a href="http://git.dronelabs.com/ethos/" target="_blank">http://git.dronelabs.com/ethos/</a><br />
ethos网站上提到的PPA源中的版本偏旧，不建议使用。</p>
<p><em>实际上也可以直接添加emerillon的PPA源：<br />
deb http://ppa.launchpad.net/mathieu-tl/emerillon/ubuntu karmic main<br />
deb-src http://ppa.launchpad.net/mathieu-tl/emerillon/ubuntu karmic main</em></p>
<p>另外，也可以通过Ubuntu Tweak安装。</p>
<p>作者Blog：<br />
<a href="http://blog.pierlux.com/en/">http://blog.pierlux.com/en/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sunng.info/blog/2010/01/emerillon-map-viewer-for-gnome-desktop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OSM Static API with JavaFX</title>
		<link>http://sunng.info/blog/2009/07/osm-static-api-with-javafx/</link>
		<comments>http://sunng.info/blog/2009/07/osm-static-api-with-javafx/#comments</comments>
		<pubDate>Sat, 18 Jul 2009 08:04:15 +0000</pubDate>
		<dc:creator>sunng</dc:creator>
				<category><![CDATA[手艺]]></category>
		<category><![CDATA[foss]]></category>
		<category><![CDATA[GIS]]></category>
		<category><![CDATA[JavaFX]]></category>
		<category><![CDATA[map]]></category>
		<category><![CDATA[OpenStreetMap]]></category>
		<category><![CDATA[RIA]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.classicning.com/blog/?p=116</guid>
		<description><![CDATA[OSM(http://www.osm.org) has released their first prototype of static map api. It is aimed to make web mapping easier to refer just like google has done. All interfaces are listed in following page: http://dev.openstreetmap.org/~pafciu17/ With OSM static api, you can: Show &#8230; <a href="http://sunng.info/blog/2009/07/osm-static-api-with-javafx/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>OSM(http://www.osm.org) has released their first prototype of static map api. It is aimed to make web mapping easier to refer just like google has done.</p>
<p>All interfaces are listed in following page:<br />
<a href="http://dev.openstreetmap.org/~pafciu17/" target="_blank">http://dev.openstreetmap.org/~pafciu17/</a></p>
<p>With OSM static api, you can:</p>
<ul>
<li>Show a map centered at a specified point. (using center, height and width)</li>
<li>Show a map contains specified bound box. (using bbox, zoom/height/width)</li>
<li>Create point/path/polygon in static map.</li>
<li>Choose different map render engines.</li>
<li>Control logo position in output image.</li>
</ul>
<p>I just tested it with a simple javafx applet. For there is no crossdomain.xml on the server of OSM, to get cross-domain images, you will be asked to confirm security. Feel free to change center latitude/longitude and zoom level.</p>
<p><span id="more-116"></span><br />
<script src="http://dl.javafx.com/1.2/dtfx.js"></script> <script type="text/javascript">// <![CDATA[
      javafx(         {               archive: "http://www.classicning.com/archives/OSMStaticMap.jar",               width: 500,               height: 500,               code: "OSMStaticMap",               name: "OSMStaticMap"         }     );
// ]]&gt;</script></p>
<p>Enjoy all these free data on free applications <img src='http://sunng.info/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Steps to create signed javafx applet</p>
<ul>
<li>javafxc OSMStaticMap.fx</li>
<li>javafxpackger javafxpackager -src . -appClass OSMStaticMap -appWidth 500 -appHeight 500</li>
<li>cd dist</li>
<li>keytool -genkey -keystore classicning.keys -alias  http://www.classicning.com/ -validity 365</li>
<li>jarsigner &#8211;keystore classicning.keys &#8211;storepass ******** OSMStaticMap.jar http://www.classicning.com/</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://sunng.info/blog/2009/07/osm-static-api-with-javafx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

