Archive for the ‘Google Earth’ Category

MGRS coordinate entry

Friday, December 12th, 2008

Prompted by one of those infernal* posts on a Google Maps group, have finally been inspired to cobble together a MGRS -> Lat/Long conversion. It seems trvial, the UTM->MGRS conversion is quite simple, but there are a few gotchas!, so after much puzzleing over some C code from GeoTrans (and Trial&Error for good measure!), I think** have something working.

Anyway try it out here: 

Coordinate Flyto for Google Earth/Maps

also added today is a tickbox to open the result direct in Google Maps (rather than Google Earth). 

I’ll tidy it up and post the code, which is based on the PHPcoord conversion class, incase others have a use. I’ll also add it to the API – and possibly even back port it into Perl for use on the on site coordinate covertor. 

Finally possibly of interest is the realisation that the MGRS Google Earth Gridlines layer, will actully load directly in Google Maps, so:

MGRS Gridlines in Google Maps

the lines should update a few seconds after dragging/zooming. Ideally will suppress the big blue pins (which are show as numbers in GE) , but not tonight…

 

 

* in the nicest possible sence!

** I tested it by converting utm->mgrs->utm globally on a worldwide 1 degree grid – all check out with absolute precision.

Content on Google somehere, somehow?

Saturday, August 16th, 2008

I don’t know if anyone is interested in this stuff, but have been for a long time being trying to make sence of the various ‘geo’ properties operated by Google and quite a bit on how to get indexed and exposure for your content.

Update: There has been some misconception about what this diagram represents – it is only intended to cover getting content in KML/KMZ files on your website listed and indexed in Google Properties. It’s sort of murky in that content you submit to other websites are sort of included to show they end up in various indexes. It does not cover business listings at all which for the most part is sepetate totally. 

 

GeoIndex Overview Diagram

GeoIndex Overview Diagram

Links for the purple circles:

  1. http://www.nearby.org.uk/gadget-for-kml.php
  2. http://code.google.com/apis/kml/documentation/kmlSearch.html
  3. http://maps.google.com/ig/submit?synd=mpl&pid=mpl
  4. http://earth.google.com/submit.html
  5. http://maps.google.com/support/bin/answer.py?hl=en&answer=68480
  6. http://earth.google.com/gallery/index.html
  7. http://www.panoramio.com/help#about_GE
  8. http://bbs.keyhole.com/

probably incomprehensible, but hopefully useful to someone? Questions or feedback welcome.

Update: notable perhaps for its exclusion, is Outreach – Oops, version 2 perhaps?

Edit your MyMap container

Saturday, August 9th, 2008

Small update to the My Maps support in GoKML, announced a few days ago; you can now edit the links contained in the file. Just goto your secret admin page, generated for your link.

People viewing your file in Google Maps will see the update soon, Google Maps caches it for a while.

People viewing in Google Earth however will not, as they downloaded a static file, which brings onto another point, if want them to auto update as well, could create a network link to your Container, using the standard GoKML form, (enter the url your container and choose appriate refresh period).

My Maps Container

Wednesday, August 6th, 2008

When using the Google’s My Maps feature you can display multiple maps at once simply by ticking the boxes, however the ‘Link to this Map’ will only ever include 1 map, so you can’t easily send a group of maps to someone.

… So a new script – this time under the gokml.net banner – for creating a ‘container’ KML that simply opens a bunch of maps at once – this KML is openabe in Google Earth, but also you can share the link so others can see your batch of My Maps at once in Google Maps.

Create a KML container for a group of My Maps


As a total aside I notice My Maps, now sport a (Geo)RSS feed :)

Google Earth 4.3: Magnetic Compass

Friday, August 1st, 2008

A while ago released a Compass Overlay, which (hopefully) makes reading directions of the navigation control easier. Well this new version does the same, but its (mostly) correct for the Magnetic Direction!

Magnetic Compass correct link this time!!

Note: its positioned to fit the navigation control of Google Earth 4.3, not the separate compass, which has only recently begun working for me… Updates a few seconds after stopping moving.

Now have a way to determine the magnetic variation at a location have some other ideas for using this in Google Earth, eg magnetic bearing along a line, but this is a starting point. For example in the uk the variation is often too small to be really seen on the tiny control.

Thanks to heywhatsthat.com for the pointer to a webservice that gives the variation.

Update: Rather embarrassingly just noticed the link above was wrong! It was to a static compass. The link above has been updated, and it should now rotate! Sorry for confusion… (always wondered why this didnt get much traffic!)

Google Earth: Chart Plotter

Sunday, July 27th, 2008

Did someone mention a chart plotter? If so have a look-see:

Google Earth: Map Plotter

Its hot off the presses so don’t know what options it will need yet, just used three example zooms levels – other options would include the mobile map style. (You can change it by altering the link in Properties)

Also its standard Google Maps, as that is all the API offers. Ideally would be proper flight plan data, but would need a Static Map API to work.

Note: The map is centered on the camera position (so is ideal for the Flight Simulator) – and while it can be used in other modes it wont make much sense. If interest could make one that shows the center of the view itself.

Disclaimer: this is entering the gray area of what is possible with the Static Maps API, so might get pulled, etc.

More flight sim tools

Google Earth: Flight Simulator GPS Arrow

Saturday, July 26th, 2008

Behold a new network link from nearby.org.uk:

Google Earth GPS

Once you have chosen a destination point, a small arrow will be shown in the bottom right of your Google Earth window, which points towards your destination! Ideal for use in the flight simulator, where you can play follow the arrow.

Note it only updates every 5 seconds, and comes with all sorts of disclaimers such as don’t use in life or death situations.

Thats a mighty long way!

Wednesday, July 23rd, 2008

Google have recently added walking directions to the Directions feature on Google Maps.

This is a nice addition, and of course its early days, but does throw up some interesting results. The post says “If you’re going 10 km or less (some call this 6.2 miles)”, but if you want to test it out on longer routes, just add &dirflg=w to the url (use the “Link to this Page” link to get a link for the current map), and it does work!

Luckily it knows to avoid using the Motorway (phew!), but it still does favour bigger roads as noted here. Hopefully with time it can pickup on the shortest route rather than the ‘quickest’ which is generally what is used for driving.

I wonder if we will ever get to the point that it includes public footpaths here in the UK? (maybe it will via OSM?) – and as a refinement it could favour known ‘long distance footpaths’ …

Update: GEarthBlog also points out that can use my multi direction to KML tool, to view walking directions in Google Earth! Thanks Frank!

Letting your KML loose

Thursday, June 26th, 2008

I think I have mentioned this before, but have a page that helps share your KML file via various Google services.

Following a post on the Maps help group, realised could update it with some other ways to use the KML (even non Google!)

So view the latest page at

Publishing your KML for Google Earth, Google Maps and Beyond

suggestions for other links welcome in the comments!

Stereoscopic (3D) Earth

Thursday, June 19th, 2008

Alerted by ogleearth to an interesting mashup with the new Google Earth Plugin, that promises Stereo viewing of earth I couldnt wait to get home to try on my windows machine….

However try as a I might I could not cross my eyes enough to see it in all its glory. So I copied* the code and made the size of of the globes configurable (well I first tried just changing the hardcoded value), and the result is:

stereo-earth.php?s=200

I found I can get it to work on 200pixels, any bigger and just couldnt manage it, but try it yourself (change the numbers in the url).

Another tip: press F11 to remove distracting screen clutter.

* The original Google demo is under the Apache licence, so assume the Stereoscopic version is too, so this one is also, although the PHP is rather boring.