Passage Data

Check a file →

Shapefile to KML, for Google Earth

Shapefile → KML (OGC 07-147r2)

What you are seeing — you want to see a shapefile in Google Earth, and the converters you find want an install or put it in the wrong place.

The short answer

KML is WGS 84 by specification. OGC 07-147r2, section 6.1, fixes it as longitude and latitude in decimal degrees. A KML file has no way to say its coordinates are in another system, and every program reads it as WGS 84.

That is the whole difficulty, and why a converter can produce a file that opens and is still wrong. A national grid gives metres from a false origin, which cannot become degrees without the projection's parameters. Degrees on a different datum look ordinary, yet sit metres or hundreds of metres from where the KML places them.

The rest of the answer — 1 more point

So read the .prj before you convert. A projected grid has to be reprojected to WGS 84 (EPSG:4326) first. A different datum needs a datum transformation, not a new label.

The conversion, in order

  1. Keep the bundle together: .shp, .dbf, .shx and, above all, the .prj.
  2. Open the .shp in QGIS (free) and read the layer's coordinate system first.
  3. Export it with Save Features As → KML. Coordinates come out as longitude, latitude: KML's own order, and the order the .shp already stores, so nothing is flipped.
  4. Open it in Google Earth. Attribute values appear in each place's description.
Check the coordinate system first

Drop the zipped shapefile to see which coordinate system it declares, before you convert it. Free during the testing period. No account needed. Without one, what we read trains our reader (names removed); signed in, nothing is kept.

Check the file you have →

Related