IT

GIS, mapping and coordinates · 12 January 2018

How to export coordinates from Google Earth to Excel and back

Export placemark coordinates from Google Earth to Excel via KML, get elevations with TCX Converter, and import a list of points from Excel into Google Earth via CSV.

In this article I’ll explain how to export coordinates from Google Earth to Excel, and how to do the reverse: from Excel to Google Earth.

Over the last decade (or perhaps a bit more), satellite images available to everyone have had a noticeable impact on our habits.
We use them to follow directions on the satnav or to choose our next holiday…

Google Earth

Google Earth was one of the first free tools that let you navigate the world sitting at a computer connected to the web.
It’s a 3D graphics application that creates virtual images of the Earth, with high (and ever increasing!) detail, using satellite images, aerial photos and topographic data.

But I think you know very well what Google Earth is!
I won’t dwell on it; I’ll just add that for some years the desktop Pro version has been free (download it here).

Google Earth isn’t just a tool for a virtual trip round the world.
You can do lots of other things with it, and it’s an excellent support for professional applications.
A few uses that come to mind:

  • hydraulic analyses of watercourses and catchments;
  • identifying avalanche sites;
  • assessing vegetation cover and land use;
  • measuring distances and areas;
  • analysing how a shoreline evolves;
  • urban planning;
  • elevation profiles;
  • agronomic studies of farmland;
  • flight plans for drone operations.

I realise these are only a small part of what you can do, but it’s just to give you an idea.

Coordinates in Google Earth

Google Earth gives you the coordinates of a point on the Earth’s surface in the geographic reference system based on the WGS84 ellipsoid.
If you put a placemark on a point, you get latitude and longitude in return.

And if you move the cursor over the map, you’ll see at the bottom right some information on elevation, the height.
Google Earth shows a 3D representation of the terrain using a DEM (Digital Elevation Model) from NASA’s Shuttle Radar Topography Mission data, combined with other data to improve the 3D representation.
That’s where it gets its heights.
And they’re orthometric heights (I wrote an article on the difference between orthometric and ellipsoidal height here).

Google Earth window for choosing which coordinates to showLatitude and longitude are angles, and you can choose to read them in sexagesimal or decimal degrees.
You can also ask for plane (map) coordinates, and in that case Google Earth gives them in the UTM projection, still referred to the WGS84 ellipsoid (here you’ll find an article on geographic and plane coordinates).

Go to “Tools – Options” and in the “Show Lat/Long” box choose which coordinates you want.

Exporting coordinates from Google Earth

You might need to export the coordinates of a series of points taken in Google Earth.
And you might want to organise them in a spreadsheet, like Excel (LibreOffice Calc works too).

The reasons can be many and varied.

It isn’t hard, it’s fairly quick, and here’s how.

Mark the points

Start by marking the points whose coordinates you want.
You can press CTRL+Shift+P to add a placemark, a pin.

Placemarks in Google Earth

The placemarks you’ve added appear in the sidebar, inside the “My Places” folder.
I suggest creating a subfolder for the project or job you’re working on and dragging all the points into it.
It’ll come in handy shortly.

Save the points

When you’ve finished marking the points and put them in the folder, right-click the folder and choose “Save Place As…”

Select the KML file type, then choose the file name and destination and save it.

Import the points into Excel

Take the KML file you saved and open it with Excel.
Careful: you need to allow opening all file types, not just Excel files!
If you don’t, you won’t see the KML file.

When you open the KML file you’ll get a series of messages from Excel.
Always click OK, and remember to select the option to open the file as an XML table.

Warning when opening a KML file in Microsoft Excel

Message when opening a KML file in Microsoft Excel

Opening a KML file in Microsoft Excel as an XML table

Points imported from Google Earth into ExcelYou’ll find a worksheet full of information, most of which you don’t need.
To get to the cells with the point coordinates, scroll through the sheet until you find ns1:longitude and ns1:latitude.
These are the geographic coordinates in decimal degrees.
You can copy and paste them into another area, a text document or wherever you like.

The elevation is missing!

