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 ;)
updateBug 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."
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.