MGRS Layer for Google Earth - Offline!

Thanks to help from Mark Ferneau, have finally the MGRS layer packaged up ready for use off-line (and GPL licenced!), an often requested feature.

These instructions assume Windows, and that you don’t have a local webserver running. The zip file should be usable to set it up on any local server capable of running PHP, just don’t forget to edit the link in the network link to the path of your webserver.

Without further ado, the instructions:

  1. Download Appweb web server from: http://www.appwebserver.org/ (Tested with 2.2.0)
  2. Install with the general default options
  3. Save AppWeb.conf file in C:\program files\MBedthis Appweb\, overwriting the default (this just sets up the minimum needed for PHP to run, removing some of the extra stuff)
  4. Copy php5ts.dll from C:\Program Files\Mbedthis Appweb\lib\modules\ to C:\Program Files\Mbedthis Appweb\bin\ (not sure why this step is required but Appweb seems to need it)
  5. Extract grid_mgrs.zip into directory C:\appweb\web\offline_nearby\
  6. Start up the appweb server, using Icon in Start Menu. (if it’s already running, icon in System Tray, exit it)
  7. Open the network link - save it to your My Places :)

If there is interest could possible package up some of the other layers run on a local webserver in a similar fashion.

Finally, use at your own risk, it works for us, but your mileage may vary. We welcome any and all feedback (esp. patches!)

10 Responses to “MGRS Layer for Google Earth - Offline!”

  1. LWC says:

    Dude, you’re a genious! Do you realize you are the only person in the entire world who (at least publically) solved the lack of PHP support in AppWeb?

    Every PHP user of AppWeb should be grateful that one day you woke up and decided you wanted to use Google Earth offline…

    As you can see by my attached link (which also contains the right code for appweb.conf - yours has gone 404), I’ve posted your solution in the official forum. I hope it’ll finally give the admins enough motivation to officially fix it.

    I only wish somehow using Google Earth offline would have forced you to solve the fact AppWeb hardcodes its default folder in some of its files.

    Thanks again on behalf of the users of AppWeb who want to use PHP in it.

  2. Barry says:

    It was actully Mark, who forwarded me the fix (and did hard work of sourcing and configuring AppWeb in the first place), but sure glad to have helped you out.

    Also thanks for the heads up about the conf file, I think a case issue, (this server is linux so case sensitive) renamed the file as needed.

    I’ve been using a local version of Apache (the latest computer using WAMP) for things like this for a long time, but it was Mark who suggested using AppWeb, as it seems a nice simple solution to get a local webserver up and running.

  3. [...] So the server hosted version has been updated, and also the file inside the zip for the offline version (which are in fact identical code!), and if really interested heres the diff. [...]

  4. BIG TOM says:

    I dont understand where to save the network link in my places? where is that?

  5. BIG TOM says:

    also where do i get this file from :
    AppWeb.conf

  6. BIG TOM says:

    ok got the app web file done
    however now i am getting a fetch of network link connect failed then it asks me if i want to stop fetching ignore or continue

  7. Barry says:

    Tom, have you got the AppWeb application actully running?

    I think it shows a Icon in the Tray beside the clock. If it shows there try closing it, and then starting it again using the item in your Start Menu.

  8. Munir says:

    Hi

    Already a great implementation.

    Any idea how to implement a similar project for dispaly of other projected coordinates specific to country’s grid. I require it for a project to display Lambert Conformal Conical projection. Regards.

  9. Barry says:

    The UTM and MGRS layers are already conversions from British National Grid (and Irish Grid).

    Its all about the maths, if you can get a coordinate conversion system, then it should be possible.

    Its slightly different for simply a projection, as its still lat/long based system, just how the ‘grid’ is distorted.
    So if you can get a conversion between lat/long and absolute position on a projected map then it should be possible by using that conversion backwards. (basically get the php source to conversion on the Australian government site here)

  10. Do you have some suggestions or requested changes for appweb. We’re doing 3.0 now and would love to make changes to make this neat solution work more easily with appweb.

    Michael

Leave a Reply