You’ll have noticed the altitude column is full of zeros.
This method doesn’t let you export the elevation of the points.

It can be done, but you need another route and an extra program.

Exporting coordinates and elevation with TCX Converter

TCX Converter is free Italian software that converts between many file formats holding position information (TCX, GPX, FITLOG, KML, TRK, PLT).
It was made for hikers and cyclists who load routes onto their handheld or training devices.
It’s also widely used for its compatibility with Garmin devices, popular among sports people.

You can download TCX Converter here, and it lets you export coordinates from Google Earth to Excel keeping the elevation.

Working with paths

TCX Converter doesn’t let you import and handle isolated points taken in Google Earth.
You have to work with the “path” tool.

From the “Add” menu choose “Path” and draw a route that includes the points to export (in the image below I included just one…).

I drew a closed path, but start and end don’t have to coincide.

A path drawn in Google Earth

Right-click the new path, again in the “My Places” folder in the left sidebar, and select “Save Place As…” again.

Choose KML again, pick a destination, name the file and save it.

Importing a path into TCX Converter

After installing and launching TCX Converter, click the “Open” button at the top left and look for the KML file of the path you drew in Google Earth.

TCX Converter start screen

At the bottom of the window you’ll see a list of points with latitude (LAT) and longitude (LON).
These are the vertices of the path.

So if your aim is to get the coordinates of points scattered over an area, I suggest drawing a path where each vertex corresponds to a point to export.
If you add extra vertices, you may no longer be able to recognise the points you want to save.

Updating the elevation

As you can see, the elevation (ALT) is still missing.
But if you click the “Update Altitude” button in the track editing palette, in the right-hand panel of the central window, you’ll see that, provided you have an internet connection, the elevations are updated!

TCX Converter update altitude function

Elevations of the points updated with TCX Converter

Exporting the data and importing into Excel

Exporting the data as CSV with TCX ConverterNow you can export the coordinates and elevations of the points to Excel.

Again in the right-hand panel, select the “Export” palette and choose “Save as CSV…”

Open the CSV file in Excel and you’ll find the information you need in the sheet columns: latitude, longitude and elevation.

Excel worksheet with the data imported from TCX Converter

From Excel to Google Earth

You might also want to go the other way: import the coordinates of one or more points into Google Earth, to see where they end up on the map.

If you have only a few, the simplest way is to add a new placemark and paste the coordinates you have into the coordinate field.
But if there are many points, it can become a long, boring, repetitive job.
One of those jobs where the chance of getting distracted and making mistakes grows over time…

There’s an automatic way to bring the coordinates in an Excel sheet into Google Earth!

Export the coordinates from Excel

Organise the point coordinates in two columns, latitude and longitude, and give each column a header in the first row.

Save the file in CSV format, choosing the “comma delimited” version.

Import the coordinates into Google Earth

In Google Earth go to “File” – “Open” (CTRL+O), select “Generic Text (CSV, HTML)” in the file type drop-down, find the file you’ve just saved from Excel and confirm.

A data import wizard will open.
It’s important to watch the field separator between latitude and longitude.
I think it’s linked to your system’s general settings (decimal separator, thousands grouping, etc.).
In my case I had to select “Other” and enter the “semicolon”.
I suggest a few tries.
You’ll know you’ve got it right because at the bottom of the import window latitude and longitude will be split into two separate columns.

Google Earth CSV import wizard options

Going on with the procedure you can also customise the icons, colour and text of the placemarks before importing them onto the map.
At the end you’ll see the points in the right place.

Points imported from Excel and a CSV file into Google Earth

Decimal vs sexagesimal degrees

The procedures I’ve explained work with decimal degrees as the unit for latitude and longitude.
These are the degrees you’ll get when exporting from Google Earth and the ones you’ll need in Excel when importing onto the map.

If you have to work with another unit, typically sexagesimal degrees (degrees ° minutes ′ seconds ″), you’ll need to convert them (here’s how).

I hope this article is useful if you need to export coordinates from Google Earth to Excel or vice versa.

See you soon!

Paolo Corradeghini

← All articles