My Google Map Blog

Archive for August 12th, 2015


Converting a Google Maps screenshot to Google Earth

by Timothy Whitehead on Aug.12, 2015, under 3D Models, Argentina, Australia, Brazil, California, Denmark, England, Germany, Google Earth News, Google Earth Tips, Google Sky, Google maps, Hawaii, Indonesia, Ireland, Italy, Japan, Kenya, Mexico, Natural Landmarks, Netherlands, Sightseeing, Street Views, USA

Yesterday we looked at a problem with the Street View layer of Google Earth. We thought it would be interesting to compare the Street View coverage as shown in Google Earth with that shown in Google Maps. However, it is not very easy to compare them side by side due to the different formats.

So, we decided to finally try out something we have long considered doing but not got around to: get a screenshot of a Google Map into Google Earth. We started by capturing a screenshot of the current coverage of Street View in Google Maps at a resolution of 4096×4096 pixels using this file that uses the Google Maps API. Next, we took a screenshot using this screen capture plugin for Chrome.

Google Maps uses the Web Mercator Projection, but Google Earth overlays need to be in the Equirectangular Projection as we mentioned in this post. We found an open source library called GDAL that can convert between different map projections and using suggestions from this page on GIS StackExchange we were able to get our screen shot into the correct projection. We had to use the free image editing program GIMP to convert our initial screen shot to a tiff image, but apart from that there were no difficulties.

All that was left was to create a global overlay from the image and this is the result:

To try it out for yourself, download this KML file.

Also try adjusting the transparency of the image overlay as seen below:

The post Converting a Google Maps screenshot to Google Earth appeared first on Google Earth Blog.

Comments Off :, , , more...


Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...