<?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: Unix command-line tile cutter for Google Maps</title>
	<atom:link href="http://crazedmonkey.com/blog/programming/google-tile-cutter.html/feed" rel="self" type="application/rss+xml" />
	<link>http://crazedmonkey.com/blog/programming/google-tile-cutter.html</link>
	<description>Ian Stevens&#039; weblog</description>
	<lastBuildDate>Wed, 20 Jan 2010 00:40:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mark</title>
		<link>http://crazedmonkey.com/blog/programming/google-tile-cutter.html/comment-page-1#comment-88676</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Thu, 08 Oct 2009 08:48:11 +0000</pubDate>
		<guid isPermaLink="false">http://crazedmonkey.com/blog/programming/unix-command-line-image-tiler-for-google-maps.html#comment-88676</guid>
		<description>FYI,

I encountered the same temp file related error as Ray on OS/X 10.5.8. The fix Austin posted worked.

Very helpful script Ian, thanks.</description>
		<content:encoded><![CDATA[<p>FYI,</p>
<p>I encountered the same temp file related error as Ray on OS/X 10.5.8. The fix Austin posted worked.</p>
<p>Very helpful script Ian, thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Austin</title>
		<link>http://crazedmonkey.com/blog/programming/google-tile-cutter.html/comment-page-1#comment-74744</link>
		<dc:creator>Austin</dc:creator>
		<pubDate>Wed, 25 Mar 2009 05:39:13 +0000</pubDate>
		<guid isPermaLink="false">http://crazedmonkey.com/blog/programming/unix-command-line-image-tiler-for-google-maps.html#comment-74744</guid>
		<description>@Ray

It seems that one or more of the components in the script have changed.

If you&#039;re still interested in this script, here is how you fix it:
line 149: Remove the -t (This will put the temporary files into your current directory, but it seems the the -t option produces an unexpected output name)
line 206: Change &#039;mktemp&#039; to &#039;mktemp crushed-XXXXXX&#039;

Again, this makes all of the temporary files in your local directory, but the script cleans up afterwards.</description>
		<content:encoded><![CDATA[<p>@Ray</p>
<p>It seems that one or more of the components in the script have changed.</p>
<p>If you&#8217;re still interested in this script, here is how you fix it:<br />
line 149: Remove the -t (This will put the temporary files into your current directory, but it seems the the -t option produces an unexpected output name)<br />
line 206: Change &#8216;mktemp&#8217; to &#8216;mktemp crushed-XXXXXX&#8217;</p>
<p>Again, this makes all of the temporary files in your local directory, but the script cleans up afterwards.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ray</title>
		<link>http://crazedmonkey.com/blog/programming/google-tile-cutter.html/comment-page-1#comment-72182</link>
		<dc:creator>Ray</dc:creator>
		<pubDate>Sun, 15 Feb 2009 11:35:08 +0000</pubDate>
		<guid isPermaLink="false">http://crazedmonkey.com/blog/programming/unix-command-line-image-tiler-for-google-maps.html#comment-72182</guid>
		<description>Hi Ian,
I&#039;m still seeing this error.  I should have everything I need installed.

bash-3.2$ ./googletilecutter-0.10.sh -o 15 -t 1812,1924 -z 15 image.jpg 
Using advpng for compression.
Padding image ...
Generating tiles ...
Renumbering and compressing tiles ...
ls: /var/folders/RP/RPcPqaqMGsahjBfs7JB0l+0Nfzw/-Tmp-//map-XXXXXX.NtN1jQ0D-tile*: No such file or directory

Any ideas?</description>
		<content:encoded><![CDATA[<p>Hi Ian,<br />
I&#8217;m still seeing this error.  I should have everything I need installed.</p>
<p>bash-3.2$ ./googletilecutter-0.10.sh -o 15 -t 1812,1924 -z 15 image.jpg<br />
Using advpng for compression.<br />
Padding image &#8230;<br />
Generating tiles &#8230;<br />
Renumbering and compressing tiles &#8230;<br />
ls: /var/folders/RP/RPcPqaqMGsahjBfs7JB0l+0Nfzw/-Tmp-//map-XXXXXX.NtN1jQ0D-tile*: No such file or directory</p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://crazedmonkey.com/blog/programming/google-tile-cutter.html/comment-page-1#comment-70178</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Fri, 16 Jan 2009 04:38:51 +0000</pubDate>
		<guid isPermaLink="false">http://crazedmonkey.com/blog/programming/unix-command-line-image-tiler-for-google-maps.html#comment-70178</guid>
		<description>OK, It works! I have a minimal linux installation, so ImageMagic took some tweaking to install. But it works at the command line - and I totally agree, command-line&#039;s the best way to go.  Thanks for sharing this useful scritp!  

Robert</description>
		<content:encoded><![CDATA[<p>OK, It works! I have a minimal linux installation, so ImageMagic took some tweaking to install. But it works at the command line &#8211; and I totally agree, command-line&#8217;s the best way to go.  Thanks for sharing this useful scritp!  </p>
<p>Robert</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian Stevens</title>
		<link>http://crazedmonkey.com/blog/programming/google-tile-cutter.html/comment-page-1#comment-70170</link>
		<dc:creator>Ian Stevens</dc:creator>
		<pubDate>Fri, 16 Jan 2009 02:56:12 +0000</pubDate>
		<guid isPermaLink="false">http://crazedmonkey.com/blog/programming/unix-command-line-image-tiler-for-google-maps.html#comment-70170</guid>
		<description>Hi Robert. When using BASH in scripts, I prefer to interface with ImageMagick using the command-line scripts, as I did with my tile-cutter. The command-line client is great in that you can apply many effects and transformations in a single line.</description>
		<content:encoded><![CDATA[<p>Hi Robert. When using BASH in scripts, I prefer to interface with ImageMagick using the command-line scripts, as I did with my tile-cutter. The command-line client is great in that you can apply many effects and transformations in a single line.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://crazedmonkey.com/blog/programming/google-tile-cutter.html/comment-page-1#comment-70073</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Wed, 14 Jan 2009 05:05:39 +0000</pubDate>
		<guid isPermaLink="false">http://crazedmonkey.com/blog/programming/unix-command-line-image-tiler-for-google-maps.html#comment-70073</guid>
		<description>ImageMagic has many versions to interface to various languages (Perl, tcl, ruby, ...). But, I don&#039;t see one for bash, or shell scripting at all. Which one should I get?

Thanks,
Robert</description>
		<content:encoded><![CDATA[<p>ImageMagic has many versions to interface to various languages (Perl, tcl, ruby, &#8230;). But, I don&#8217;t see one for bash, or shell scripting at all. Which one should I get?</p>
<p>Thanks,<br />
Robert</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian Stevens</title>
		<link>http://crazedmonkey.com/blog/programming/google-tile-cutter.html/comment-page-1#comment-67230</link>
		<dc:creator>Ian Stevens</dc:creator>
		<pubDate>Wed, 03 Dec 2008 03:55:14 +0000</pubDate>
		<guid isPermaLink="false">http://crazedmonkey.com/blog/programming/unix-command-line-image-tiler-for-google-maps.html#comment-67230</guid>
		<description>Romulo, the only way that would probably happen is if you installed &lt;a href=&quot;http://www.cygwin.com/&quot; rel=&quot;nofollow&quot;&gt;Cygwin&lt;/a&gt; and managed to &lt;a href=&quot;http://www.imagemagick.org/script/binary-releases.php&quot; rel=&quot;nofollow&quot;&gt;install ImageMagick on it&lt;/a&gt;. I have no experience with the latter, so I can&#039;t be of much help. Sorry.</description>
		<content:encoded><![CDATA[<p>Romulo, the only way that would probably happen is if you installed <a href="http://www.cygwin.com/" rel="nofollow">Cygwin</a> and managed to <a href="http://www.imagemagick.org/script/binary-releases.php" rel="nofollow">install ImageMagick on it</a>. I have no experience with the latter, so I can&#8217;t be of much help. Sorry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Romulo Cantor</title>
		<link>http://crazedmonkey.com/blog/programming/google-tile-cutter.html/comment-page-1#comment-67135</link>
		<dc:creator>Romulo Cantor</dc:creator>
		<pubDate>Mon, 01 Dec 2008 16:20:56 +0000</pubDate>
		<guid isPermaLink="false">http://crazedmonkey.com/blog/programming/unix-command-line-image-tiler-for-google-maps.html#comment-67135</guid>
		<description>Can I use the command in windows?

How do I do that?</description>
		<content:encoded><![CDATA[<p>Can I use the command in windows?</p>
<p>How do I do that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick</title>
		<link>http://crazedmonkey.com/blog/programming/google-tile-cutter.html/comment-page-1#comment-62415</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Thu, 02 Oct 2008 19:38:25 +0000</pubDate>
		<guid isPermaLink="false">http://crazedmonkey.com/blog/programming/unix-command-line-image-tiler-for-google-maps.html#comment-62415</guid>
		<description>Excellent little tool.

I found that I had to rename the file with no extension to get a .jpg to be tiled on a mac OSX-10.5</description>
		<content:encoded><![CDATA[<p>Excellent little tool.</p>
<p>I found that I had to rename the file with no extension to get a .jpg to be tiled on a mac OSX-10.5</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DamageInc</title>
		<link>http://crazedmonkey.com/blog/programming/google-tile-cutter.html/comment-page-1#comment-61574</link>
		<dc:creator>DamageInc</dc:creator>
		<pubDate>Mon, 22 Sep 2008 11:10:56 +0000</pubDate>
		<guid isPermaLink="false">http://crazedmonkey.com/blog/programming/unix-command-line-image-tiler-for-google-maps.html#comment-61574</guid>
		<description>There is a small bug in this when you give it an image with power-of-two dimensions where it will create one more tile than required (since it always rounds up).

I changed:

width=$((`echo $dim &#124; sed -e &quot;s/x.*//&quot;`+$padX))
tileWidth=$(($width / 256 + 1))
height=$((`echo $dim &#124; sed -e &quot;s/.*x//&quot;`+$padY))
tileHeight=$(($height / 256 + 1))

to: 

width=$((`echo $dim &#124; sed -e &quot;s/x.*//&quot;`+$padX))
tileWidth=$((($width - 1) / 256 + 1))
height=$((`echo $dim &#124; sed -e &quot;s/.*x//&quot;`+$padY))
tileHeight=$((($height - 1) / 256 + 1))

and it seems to work fine.</description>
		<content:encoded><![CDATA[<p>There is a small bug in this when you give it an image with power-of-two dimensions where it will create one more tile than required (since it always rounds up).</p>
<p>I changed:</p>
<p>width=$((`echo $dim | sed -e &#8220;s/x.*//&#8221;`+$padX))<br />
tileWidth=$(($width / 256 + 1))<br />
height=$((`echo $dim | sed -e &#8220;s/.*x//&#8221;`+$padY))<br />
tileHeight=$(($height / 256 + 1))</p>
<p>to: </p>
<p>width=$((`echo $dim | sed -e &#8220;s/x.*//&#8221;`+$padX))<br />
tileWidth=$((($width &#8211; 1) / 256 + 1))<br />
height=$((`echo $dim | sed -e &#8220;s/.*x//&#8221;`+$padY))<br />
tileHeight=$((($height &#8211; 1) / 256 + 1))</p>
<p>and it seems to work fine.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
