[GIS] How to convert ESRI SHP to KML with correct coordinate system

google mapskmlshapefile

I am working on this SHP file, containing geographical district of Hong Kong. I would like to export this to KML and export it to Google Map for overlay.

After I converted it to KML in QGIS (just save as kml format) and opened it in Google Map, it seems the coordinate is out of the entire map world region. Is there any conversion I need to do from ESRI SHP coordinate system to Google Map compatible coordinate system?

Thank you for any pointer!

Best Answer

For such conversion I often use the free and opensource tool ogr2ogr

An easy to use command line. A cheatsheet with must common command from Boston GIS

It would be something like: ogr2ogr "KML" output_filename.kml input_filename.shp

With this tool you can also set the coordinate system.

Related Question