Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Support Software > Other Cool Stuff


Reply
 
Share Thread Tools Display Modes
Old 06-14-2006, 05:03 PM   #1
Newbie
 
njwashor's Avatar
 
Join Date: Mar 2005
Location: Ashaway, RI
Posts: 38
njwashor is on a distinguished road
Lightbulb Google Earth Cache Builder

Hey Guys (and Girls),

I just wrote a basic win32 MFC app to aid in building caches in Google Earth. If anyone wants it they can download it at http://nwashor.com/downloads/GECacheBldr.exe.

Like I said it's real basic... you give it a Lat and Lon of your NW corner. You give it the size in miles across and down (e/w and n/s). You also give it a speed factor (i use a 3, but feel free to change this from 1 and up). The larger the speed factor, the slower the application writes out a new KML file between every new point calculated.

Then you set up Google Earth to read in the KML file as a network resource. Set it up to refresh every second and to fly-to the location. Enable the resource under Places, and run the app (you might need to run it once and kill it to create the KML file the first time, I could make this easier with an install shield if anyone has that software). The KML file is spit out into the directory that you run the executable from and is title CashBild.kml.

There are a few more instructions in the about of the app.

This is version 1, and is not coded super clean, so if it is doing stuff you don't like, just kill it (ctrl-alt-del -> taskmgr) and restart And yes, it will take over your computer when you run it (I'll throw it in a thread for the next release).

This version does NOT work over the international dateline, nor the polar caps yet. This version DOES account for lines of longitude shrinking as you approach the polar caps (so if you choose a really large area, or an area near the caps, make sure you use the larger width of the area in miles).

And yeah, I'm an American, so units are in miles.

If you're playing with it and you notice something not functioning properly, let me know and I'll fix it.

One final thing... you may need to download some .NET files for this to run as it was compile by VS.Net 2003.

Nate
njwashor is offline   Reply With Quote
Advertisement
 
Advertisement
Advertisement Sponsored links

Old 06-14-2006, 05:08 PM   #2
FLAC
 
Join Date: May 2005
Location: Vienna, VA
Posts: 1,382
b8bboi is on a distinguished road
nice idea. I'll try this later.

From your experience, how much can GE's 2G of cache hold? ie., what should be the size?
__________________
iGMon - Integration between iGuidance and Road Runner
CFX - Skin for Road Runner
b8bboi is offline   Reply With Quote
Old 06-14-2006, 05:11 PM   #3
Newbie
 
njwashor's Avatar
 
Join Date: Mar 2005
Location: Ashaway, RI
Posts: 38
njwashor is on a distinguished road
Quote: Originally Posted by b8bboi
nice idea. I'll try this later.

From your experience, how much can GE's 2G of cache hold? ie., what should be the size?

Well I'm doing the state of Rhode Island now, and when it's done I'll let ya know
njwashor is offline   Reply With Quote
Old 06-14-2006, 05:13 PM   #4
Newbie
 
njwashor's Avatar
 
