Friday, March 31, 2006

KMLImporter in SVN

KMLImporter will (not) be included in 1.3.4 and therefore new versions are automatically available in SVN
Either do a checkout from SVN or view the file on the web
The famous version 42 has been reached

Friday, March 24, 2006

WorldWind in your right-click menu

If you read the Advanced WorldWind plugin file support post you might be wondering how to get an ‘Open with WorldWind’ entry in explorer’s right-click menu. First you have to find out the full name of the file type you’re handling. You can do this by looking at the (Default) value in HKEY_CLASSES_ROOT\.(Some Extension). Then replace ‘Google Earth.kmlfile’ with the name you found in the example below. Of course you also have to adjust the path to point to your WorldWind installation (this has to be 1.3.4!). This is of course only a solution for developers and should be done automatically by an installer for the average user.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Google Earth.kmlfile\shell\Open with WorldWind]

[HKEY_CLASSES_ROOT\Google Earth.kmlfile\shell\Open with WorldWind\command]
@="D:\\Dev\\WorldWind\\bin\\Debug\\WorldWind.exe \"%1\""

[HKEY_CLASSES_ROOT\Google Earth.kmzfile\shell\Open with WorldWind]

[HKEY_CLASSES_ROOT\Google Earth.kmzfile\shell\Open with WorldWind\command]
@="D:\\Dev\\WorldWind\\bin\\Debug\\WorldWind.exe \"%1\""

Tuesday, March 21, 2006

KMLImporter and PlaneTracker fixed

KMLImporter fixed
Version 28 of KMLImporter (finally) fixes periodic update support for NetworkLinks.
Thanks to James for putting me on the right path!

PlaneTracker fixed
Thanks to Anonymous poster for noticing the incompatibility with other plugins like the measure tool
Version 0.29 fixes this minor bug

Friday, March 17, 2006

PlaneTracker updated with new airports

MIA (Miami) and SEA (Seattle) have been added to PlaneTracker to bring you even more planes
Version 0.28 is available here

Friday, March 10, 2006

Advanced WorldWind plugin file support

Recently I got the need for more ways to load files from a WorldWind plugin. Which is why I added both Drag&Drop and command line support for plugins. Note that you’ll need the latest version of WorldWind to get these features to work right. Command line support doesn’t work in 1.3.3 at all, but I’ll provide a compatible way that will at least allow the plugin to load in older versions. It’s possible to have 1.3.3 support Drag&Drop but the experience will likely be flaky.

So lets start off with some code to handle files that are passed in from the command line. This is useful if you want to make WorldWind the primary or alternative file handler for a specific type of file in windows explorer. This will automatically work if you’re using a version that has the correct property, and otherwise skip over the argument handling code. You’d generally use this code in the Load method of your plugin, though it could be used just about anywhere.

// Some magic to provide backward compatibility
Type typecontroller = typeof(MainApplication);
System.Reflection.PropertyInfo finfo = typecontroller.GetProperty("CmdArgs", BindingFlags.Static|BindingFlags.Public|BindingFlags.GetProperty);
string[] args = null;
(finfo != null)
args = (string[])finfo.GetValue(null, null);
if (args != null)
// use args here (args is a string array containing all command line arguments)

Drag&Drop support is slightly more complicated. I’ve made a simple demonstration plugin that handles dropping a .jpg file by showing a simple MessageBox for which the source code is available here. I also updated KMLImporter to go hand in hand with this great new functionality.

WorldWind source repository switched from CVS to SVN

The WorldWind source code versioning is now powered by SVN
To checkout point your favorite SVN client to
If you experience difficulties there’s some clues in the SVN mailing list post

Thursday, March 02, 2006

KMLImporter development continues

I know I've been silent, but KMLImporter development hasn't stopped
In fact, the version number has gone up to 23 already!
Even worse, I can't even remember what changed and I didn't keep a log
So changes to the plugin are:
  • Internal icons are fixed
  • Awsome new internal icons are used (and included)
  • NetworkLinks (non-updating for now)
  • Stuff (and LOTS of it)
Get it at