<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>free as mobile gis can be :: gvsig mobile on linux</title>
	<atom:link href="http://gvsigmobileonopenmoko.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://gvsigmobileonopenmoko.wordpress.com</link>
	<description></description>
	<lastBuildDate>Fri, 08 Mar 2013 18:17:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='gvsigmobileonopenmoko.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/455620bc213de34be752fe12da5e0f9c?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>free as mobile gis can be :: gvsig mobile on linux</title>
		<link>http://gvsigmobileonopenmoko.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://gvsigmobileonopenmoko.wordpress.com/osd.xml" title="free as mobile gis can be :: gvsig mobile on linux" />
	<atom:link rel='hub' href='http://gvsigmobileonopenmoko.wordpress.com/?pushpress=hub'/>
		<item>
		<title>How many people visit the OSGeo planet?</title>
		<link>http://gvsigmobileonopenmoko.wordpress.com/2010/12/22/who-visits-the-osgeo-planet/</link>
		<comments>http://gvsigmobileonopenmoko.wordpress.com/2010/12/22/who-visits-the-osgeo-planet/#comments</comments>
		<pubDate>Wed, 22 Dec 2010 22:20:32 +0000</pubDate>
		<dc:creator>Juan Lucas Domínguez Rubio</dc:creator>
				<category><![CDATA[osgeo]]></category>

		<guid isPermaLink="false">http://gvsigmobileonopenmoko.wordpress.com/?p=1514</guid>
		<description><![CDATA[On a regular day in February 2009, about 120 different IPs visited the OSGeo planet front page (http://planet.osgeo.org), about 25% of them from the US:<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gvsigmobileonopenmoko.wordpress.com&#038;blog=4115232&#038;post=1514&#038;subd=gvsigmobileonopenmoko&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>On a regular day in February 2009, about 120 different IPs visited the OSGeo planet front page (<a href="http://planet.osgeo.org">http://planet.osgeo.org</a>), about 25% of them from the US:</p>
<p><a href="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/osgeo_planet_daily_unique_visitors.png"><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/osgeo_planet_daily_unique_visitors.png?w=450" alt="" title="osgeo_planet_daily_unique_visitors" width="450" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gvsigmobileonopenmoko.wordpress.com/1514/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gvsigmobileonopenmoko.wordpress.com/1514/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gvsigmobileonopenmoko.wordpress.com&#038;blog=4115232&#038;post=1514&#038;subd=gvsigmobileonopenmoko&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gvsigmobileonopenmoko.wordpress.com/2010/12/22/who-visits-the-osgeo-planet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ded00a4266eee6204177dd370fccb94d?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">gvsigmobileonopenmoko</media:title>
		</media:content>

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/osgeo_planet_daily_unique_visitors.png" medium="image">
			<media:title type="html">osgeo_planet_daily_unique_visitors</media:title>
		</media:content>
	</item>
		<item>
		<title>Google&#8217;s WebP vs JPEG: a more comprehensive test</title>
		<link>http://gvsigmobileonopenmoko.wordpress.com/2010/12/19/googles-webp-vs-jpeg-a-more-comprehensive-test/</link>
		<comments>http://gvsigmobileonopenmoko.wordpress.com/2010/12/19/googles-webp-vs-jpeg-a-more-comprehensive-test/#comments</comments>
		<pubDate>Sun, 19 Dec 2010 17:25:43 +0000</pubDate>
		<dc:creator>Juan Lucas Domínguez Rubio</dc:creator>
				<category><![CDATA[gvsig mobile]]></category>
		<category><![CDATA[tiling]]></category>
		<category><![CDATA[wonthurt]]></category>

		<guid isPermaLink="false">http://gvsigmobileonopenmoko.wordpress.com/?p=1490</guid>
		<description><![CDATA[My previous post was a bit unfortunate. The only relevant conclusion of it is that WebP does provide better compression ratios than JPEG for the same level of lossiness. Here is a new comparison method: Take the original image and compress it to WebP and JPEG using all possible quality levels. In both cases, the &#8230; <a href="http://gvsigmobileonopenmoko.wordpress.com/2010/12/19/googles-webp-vs-jpeg-a-more-comprehensive-test/">Continue reading <span class="meta-nav">&#187;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gvsigmobileonopenmoko.wordpress.com&#038;blog=4115232&#038;post=1490&#038;subd=gvsigmobileonopenmoko&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>My <a href="http://gvsigmobileonopenmoko.wordpress.com/2010/12/14/googles-webp-format-compresses-6-better-than-jpeg/">previous post</a> was a bit unfortunate. The only relevant conclusion of it is that <a href="http://code.google.com/intl/en-US/speed/webp/">WebP</a> does provide better compression ratios than <a href="http://es.wikipedia.org/wiki/Joint_Photographic_Experts_Group">JPEG</a> for the same level of lossiness. Here is a new comparison method:</p>
<ul>
<li>Take the original image and compress it to WebP and JPEG using all possible quality levels. In both cases, the compression program accepts values between 1 and 100, so you get 200 compressed images.</li>
<li>Find out the <a href="http://en.wikipedia.org/wiki/Peak_signal-to-noise_ratio">PSNR</a> value (lossiness) for each compressed image.</li>
<li>For a given requested PSNR value, we&#8217;ll estimate the image size by interpolating the closest available values (lower and higher)</li>
</ul>
<p>According to <a href="http://en.wikipedia.org/wiki/Peak_signal-to-noise_ratio">this article</a>, sensible PSNR values are between 20 (low-quality images, allowed for example when very limited bandwidth is available) and 50 (extremely high-quality images, often not necessary). I have used <a href="http://lucasdom.homelinux.org:5880/files/webp/">these four lossless images</a> for the test (2048 x 2048 pixels each):</p>
<table>
<tr>
<td><a href="http://lucasdom.homelinux.org:5880/files/webp/"><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/orthophoto_tn.png?w=750"></a></td>
<td><a href="http://lucasdom.homelinux.org:5880/files/webp/"><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/flowershop_tn.png?w=750"></a></td>
<td><a href="http://lucasdom.homelinux.org:5880/files/webp/"><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/12colors_tn.png?w=750"></a></td>
<td><a href="http://lucasdom.homelinux.org:5880/files/webp/"><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/random_tn.png?w=750"></a></td>
</tr>
</table>
<p>And these are the resulting line-point charts. If there is no data for a given PSNR value, it&#8217;s because it was not possible to create an image with that level of lossiness (all values were tested for the quality parameter of both compressors):</p>
<p><a href="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/plot-ortho.png"><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/plot-ortho.png?w=750" alt="" title="plot-ortho"   class="alignnone size-full wp-image-1501" /></a><br />
<a href="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/plot-flower.png"><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/plot-flower.png?w=750" alt="" title="plot-flower"   class="alignnone size-full wp-image-1500" /></a><br />
<a href="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/plot-12colors.png"><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/plot-12colors.png?w=750" alt="" title="plot-12colors"   class="alignnone size-full wp-image-1499" /></a><br />
<a href="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/plot-rnd.png"><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/plot-rnd.png?w=750" alt="" title="plot-rnd"   class="alignnone size-full wp-image-1502" /></a></p>
<p>Relevant results can be seen in this table (click to see in PDF format):</p>
<p><a href="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/webp_jpg_comp.pdf"><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/webp_table.png?w=750" alt="" title="webp_table"   class="alignnone size-full wp-image-1505" /></a></p>
<p><strong>Comments</strong></p>
<ul>
<li>We can see that the WebP format is able to improve JPEG&#8217;s performance by about 40% in certain cases. Apparently they have targeted PSNR values in the range [25-30]. If you need a very low level of lossiness (PSNR above 35, for example) you may find that WebP is not better, or even is unable to provide such images.</li>
<li>I had always suspected that it was mathematically impossible to significantly improve the JPEG compression ratios, but I am impressed by the performance of WebP, at least in the [25-30] range for PSNR (the vast majority of commercial images and video frames probably fall inside that range, by the way.)</li>
<li>It will be interesting to see if Google adopts (or at least supports) this format in their web browsers, mapping apps, etc. Even if we assume that WebP is, let&#8217;s say, 30% better than JPEG globally, will it pay off in a context where capabilities, requirements, volumes etc. often evolve with a geometrical or exponential rather than linear pattern?</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gvsigmobileonopenmoko.wordpress.com/1490/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gvsigmobileonopenmoko.wordpress.com/1490/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gvsigmobileonopenmoko.wordpress.com&#038;blog=4115232&#038;post=1490&#038;subd=gvsigmobileonopenmoko&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gvsigmobileonopenmoko.wordpress.com/2010/12/19/googles-webp-vs-jpeg-a-more-comprehensive-test/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ded00a4266eee6204177dd370fccb94d?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">gvsigmobileonopenmoko</media:title>
		</media:content>

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/orthophoto_tn.png" medium="image" />

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/flowershop_tn.png" medium="image" />

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/12colors_tn.png" medium="image" />

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/random_tn.png" medium="image" />

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/plot-ortho.png" medium="image">
			<media:title type="html">plot-ortho</media:title>
		</media:content>

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/plot-flower.png" medium="image">
			<media:title type="html">plot-flower</media:title>
		</media:content>

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/plot-12colors.png" medium="image">
			<media:title type="html">plot-12colors</media:title>
		</media:content>

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/plot-rnd.png" medium="image">
			<media:title type="html">plot-rnd</media:title>
		</media:content>

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/webp_table.png" medium="image">
			<media:title type="html">webp_table</media:title>
		</media:content>
	</item>
		<item>
		<title>Google&#8217;s WebP format compresses 6% better than JPEG</title>
		<link>http://gvsigmobileonopenmoko.wordpress.com/2010/12/14/googles-webp-format-compresses-6-better-than-jpeg/</link>
		<comments>http://gvsigmobileonopenmoko.wordpress.com/2010/12/14/googles-webp-format-compresses-6-better-than-jpeg/#comments</comments>
		<pubDate>Tue, 14 Dec 2010 01:07:40 +0000</pubDate>
		<dc:creator>Juan Lucas Domínguez Rubio</dc:creator>
				<category><![CDATA[tiling]]></category>
		<category><![CDATA[wonthurt]]></category>

		<guid isPermaLink="false">http://gvsigmobileonopenmoko.wordpress.com/?p=1471</guid>
		<description><![CDATA[This is an attempt to quantify the compression performance of Google&#8217;s WebP image format compared to that of JPEG. The method is as follows: Take a large lossless image like this one and cut it up in a not too small number of large tiles. In my test, I have cropped the image a bit &#8230; <a href="http://gvsigmobileonopenmoko.wordpress.com/2010/12/14/googles-webp-format-compresses-6-better-than-jpeg/">Continue reading <span class="meta-nav">&#187;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gvsigmobileonopenmoko.wordpress.com&#038;blog=4115232&#038;post=1471&#038;subd=gvsigmobileonopenmoko&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>This is an attempt to quantify the compression performance of <a href="http://code.google.com/intl/es-ES/speed/webp/">Google&#8217;s WebP image format</a> compared to that of <a href="http://es.wikipedia.org/wiki/Joint_Photographic_Experts_Group">JPEG</a>. The method is as follows:</p>
<ol>
<li>Take a large lossless image like <a href="http://cityofdavis.org/gis/orthophotos/photo.cfm?atlaspage=M16">this one</a> and cut it up in a not too small number of large tiles. In my test, I have cropped the image a bit to get a 5,000 x 5,000 pixel image, then split it in 25 tiles of 1,000 x 1,000 pixels.</li>
<li>Compress all the tiles to the JPEG format and measure the lossiness of each one (I have used the <a href="http://es.wikipedia.org/wiki/PSNR">PSNR</a> value)</li>
<li>For each tile, compress the original using WebP with different values for the quality parameter, until for each tile you get a WebP image whose PSNR value is just as good as that of the JPEG image obtained in the previous step. What we are doing is getting images with very similar level of lossiness. PSNR values will never be the same. I have given the JPEG tiles a small advantage by requiring a better PSNR value from the WebP tiles.</li>
<li>Compute the size ratio for each pair of tiles as [size of the WebP file] / [size of the JPEG file]</li>
<li>Take the resulting ratios and compute their average and standard deviation. We can say that WebP is significantly better than JPEG iff the average plus twice the standard deviation is lower than 1, because we&#8217;ll be able to say that in 95% of the cases, the WebP image will be smaller than the equivalent (in terms of lossiness) JPEG image. If the average plus twice the standard deviation is bigger than 1, then we&#8217;ll have to say that these formats have similar compression performance. This would be a case where compression performances are not significantly different:</i><br />
<a href="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/badgauss.png"><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/badgauss.png?w=750" alt="" title="badgauss"   class="aligncenter size-full wp-image-1472" /></a>
</ol>
<p><strong>Results</strong></p>
<p>These are the results of my test (click to enlarge):</p>
<p><a href="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/webp_jpg2.png"><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/webp_jpg_tn2.png?w=750" alt="" title="webp_jpg_tn2"   class="aligncenter size-full wp-image-1475" /></a></p>
<p>As we can see, the average plus twice the standard deviation is below 1:</p>
<p><a href="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/goodgauss.png"><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/goodgauss.png?w=750" alt="" title="goodgauss"   class="aligncenter size-full wp-image-1473" /></a></p>
<p><strong>Conclusions</strong></p>
<ul>
<li>According to this test, <em>the WebP format is about 6% better than JPEG</em>. We can say that in 95% of the cases, the resulting image will be at least 6% smaller than the equivalent JPEG image.</li>
<li>Of course this test has important flaws: we have only tested one type of image (aerial orthophoto), the number of tiles is not very high (25), the lossiness of the compared images was not exactly the same, etc, but I think the result is a good indication of how these two formats compare.</li>
<li>We can see that the size ratios do follow the Normal distribution pattern, so using the average plus twice the standard deviation value was not a bad idea.</li>
<li>My opinion is that this is a rather poor result for the WebP format, and it will not replace JPEG as the de facto standard for image delivery on the Web.</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gvsigmobileonopenmoko.wordpress.com/1471/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gvsigmobileonopenmoko.wordpress.com/1471/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gvsigmobileonopenmoko.wordpress.com&#038;blog=4115232&#038;post=1471&#038;subd=gvsigmobileonopenmoko&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gvsigmobileonopenmoko.wordpress.com/2010/12/14/googles-webp-format-compresses-6-better-than-jpeg/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ded00a4266eee6204177dd370fccb94d?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">gvsigmobileonopenmoko</media:title>
		</media:content>

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/badgauss.png" medium="image">
			<media:title type="html">badgauss</media:title>
		</media:content>

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/webp_jpg_tn2.png" medium="image">
			<media:title type="html">webp_jpg_tn2</media:title>
		</media:content>

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/12/goodgauss.png" medium="image">
			<media:title type="html">goodgauss</media:title>
		</media:content>
	</item>
		<item>
		<title>Just a test on this funny Fedora netbook</title>
		<link>http://gvsigmobileonopenmoko.wordpress.com/2010/09/23/just-a-test-on-this-funny-fedora-netbook/</link>
		<comments>http://gvsigmobileonopenmoko.wordpress.com/2010/09/23/just-a-test-on-this-funny-fedora-netbook/#comments</comments>
		<pubDate>Thu, 23 Sep 2010 17:49:54 +0000</pubDate>
		<dc:creator>Juan Lucas Domínguez Rubio</dc:creator>
				<category><![CDATA[gvsig mobile]]></category>
		<category><![CDATA[openmis]]></category>
		<category><![CDATA[openmoko]]></category>
		<category><![CDATA[wonthurt]]></category>

		<guid isPermaLink="false">http://gvsigmobileonopenmoko.wordpress.com/?p=1458</guid>
		<description><![CDATA[The OLPC XO Fedora laptop has fallen into my hands by chance for a few days and I have obviously tested Unofficial gvSIG Mobile for Openmoko on it. The latest swt.jar for Linux x86 devices looks really nice on it. Background is a tiled (client side) Japanese ArcIMS service: The Open Mobile IS synchro engine &#8230; <a href="http://gvsigmobileonopenmoko.wordpress.com/2010/09/23/just-a-test-on-this-funny-fedora-netbook/">Continue reading <span class="meta-nav">&#187;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gvsigmobileonopenmoko.wordpress.com&#038;blog=4115232&#038;post=1458&#038;subd=gvsigmobileonopenmoko&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>The <a href="http://laptop.org/en/laptop/hardware/index.shtml">OLPC XO Fedora laptop</a> has fallen into my hands by chance for a few days and I have obviously tested <em>Unofficial gvSIG Mobile for Openmoko</em> on it. The latest <a href="http://www.eclipse.org/swt/">swt.jar for Linux x86 devices</a> looks really nice on it. Background is a tiled (client side) Japanese ArcIMS service:</p>
<p><a href="http://gvsigmobileonopenmoko.files.wordpress.com/2010/09/pois.jpg"><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/09/pois.jpg?w=750" alt="" title="pois"   class="alignnone size-full wp-image-1459" /></a></p>
<p>The <a href="http://www.openmobileis.org">Open Mobile IS</a> synchro engine doing its job:</p>
<p><a href="http://gvsigmobileonopenmoko.files.wordpress.com/2010/09/syncok.jpg"><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/09/syncok.jpg?w=750" alt="" title="syncok"   class="alignnone size-full wp-image-1460" /></a></p>
<p>And the WMS client confirming the remote update of the PostGIS table (server is at home, these pics were shot at the office):</p>
<p><a href="http://gvsigmobileonopenmoko.files.wordpress.com/2010/09/wms.jpg"><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/09/wms.jpg?w=750" alt="" title="wms"   class="alignnone size-full wp-image-1461" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gvsigmobileonopenmoko.wordpress.com/1458/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gvsigmobileonopenmoko.wordpress.com/1458/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gvsigmobileonopenmoko.wordpress.com&#038;blog=4115232&#038;post=1458&#038;subd=gvsigmobileonopenmoko&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gvsigmobileonopenmoko.wordpress.com/2010/09/23/just-a-test-on-this-funny-fedora-netbook/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ded00a4266eee6204177dd370fccb94d?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">gvsigmobileonopenmoko</media:title>
		</media:content>

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/09/pois.jpg" medium="image">
			<media:title type="html">pois</media:title>
		</media:content>

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/09/syncok.jpg" medium="image">
			<media:title type="html">syncok</media:title>
		</media:content>

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/09/wms.jpg" medium="image">
			<media:title type="html">wms</media:title>
		</media:content>
	</item>
		<item>
		<title>On-the-fly reprojection of tiles using your favorite conventional WMS servers</title>
		<link>http://gvsigmobileonopenmoko.wordpress.com/2010/05/03/on-the-fly-reprojection-of-tiles-using-your-favorite-conventional-wms-servers/</link>
		<comments>http://gvsigmobileonopenmoko.wordpress.com/2010/05/03/on-the-fly-reprojection-of-tiles-using-your-favorite-conventional-wms-servers/#comments</comments>
		<pubDate>Mon, 03 May 2010 12:54:43 +0000</pubDate>
		<dc:creator>Juan Lucas Domínguez Rubio</dc:creator>
				<category><![CDATA[gvsig mobile]]></category>
		<category><![CDATA[spherical mercator]]></category>
		<category><![CDATA[tiling]]></category>
		<category><![CDATA[wonthurt]]></category>

		<guid isPermaLink="false">http://gvsigmobileonopenmoko.wordpress.com/?p=1431</guid>
		<description><![CDATA[If we accept Spherical Mercator tiles and the ZXY storage scheme as standard and still wish to use all the nice WMS servers we know, we can easily set up a middle tile server like this: For example, this request gets a OSM-like tile from a conventional Bavarian WMS server: http://lucasdom.homelinux.org:8077/services/smtile?baseurl=http://www.geodaten.bayern.de/ogc/getogc.cgi%3fREQUEST=GetMap%26SERVICE=WMS%26VERSION=1.1.1%26LAYERS=UK500,TK50&#038;x=8711&#038;y=5643&#038;z=14 The advantage of this &#8230; <a href="http://gvsigmobileonopenmoko.wordpress.com/2010/05/03/on-the-fly-reprojection-of-tiles-using-your-favorite-conventional-wms-servers/">Continue reading <span class="meta-nav">&#187;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gvsigmobileonopenmoko.wordpress.com&#038;blog=4115232&#038;post=1431&#038;subd=gvsigmobileonopenmoko&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>If we accept <a href="http://docs.openlayers.org/library/spherical_mercator.html">Spherical Mercator tiles</a> and the <a href="http://gvsigmobileonopenmoko.wordpress.com/2010/02/06/doing-nasty-things-with-spherical-mercator-tiles-ordnance-survey-1857-map-versus-openstreetmap/">ZXY storage scheme</a> as standard and still wish to use all the nice WMS servers we know, we can easily set up a middle tile server like this:</p>
<p><a href="http://gvsigmobileonopenmoko.files.wordpress.com/2010/05/tiles_diagrama.png"><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/05/tiles_diagrama.png?w=750" alt="" title="tiles_diagrama"   class="alignnone size-full wp-image-1440" /></a></p>
<p>For example, this request gets a OSM-like tile from a conventional Bavarian WMS server:</p>
<p><code><a href="http://lucasdom.homelinux.org:8077/services/smtile?baseurl=http://www.geodaten.bayern.de/ogc/getogc.cgi%3fREQUEST=GetMap%26SERVICE=WMS%26VERSION=1.1.1%26LAYERS=UK500,TK50&#038;x=8711&#038;y=5643&#038;z=14" rel="nofollow">http://lucasdom.homelinux.org:8077/services/smtile?baseurl=http://www.geodaten.bayern.de/ogc/getogc.cgi%3fREQUEST=GetMap%26SERVICE=WMS%26VERSION=1.1.1%26LAYERS=UK500,TK50&#038;x=8711&#038;y=5643&#038;z=14</a></code></p>
<p>The advantage of this over <a href="https://courseware.e-education.psu.edu/courses/geog585/content/lesson05/3.html">cascading WMS</a> is that the middle server does not need to know the targeted server URL in advance, and the client (possibly a handheld) only has to provide the URL and the tile indices (x, y, z). In this example, I&#8217;m assuming that the targeted WMS server supports EPSG:4326, which is true in almost all cases.</p>
<p>A middle server of this type is currently up and running in my home computer. The images you see here are static ones. The URL to get them from the middle server is provided in the code boxes:</p>
<p><code><a href="http://lucasdom.homelinux.org:8077/services/smtile?baseurl=http://shagrat.icc.es:80/lizardtech/iserv/ows%3fREQUEST=GetMap%26SERVICE=WMS%26VERSION=1.1.1%26LAYERS=mtc250m,mtc50m,mtc25m,mtc10m,mtc5m&#038;x=132657&#038;y=97914&#038;z=18" rel="nofollow">http://lucasdom.homelinux.org:8077/services/smtile?baseurl=http://shagrat.icc.es:80/lizardtech/iserv/ows%3fREQUEST=GetMap%26SERVICE=WMS%26VERSION=1.1.1%26LAYERS=mtc250m,mtc50m,mtc25m,mtc10m,mtc5m&#038;x=132657&#038;y=97914&#038;z=18</a></code></p>
<table>
<tr>
<td><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/05/luc_18_132657_97914.png?w=750" /></td>
<td align="left" valign="top">Medieval quarter in Barcelona (Spain). Source: <a href="http://www.icc.es/">Institut Cartogràfic de Catalunya</a>.</td>
</tr>
<tr>
<td><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/05/osm_18_132657_97914.png?w=750" /></td>
<td align="left" valign="top">Corresponding OSM tile with the same indices:</p>
<p>x = 132657<br />y = 97914<br />z = 18</td>
</tr>
</table>
<p><code><a href="http://lucasdom.homelinux.org:8077/services/smtile?baseurl=http://www.geosignal.org/cgi-bin/wmsmap%3fREQUEST=GetMap%26SERVICE=WMS%26VERSION=1.1.1%26LAYERS=RASTER4000k,RASTER1000k,RASTER500k,RASTER250k,RASTER100k,RASTER50k,RASTER25k,RASTER5k&#038;x=1027&#038;y=717&#038;z=11" rel="nofollow">http://lucasdom.homelinux.org:8077/services/smtile?baseurl=http://www.geosignal.org/cgi-bin/wmsmap%3fREQUEST=GetMap%26SERVICE=WMS%26VERSION=1.1.1%26LAYERS=RASTER4000k,RASTER1000k,RASTER500k,RASTER250k,RASTER100k,RASTER50k,RASTER25k,RASTER5k&#038;x=1027&#038;y=717&#038;z=11</a></code></p>
<table>
<tr>
<td><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/05/luc_11_1027_717.png?w=750" /></td>
<td align="left" valign="top">A French town called Tours. Source: <a href="http://www.geosignal.fr/">Geosignal</a>.</td>
</tr>
<tr>
<td><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/05/osm_11_1027_717.png?w=750" /></td>
<td align="left" valign="top">Corresponding OSM tile with the same indices:</p>
<p>x = 1027<br />y = 717<br />z = 11</td>
</tr>
</table>
<p><code><a href="http://lucasdom.homelinux.org:8077/services/smtile?baseurl=http://www.geodaten.bayern.de/ogc/getogc.cgi%3fREQUEST=GetMap%26SERVICE=WMS%26VERSION=1.1.1%26LAYERS=UK500,TK50&#038;x=8711&#038;y=5643&#038;z=14" rel="nofollow">http://lucasdom.homelinux.org:8077/services/smtile?baseurl=http://www.geodaten.bayern.de/ogc/getogc.cgi%3fREQUEST=GetMap%26SERVICE=WMS%26VERSION=1.1.1%26LAYERS=UK500,TK50&#038;x=8711&#038;y=5643&#038;z=14</a></code></p>
<table>
<tr>
<td><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/05/luc_14_8711_5643.png?w=750" /></td>
<td align="left" valign="top">A German town called Ingolstadt. Source: <a href="http://www.vermessung.bayern.de/">Bayerische Vermessungsverwaltung</a>.</td>
</tr>
<tr>
<td><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/05/osm_14_8711_5643.png?w=750" /></td>
<td align="left" valign="top">Corresponding OSM tile with the same indices:</p>
<p>x = 8711<br />y = 5643<br />z = 14</td>
</tr>
</table>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gvsigmobileonopenmoko.wordpress.com/1431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gvsigmobileonopenmoko.wordpress.com/1431/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gvsigmobileonopenmoko.wordpress.com&#038;blog=4115232&#038;post=1431&#038;subd=gvsigmobileonopenmoko&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gvsigmobileonopenmoko.wordpress.com/2010/05/03/on-the-fly-reprojection-of-tiles-using-your-favorite-conventional-wms-servers/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ded00a4266eee6204177dd370fccb94d?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">gvsigmobileonopenmoko</media:title>
		</media:content>

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/05/tiles_diagrama.png" medium="image">
			<media:title type="html">tiles_diagrama</media:title>
		</media:content>

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/05/luc_18_132657_97914.png" medium="image" />

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/05/osm_18_132657_97914.png" medium="image" />

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/05/luc_11_1027_717.png" medium="image" />

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/05/osm_11_1027_717.png" medium="image" />

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/05/luc_14_8711_5643.png" medium="image" />

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/05/osm_14_8711_5643.png" medium="image" />
	</item>
		<item>
		<title>Ready-to-print maps of Britain from Ordnance Survey (PDF, A0 paper)</title>
		<link>http://gvsigmobileonopenmoko.wordpress.com/2010/04/09/ready-to-print-maps-of-britain-from-ordnance-survey-pdf-a0-paper/</link>
		<comments>http://gvsigmobileonopenmoko.wordpress.com/2010/04/09/ready-to-print-maps-of-britain-from-ordnance-survey-pdf-a0-paper/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 18:42:25 +0000</pubDate>
		<dc:creator>Juan Lucas Domínguez Rubio</dc:creator>
				<category><![CDATA[wonthurt]]></category>

		<guid isPermaLink="false">http://gvsigmobileonopenmoko.wordpress.com/?p=1246</guid>
		<description><![CDATA[Yes, Albion in all its 1:250,000 glory, brought to you by the British taxpayer ;) I downloaded the images from here (1:250,000 Scale Colour Raster), then embedded them in a large LaTeX document using pdfLaTeX. Right-click on the images and choose Save target as&#8230;, if you don&#8217;t want your web browser to open it. The &#8230; <a href="http://gvsigmobileonopenmoko.wordpress.com/2010/04/09/ready-to-print-maps-of-britain-from-ordnance-survey-pdf-a0-paper/">Continue reading <span class="meta-nav">&#187;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gvsigmobileonopenmoko.wordpress.com&#038;blog=4115232&#038;post=1246&#038;subd=gvsigmobileonopenmoko&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Yes, <a href="http://en.wikipedia.org/wiki/Albion">Albion</a> in all its 1:250,000 glory, brought to you by the British taxpayer ;)</p>
<p>I downloaded the images from <a href="https://www.ordnancesurvey.co.uk/opendatadownload/products.html">here</a> (1:250,000 Scale Colour Raster), then embedded them in a large LaTeX document using <a href="http://www.artofproblemsolving.com/LaTeX/AoPS_L_PictMan.php">pdfLaTeX</a>. Right-click on the images and choose <em>Save target as&#8230;</em>, if you don&#8217;t want your web browser to open it. The download might take a while to start. Let me know if you have issues.</p>
<p><strong>London-Birmingham area (PDF, 35 MB, A0 paper, 841 x 1189 mm)</strong></p>
<p><a href="http://gvsigmobileonopenmoko.files.wordpress.com/2010/04/london_birmingham_os_250000.pdf"><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/04/os_250000_lonbir_tn.jpg?w=750" alt="" title="os_250000_lonbir_tn"   class="alignnone size-full wp-image-1244" /></a></p>
<p><strong>Central Scotland (PDF, 19 MB, A0 paper, 841 x 1189 mm)</strong></p>
<p><a href="http://gvsigmobileonopenmoko.files.wordpress.com/2010/04/urban_scotland_os_250000.pdf"><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/04/os_250000_scot_tn.jpg?w=750" alt="" title="os_250000_scot_tn"   class="alignnone size-full wp-image-1245" /></a></p>
<p><strong>Great Britain (PDF, 94 MB, should be printed on a huge format -at least 2 x 2.82 m- or else placenames won&#8217;t be readable)</strong></p>
<p><a href="http://gvsigmobileonopenmoko.files.wordpress.com/2010/04/britain_os_250000.pdf"><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/04/os_250000_britain_tn.jpg?w=750" alt="" title="os_250000_britain_tn"   class="alignnone size-full wp-image-1243" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gvsigmobileonopenmoko.wordpress.com/1246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gvsigmobileonopenmoko.wordpress.com/1246/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gvsigmobileonopenmoko.wordpress.com&#038;blog=4115232&#038;post=1246&#038;subd=gvsigmobileonopenmoko&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gvsigmobileonopenmoko.wordpress.com/2010/04/09/ready-to-print-maps-of-britain-from-ordnance-survey-pdf-a0-paper/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ded00a4266eee6204177dd370fccb94d?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">gvsigmobileonopenmoko</media:title>
		</media:content>

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/04/os_250000_lonbir_tn.jpg" medium="image">
			<media:title type="html">os_250000_lonbir_tn</media:title>
		</media:content>

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/04/os_250000_scot_tn.jpg" medium="image">
			<media:title type="html">os_250000_scot_tn</media:title>
		</media:content>

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/04/os_250000_britain_tn.jpg" medium="image">
			<media:title type="html">os_250000_britain_tn</media:title>
		</media:content>
	</item>
		<item>
		<title>Water utility management using Open Mobile IS &amp; gvSIG Mobile</title>
		<link>http://gvsigmobileonopenmoko.wordpress.com/2010/04/01/water-utility-management-using-open-mobile-is-gvsig-mobile/</link>
		<comments>http://gvsigmobileonopenmoko.wordpress.com/2010/04/01/water-utility-management-using-open-mobile-is-gvsig-mobile/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 20:39:40 +0000</pubDate>
		<dc:creator>Juan Lucas Domínguez Rubio</dc:creator>
				<category><![CDATA[gvsig mobile]]></category>
		<category><![CDATA[openmis]]></category>
		<category><![CDATA[wonthurt]]></category>

		<guid isPermaLink="false">http://gvsigmobileonopenmoko.wordpress.com/?p=1229</guid>
		<description><![CDATA[A nice example of how data synchronization and GIS software integrate on a mobile platform: Manuel Gomez (from Ubikis, Lyon, France) has published a proof of concept application for Windows Mobile where he integrates gvSIG Mobile and the Open Mobile IS framework. From the main control panel, you can switch between the map and the &#8230; <a href="http://gvsigmobileonopenmoko.wordpress.com/2010/04/01/water-utility-management-using-open-mobile-is-gvsig-mobile/">Continue reading <span class="meta-nav">&#187;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gvsigmobileonopenmoko.wordpress.com&#038;blog=4115232&#038;post=1229&#038;subd=gvsigmobileonopenmoko&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>A nice example of how data synchronization and GIS software integrate on a mobile platform: <a href="http://www.viadeo.com/fr/profile/manuel.gomez21">Manuel Gomez</a> (from <a href="http://www.ubikis.com">Ubikis</a>, Lyon, France) has published a proof of concept application for Windows Mobile where he integrates <a href="http://www.gvsig.gva.es/eng/gvsig-mobile/">gvSIG Mobile</a> and the <a href="http://www.openmobileis.org">Open Mobile IS</a> framework. From the main control panel, you can switch between the map and the incident administration module, which allows instant synchronization with the organization&#8217;s information system. The map is in EPSG:27561 (NTF Paris &#8211; Lambert Nord France) which would also allow easy GPS integration because that SRS is available in gvSIG Mobile. </p>
<table>
<tr>
<td><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/04/veolia_vid_not.jpg?w=750" /></td>
<td><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/04/veolia_gvsig.jpg?w=750" /></td>
</tr>
</table>
<p>More details in the <a href="http://tellusproject.blogspot.com/">Tellus project blog</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gvsigmobileonopenmoko.wordpress.com/1229/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gvsigmobileonopenmoko.wordpress.com/1229/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gvsigmobileonopenmoko.wordpress.com&#038;blog=4115232&#038;post=1229&#038;subd=gvsigmobileonopenmoko&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gvsigmobileonopenmoko.wordpress.com/2010/04/01/water-utility-management-using-open-mobile-is-gvsig-mobile/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ded00a4266eee6204177dd370fccb94d?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">gvsigmobileonopenmoko</media:title>
		</media:content>

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/04/veolia_vid_not.jpg" medium="image" />

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/04/veolia_gvsig.jpg" medium="image" />
	</item>
		<item>
		<title>JPG compresses better and uncompresses faster than ECW</title>
		<link>http://gvsigmobileonopenmoko.wordpress.com/2010/03/28/jpg-compresses-better-and-uncompresses-faster-than-ecw/</link>
		<comments>http://gvsigmobileonopenmoko.wordpress.com/2010/03/28/jpg-compresses-better-and-uncompresses-faster-than-ecw/#comments</comments>
		<pubDate>Sat, 27 Mar 2010 23:09:25 +0000</pubDate>
		<dc:creator>Juan Lucas Domínguez Rubio</dc:creator>
				<category><![CDATA[tiling]]></category>
		<category><![CDATA[wonthurt]]></category>

		<guid isPermaLink="false">http://gvsigmobileonopenmoko.wordpress.com/?p=1205</guid>
		<description><![CDATA[The following comparison method has been applied to three lossless raster maps (urban orthophoto, rural orthophoto and a 8-bpp map): Compress the original image to JPG. Compress the original image to ECW using different compression levels until the resulting ECW file is slightly larger than the JPG file obtained in the previous step (this gives &#8230; <a href="http://gvsigmobileonopenmoko.wordpress.com/2010/03/28/jpg-compresses-better-and-uncompresses-faster-than-ecw/">Continue reading <span class="meta-nav">&#187;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gvsigmobileonopenmoko.wordpress.com&#038;blog=4115232&#038;post=1205&#038;subd=gvsigmobileonopenmoko&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>The following comparison method has been applied to three lossless raster maps (<a href="http://cityofdavis.org/gis/orthophotos">urban orthophoto, rural orthophoto</a> and a <a href="http://gvsigmobileonopenmoko.files.wordpress.com/2010/03/map_8bit.png">8-bpp map</a>):</p>
<ol>
<li>Compress the original image to <a href="http://en.wikipedia.org/wiki/JPEG">JPG</a>.</li>
<li>Compress the original image to <a href="http://en.wikipedia.org/wiki/ECW_(file_format)">ECW</a> using different compression levels until the resulting ECW file is slightly <em>larger</em> than the JPG file obtained in the previous step (this gives the ECW file a slight advantage).</li>
<li>Uncompress both files to a format that <a href="http://www.imagemagick.org">imagemagick</a> can read.</li>
<li>Compare the uncompressed versions with the original image to quantify their lossiness.</li>
</ol>
<p>A screenshot illustrating this process can be seen <a href="http://gvsigmobileonopenmoko.files.wordpress.com/2010/03/terminal_ecw_jpg.png">here</a>. I have used <a href="http://www.gdal.org/">GDAL</a> and imagemagick for this. Lossiness is quantified by computing the <a href="http://en.wikipedia.org/wiki/Peak_signal-to-noise_ratio">PSNR</a> value (the higher the better: very lossy images have a low PSNR). The result of this is that <em>JPG files are smaller but less lossy than ECW files</em>:</p>
<table border="1">
<tr>
<td></td>
<td align="center">Image size (pixels)</td>
<td align="center">JPG size (Mbytes)</td>
<td align="center">ECW size (Mbytes)</td>
<td align="center">JPG PSNR</td>
<td align="center">ECW PSNR</td>
<td align="center" bgcolor="#AAFFAA">JPG wins?</td>
</tr>
<tr>
<td><a href="http://cityofdavis.org/gis/orthophotos"><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/03/urban_tn.png?w=750" /></a></td>
<td align="center">5355 x 5349</td>
<td align="center">5.36</td>
<td align="center">5.67</td>
<td align="center">37.7</td>
<td align="center">35.5</td>
<td align="center" bgcolor="#AAFFAA">YES</td>
</tr>
<tr>
<td><a href="http://cityofdavis.org/gis/orthophotos"><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/03/rural_tn.png?w=750" /></a></td>
<td align="center">5351 x 5154</td>
<td align="center">6.53</td>
<td align="center">6.93</td>
<td align="center">35.1</td>
<td align="center">34.2</td>
<td align="center" bgcolor="#AAFFAA">YES</td>
</tr>
<tr>
<td><a href="http://gvsigmobileonopenmoko.files.wordpress.com/2010/03/map_8bit.png"><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/03/8bit_tn.png?w=750" /></a></td>
<td align="center">4096 x 4096</td>
<td align="center">5.08</td>
<td align="center">5.45</td>
<td align="center">27.6</td>
<td align="center">27.4</td>
<td align="center" bgcolor="#AAFFAA">YES</td>
</tr>
</table>
<p><strong>Faster</strong></p>
<p>The fact that JPG uncompresses faster than ECW can clearly be seen with just one test. The uncompress time can be estimated with the <tt>time</tt> Linux command applied to <tt>gdal_translate</tt>:</p>
<p>From JPG to BMP: 18.4 seconds (<strong>16.1 seconds</strong> if we discount copy time)<br />
From ECW to BMP: 27.1 seconds (<strong>24.8 seconds</strong> if we discount copy time)<br />
Copy BMP to BMP: 2.3 seconds (estimated time needed to copy result to disk)</p>
<p><strong>So what is good about ECW?</strong></p>
<p>The ECW format allows fast access to application-defined zones of the raster with very low memory consumption. The typical scenario is that the application&#8217;s viewport needs to paint about one million pixels on the screen, while the original raster is a huge image with hundreds of millions or even billions of pixels. The JPG format needs to be fully expanded, so usually most of the resulting pixels will not be used.</p>
<p><strong>How can we avoid uncompressing unneeded pixels?</strong></p>
<p>We must use JPG images in a way that does not force us to uncompress pixels that are not going to be painted. One way to achieve this is by cutting up the original image in pieces that are small enough so that -after quickly selecting the needed ones- we can cover the application&#8217;s viewport without uncompressing a number of pixels that is significantly larger than the viewport size. In other words: <strong>use JPG tiles</strong>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gvsigmobileonopenmoko.wordpress.com/1205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gvsigmobileonopenmoko.wordpress.com/1205/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gvsigmobileonopenmoko.wordpress.com&#038;blog=4115232&#038;post=1205&#038;subd=gvsigmobileonopenmoko&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gvsigmobileonopenmoko.wordpress.com/2010/03/28/jpg-compresses-better-and-uncompresses-faster-than-ecw/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ded00a4266eee6204177dd370fccb94d?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">gvsigmobileonopenmoko</media:title>
		</media:content>

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/03/urban_tn.png" medium="image" />

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/03/rural_tn.png" medium="image" />

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/03/8bit_tn.png" medium="image" />
	</item>
		<item>
		<title>Madrid 1656</title>
		<link>http://gvsigmobileonopenmoko.wordpress.com/2010/03/16/madrid-1656/</link>
		<comments>http://gvsigmobileonopenmoko.wordpress.com/2010/03/16/madrid-1656/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 00:49:36 +0000</pubDate>
		<dc:creator>Juan Lucas Domínguez Rubio</dc:creator>
				<category><![CDATA[gvsig mobile]]></category>
		<category><![CDATA[spherical mercator]]></category>
		<category><![CDATA[tiling]]></category>
		<category><![CDATA[wonthurt]]></category>

		<guid isPermaLink="false">http://gvsigmobileonopenmoko.wordpress.com/?p=1185</guid>
		<description><![CDATA[The year 1656 saw the creation in Madrid of -at least- two graphic masterpieces: while Velázquez was doing that, the Portuguese cartographer Pedro Teixeira was doing this (click to enlarge): A superb map of Madrid in the times of the late Spanish Habsburgs. You can download it as a georeferenced (EPSG:25830) ECW file and also &#8230; <a href="http://gvsigmobileonopenmoko.wordpress.com/2010/03/16/madrid-1656/">Continue reading <span class="meta-nav">&#187;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gvsigmobileonopenmoko.wordpress.com&#038;blog=4115232&#038;post=1185&#038;subd=gvsigmobileonopenmoko&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>The year 1656 saw the creation in Madrid of -at least- two graphic masterpieces: while Velázquez was doing <a href="http://en.wikipedia.org/wiki/Las_Meninas">that</a>, the Portuguese cartographer <a href="http://en.wikipedia.org/wiki/Pedro_Teixeira_Albernaz">Pedro Teixeira</a> was doing this (click to enlarge):</p>
<p><a href="http://gvsigmobileonopenmoko.files.wordpress.com/2010/03/mad1656_big.jpg"><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/03/mad1656_tn.jpg?w=750" alt="" title="mad1656_tn"   class="alignnone size-full wp-image-1179" /></a></p>
<p>A superb map of Madrid in the times of the late <a href="http://en.wikipedia.org/wiki/Philip_IV_of_Spain">Spanish Habsburgs</a>.</p>
<p>You can download it as a georeferenced (EPSG:25830) ECW file and also get the Spherical Mercator TMS-style tiles from <a href="http://gvsigmobileonopenmoko.wordpress.com/maps">here</a>. With these, you will be able to do some nice <a href="http://gvsigmobileonopenmoko.wordpress.com/2010/02/06/doing-nasty-things-with-spherical-mercator-tiles-ordnance-survey-1857-map-versus-openstreetmap/">tile replacements</a> &#8211; not only with gvSIG Mobile for Linux, but also with any other software that uses the <em>z/x/y</em> scheme to store tiles:</p>
<p><strong>First available level: z = 10; x = 501; y = 386</strong></p>
<table border="1">
<tr>
<td width="250"><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/03/tei_10_501_386.jpg?w=248" width="248" /></td>
<td width="250"><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/03/osm_10_501_386.png?w=248" width="248" /></td>
</tr>
</table>
<p><strong>Last available level: z = 18; x = 128376; y = 98847</strong></p>
<table border="1">
<tr>
<td width="250"><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/03/tei_18_128376_98847.jpg?w=248" width="248" /></td>
<td width="250"><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/03/osm_18_128376_98847.png?w=248" width="248" /></td>
</tr>
</table>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gvsigmobileonopenmoko.wordpress.com/1185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gvsigmobileonopenmoko.wordpress.com/1185/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gvsigmobileonopenmoko.wordpress.com&#038;blog=4115232&#038;post=1185&#038;subd=gvsigmobileonopenmoko&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gvsigmobileonopenmoko.wordpress.com/2010/03/16/madrid-1656/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ded00a4266eee6204177dd370fccb94d?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">gvsigmobileonopenmoko</media:title>
		</media:content>

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/03/mad1656_tn.jpg" medium="image">
			<media:title type="html">mad1656_tn</media:title>
		</media:content>

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/03/tei_10_501_386.jpg" medium="image" />

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/03/osm_10_501_386.png" medium="image" />

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/03/tei_18_128376_98847.jpg" medium="image" />

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/03/osm_18_128376_98847.png" medium="image" />
	</item>
		<item>
		<title>Large shapefiles on small screens using a drawable spatial index</title>
		<link>http://gvsigmobileonopenmoko.wordpress.com/2010/02/27/large-shapefiles-on-small-screens-using-a-drawable-spatial-index/</link>
		<comments>http://gvsigmobileonopenmoko.wordpress.com/2010/02/27/large-shapefiles-on-small-screens-using-a-drawable-spatial-index/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 20:14:07 +0000</pubDate>
		<dc:creator>Juan Lucas Domínguez Rubio</dc:creator>
				<category><![CDATA[gvsig mobile]]></category>
		<category><![CDATA[tiling]]></category>
		<category><![CDATA[wonthurt]]></category>

		<guid isPermaLink="false">http://gvsigmobileonopenmoko.wordpress.com/?p=1117</guid>
		<description><![CDATA[Sometimes a large vector layer needs to be rendered on a relatively small area on the screen. This happens especially with mobile devices, where screen size ranges between 240 x 320 and 480 x 850 pixels. If the vector layer affects a small number of pixels, it makes no sense to go through all the &#8230; <a href="http://gvsigmobileonopenmoko.wordpress.com/2010/02/27/large-shapefiles-on-small-screens-using-a-drawable-spatial-index/">Continue reading <span class="meta-nav">&#187;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gvsigmobileonopenmoko.wordpress.com&#038;blog=4115232&#038;post=1117&#038;subd=gvsigmobileonopenmoko&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Sometimes a large vector layer needs to be rendered on a relatively small area on the screen. This happens especially with mobile devices, where screen size ranges between 240 x 320 and 480 x 850 pixels. If the vector layer affects a small number of pixels, it makes no sense to go through all the shapes and dedicate some (possibly optimized) computation and graphic instructions to each one. We should prepare an alternative for these cases, which will be used when the scale denominator surpasses a certain value.</p>
<p>Using the quadtree approach, we can create before-hand a <em>drawable</em> spatial index that will quickly tell us which pixels must be painted, and hopefully which color should be used. A non-optimized, initial attempt to do this is explained here.</p>
<p><strong>How it will work</strong></p>
<p>We&#8217;ll use a shapefile of <em>polygons</em> to illustrate this. Starting from a square that contains the shapefile&#8217;s bounding box, we will recursively analyze the relationship of each sub-square with the shapes contained in the shapefile. For example, if we create 9 levels in the spatial index, we&#8217;ll end up with a matrix of 512&#215;512 pixels (2^9 = 512), which we will be able to draw very quickly as long as the shapefile does not need more pixels than that. The quadtree algorithm automatically dedicates more computation to borders, while large homogeneous areas (inside one shape or outside all shapes) are discarded quickly. Click to enlarge:</p>
<p><a href="http://gvsigmobileonopenmoko.files.wordpress.com/2010/02/co.jpg"><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/02/tn_country.jpg?w=750" alt="" title="tn_country"   class="alignnone size-full wp-image-1127" /></a></p>
<p>At the lowest level of the spatial index, we&#8217;ll have lists of integers telling us which features are intersected by each sub-square.</p>
<p><strong>Creating the spatial index</strong></p>
<p>We&#8217;ll have a matrix of integer values with 4 columns and as many rows as we need. Each row will represent a square in our quadtree scheme. Row 0 will be the minimum square than contains the layer&#8217;s bounding box:</p>
<p><code>Row  0: {   0,   3,   4,   0 }<br />
Row  1: {   5,   6,   0,   0 }<br />
...<br />
Row  n: { -23, 233,   1,   7000654 } </code></p>
<p>Each of the four columns will hold information about each of the four sub-squares:</p>
<table border="1" align="top">
<tr>
<td width="50" height="50" align="center">0</td>
<td width="50" height="50" align="center">1</td>
</tr>
<tr>
<td width="50" height="50" align="center">3</td>
<td width="50" height="50" align="center">2</td>
</tr>
</table>
<p>The meaning of the integer values <em>v</em> will be:</p>
<ul>
<li><strong>If (v &lt; 0):</strong> This value indicates that the feature with index -(v+1) in the shapefile completely contains this sub-square. Therefore, this sub-square must be painted with the fill color that corresponds to feature with index -(v+1).</li>
<li><strong>If (v = 0):</strong> This value indicates that this sub-square in completely outside any feature in the shapefile. Therefore, this sub-square must not be painted.</li>
<li><strong>If (v &gt; 0 and v &lt; 1,000,000):</strong> This value indicates this sub-square intersects with at least one feature but is not contained by any feature, and its four sub-squares are described in the row with index (v-1). Therefore, in case we have to paint this sub-square, we&#8217;ll use the layer&#8217;s border color. This will happen with views where the scale denominator is very large, and the spatial index itself is enough to draw the layer because the width of each screen pixel in map units is larger than the width in map units of the deepest sub-squares in the spatial index quadtree scheme.</li>
<li><strong>If (v &gt;= 1,000,000):</strong> This value will only be found in the lowest level of the quadtree scheme, and indicates that this sub-square is not contained by any feature in the shapefile, but intersects a number of features, and the indices of those intersected features are listed in the array, starting in position (v <em>mod</em> 1,000,000) and the number of features intersected is (v <em>div</em> 1,000,000).</li>
</ul>
<p><strong>Using the spatial index</strong></p>
<p>Given the current viewport&#8217;s bounding box, we&#8217;ll start by comparing it with the well-known bounding box of each of the four sub-squares of the square that is being processed:</p>
<ul>
<li>If the value is 0, the sub-square is ignored.</li>
<li>If the value is negative (sub-square is contained by a feature), we&#8217;ll find out the fill color that corresponds to that feature and paint it. This may result in a single pixel or a square on the map (see image).</li>
<li>If the value is positive, there are three cases:
<ul>
<li>If we need to go deeper because the screen pixel width is smaller than the sub-square&#8217;s width, then we&#8217;ll recursively visit the row indicated by that value.</li>
<li>If we need to go deeper but the spatial index does not have more levels, we&#8217;ll find a number bigger than 1,000,000, and we&#8217;ll have to access the SHP file to get those features, and paint them in the traditional way.</li>
<li>If the sub-square&#8217;s width is by now smaller than the screen pixel width and the value is indicating a row where the sub-square is described, then we are in the case where the spatial index is enough to paint the layer, and we&#8217;ll use the border color to paint this sub-square (which will result in a single pixel). In this case, we cannot use a different color for the border of each feature.</li>
</ul>
</li>
</ul>
<p><strong>Conclusion</strong></p>
<p>By indicating in a quadtree scheme the index of the feature that contains a certain sub-square or the place where that sub-square is expanded, we can draw the layer very quickly when all the shapes need to be painted in a small portion of the screen. At the bottom of our quadtree spatial index, we can list the indices of the features intersected by each leaf sub-square.</p>
<p>You can see here a video showing how a shapefile (black) and it&#8217;s quadtree spatial index (red) are drawn. All the shapes are contained by the viewport, so a traditional spatial index telling which features intersect the viewport would not help:</p>
<p><a href="http://www.youtube.com/watch?v=Vn-fBQ90rv4"><img src="http://gvsigmobileonopenmoko.files.wordpress.com/2010/02/tn_spindex.jpg?w=750" alt="" title="tn_spindex"   class="alignnone size-full wp-image-1152" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gvsigmobileonopenmoko.wordpress.com/1117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gvsigmobileonopenmoko.wordpress.com/1117/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gvsigmobileonopenmoko.wordpress.com&#038;blog=4115232&#038;post=1117&#038;subd=gvsigmobileonopenmoko&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gvsigmobileonopenmoko.wordpress.com/2010/02/27/large-shapefiles-on-small-screens-using-a-drawable-spatial-index/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ded00a4266eee6204177dd370fccb94d?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">gvsigmobileonopenmoko</media:title>
		</media:content>

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/02/tn_country.jpg" medium="image">
			<media:title type="html">tn_country</media:title>
		</media:content>

		<media:content url="http://gvsigmobileonopenmoko.files.wordpress.com/2010/02/tn_spindex.jpg" medium="image">
			<media:title type="html">tn_spindex</media:title>
		</media:content>
	</item>
	</channel>
</rss>