Join Date: Mar 2005
Location: Ashaway, RI
Posts: 38
njwashor is on a distinguished road
Couple things I forgot to mention... you gotta zoom into the level of detail you desire (I don't output range in the KML file). It's not all that intuitive, but if you play around with it, you'll figure it out

Nate
njwashor is offline   Reply With Quote
Old 06-14-2006, 05:17 PM   #5
Newbie
 
njwashor's Avatar
 
Join Date: Mar 2005
Location: Ashaway, RI
Posts: 38
njwashor is on a distinguished road
Oh yeah, and also, since it is constantly writing a file... if Google Earth tries to read the "network link" as the file is open for writing, GE asks you what to do... just select ignore future errors with the network resource. This happened to me after about 10 minutes, but could happen sooner or later than that in your experiences.
njwashor is offline   Reply With Quote
Old 06-14-2006, 05:29 PM   #6
MySQL Error
 
MatrixPC's Avatar
 
Join Date: Sep 2003
Location: Beach City, Socal
Posts: 4,042
MatrixPC is on a distinguished road
Very interesting.
I was able to do a manual build 2Gb file, and it a paint in the a$$.
Will try later.
__________________
2004 Matrix XR A7N8X-VM/400 AMD XP-M 2500+, DS-ATX
89 Supra Turbo P3 600E@750/Abit BE6 II, Alpine M-BUS Car2PC.
Y2K Accord Dell GX150
RoadRunner is the best FE PERIOD
EmoRebellion is a SCAMMER
MatrixPC is offline   Reply With Quote
Old 06-15-2006, 08:06 AM   #7
Newbie
 
njwashor's Avatar
 
Join Date: Mar 2005
Location: Ashaway, RI
Posts: 38
njwashor is on a distinguished road
Just updated it with an input for range.

After experimenting a little, I realized giving the user control over the height of the camera would be useful, as GE seems to "drift" to a different height as it goes along over a long course of time. Also, turning off the "Terrain" layer may make it easier for you if you are in a rolling area.

If you want to try it out, my coords for testing are:
Lat: 42, 2, 0 N
Lon: 72, 0, 0 W
45 Miles East
55 Miles South
1250 Meters Range
6 speed factor (1.5 seconds between writes).

Hope this update is useful.

Nate
njwashor is offline   Reply With Quote
Old 06-16-2006, 09:57 PM   #8
Low Bitrate
 
briefnotion's Avatar
 
Join Date: May 2006
Location: LA
Posts: 103
briefnotion is on a distinguished road
Not sure I downloaded the correct prog. Recieved error, "This application has failed to start because MFC71D.DLL was not found. Reinstall ..."
_______

http://briefnotion.250free.com/ Im thinking I should have called it Google Earth Path Finder.
briefnotion is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 06-16-2006, 11:14 PM   #9
Maximum Bitrate
 
P3rv3rt B3ar's Avatar
 
Join Date: Jul 2005
Location: Funland
Posts: 577
P3rv3rt B3ar has much to be proud ofP3rv3rt B3ar has much to be proud ofP3rv3rt B3ar has much to be proud ofP3rv3rt B3ar has much to be proud ofP3rv3rt B3ar has much to be proud ofP3rv3rt B3ar has much to be proud ofP3rv3rt B3ar has much to be proud ofP3rv3rt B3ar has much to be proud ofP3rv3rt B3ar has much to be proud of
It seems to me to that author compiled it with debug configuration and u dont have IDE in question in your system. So to get that version working try to scavenge it (dll)somewhere (www.dll-files.com for example) and if this is indeed the case author could compile it with release configuration. And next time do little it will get u far.

Last edited by P3rv3rt B3ar; 06-16-2006 at 11:18 PM.
P3rv3rt B3ar is offline   Reply With Quote
Old 06-17-2006, 01:29 PM   #10
Newbie
 
njwashor's Avatar
 
Join Date: Mar 2005
Location: Ashaway, RI
Posts: 38
njwashor is on a distinguished road
Yeah, I did compile in debug mode... I can compile it in Release for you all, but not sure if that will make it so you don't need the dlls. .Net apps generally require some dlls which are free to download. If you tell me all the dlls you need, I can post them in a zip with the EXE (as MS does allow this). Only problem is I won't know the DLLs necessary except if someone else tells me.

So... I'll post a release copy and see if that fixes the problem. Gimme an hour from now as I have to take out some experimental code I was writing.

Nate
njwashor is offline   Reply With Quote
Old 06-17-2006, 01:53 PM   #11
Newbie
 
njwashor's Avatar
 
Join Date: Mar 2005
Location: Ashaway, RI
Posts: 38
njwashor is on a distinguished road
Alright, I updated the EXE, and compiled it with RELEASE mode instead of DEBUG mode... the result is an EXE 1/3 the size (good for my server ) and hopefully you won't need those ugly .NET dlls anymore... however if you do... tell me which ones you need and I will zip them up in a file along with the EXE for download. The files location has not changed...

Also, added resolution as a user input (used to be static of 1/4 mile). Now you can enter in any number of 10ths of a mile for resolution.

Nate
njwashor is offline   Reply With Quote
Old 06-17-2006, 03:04 PM   #12
Low Bitrate
 
briefnotion's Avatar
 
Join Date: May 2006
Location: LA
Posts: 103
briefnotion is on a distinguished road
Ok, is it suposed to work with GE4beta. I get an hour glass hangup.
briefnotion is offline   Reply With Quote
Old 06-17-2006, 10:04 PM   #13
Newbie
 
njwashor's Avatar
 
Join Date: Mar 2005
Location: Ashaway, RI
Posts: 38
njwashor is on a distinguished road
Yeah, it works with GE4 beta and GE3. Did you set the network link to the output KML file? As far as the hour glass... once you kick off the app, it won't respond to any inputs (since it's already running). I'm in the process of adding a pause button, and moving the algorithm into a stoppable/restartable thread. If you start the program and want to stop it, just hit the close "x" button on the app, and kill the program for now. If you have GE set up correctly with the network link, it should work. Let me know if you're still having issues.

Nate
njwashor is offline   Reply With Quote
Old 06-18-2006, 11:20 AM   #14
Newbie
 
njwashor's Avatar
 
Join Date: Mar 2005
Location: Ashaway, RI
Posts: 38
njwashor is on a distinguished road
Added the algo into a thread, so it doesn't lock up anymore while running. Will be adding more features soon.

Nate
njwashor is offline   Reply With Quote
Old 06-18-2006, 12:43 PM   #15
Low Bitrate
 
briefnotion's Avatar
 
Join Date: May 2006
Location: LA
Posts: 103
briefnotion is on a distinguished road
Good work nj. Could you post a set of defalt numbers that seem to work well. The numbers posted above seem to be missing something.
briefnotion is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Finally my 2000 Toyota 4runner google earth equipped car puter eacarrender Show off your project 32 05-31-2006 09:48 PM
Google Earth: How? sux89 MacCar 9 03-15-2006 09:05 PM
Google Earth SKIN (in progress) RPM_VR4 SB Skins 6 02-15-2006 07:45 PM
Embedding Google Earth to RR Asskick Road Runner 11 02-10-2006 10:44 AM
Drop-down menus don't work? Read this! gnomad Announcements 0 10-14-2005 02:15 PM



All times are GMT -5. The time now is 05:33 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics