http://www.perlmonks.org?node_id=587039

On the heels of my media player, another handy tool for car pcs. A cache builder for Google Earth so you can use it offline.

Keep in mind this was made for people who are definitely not JAPHs to install, tinker with and use, hence no XML::Simple, etc
Usage: ge_cachbuild.pl -lat [pos] -lon [pos] -range [meters] -hkm [km] -vkm [ +km] -sleep [sec] -lat (Northwest corner in decimal degrees) ex: 42.832778 -lon (Northwest in decimal degrees) ex: -72.983889 -range (Range in meters) ex: 600 -hkm (Int number of kilometers to scan West to East) ex: 15 -vkm (Int number of kilometers to scan North to South) ex: 10 -sleep (Int number of seconds to sleep before moving), default 3
Code is here Version 1.02

Don't forget to fix the paths for $KML_FILE, $OVERLAY_FILE, $ICON, to fully qualified filenames

Feedback welcome, GPS tracker on it's way ;)
update
Bug fix! In my haste to clean it up, goofed up on it moving south after scanning :(

update
Version 1.02 - Added resume (see usage) and percentage to GE and output.

update
One more thing, I should have mentioned to go to your GoogleEarth settings and max your cache to 2GB, also, you'll fit more at 512x512 detail.

-Lee
"To be civilized is to deny one's nature."

Replies are listed 'Best First'.
Re: Google Earth Cache Builder
by chanio (Priest) on Dec 03, 2006 at 00:37 UTC
      Good catch, with my busted hand, I've been doing a bit more C'n'P than I'd like.

      I've updated the download (but not bumped up the version so I don't have to fix the link in the various forums I've posted it)

      -Lee
      "To be civilized is to deny one's nature."
Re: Google Earth Cache Builder
by explorer (Chaplain) on Dec 02, 2006 at 02:34 UTC

    Google say this is illegal (written at their license).

      The cache is part of GE, nothing I'm doing is changing the way google earth operates and they are free to kill the cache whenever they feel like it. The only thing I'm doing is making use of the features they provide.

      Show me where it says what and where a "Network Link" can access or point to? Also the "Network Link" is made for automation of views and features.

      While there is mention in section one of "(e.g., you may not use the Google Software in an automated manner)", the Network Links exist for this sole purpose and Google's software has total control over the rate at which it allows (if at all) these links to be used and accessed.

      -Lee
      "To be civilized is to deny one's nature."
Re: Google Earth Cache Builder
by Anonymous Monk on Aug 05, 2009 at 16:39 UTC
    Hi ..
    Can you please tell me how to use the code ? I changed the paths , but it still complains about ::

    Can't locate Geo/Distance.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at ./ge_cachebuild.pl line 5. BEGIN failed--compilation aborted at ./ge_cachebuild.pl line 5.