Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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!

share|improve this question
The final command I ran: ogr2ogr -s_srs EPSG:2326 -t_srs EPSG:4326 -f "KML" ~/output.kml ~/input.shp – Jimmy Chu Dec 3 '12 at 9:10
up vote 4 down vote accepted

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.

share|improve this answer
KML only supports WGS 84 system – simplexio Dec 3 '12 at 8:02

Yes off course you need to change the coordinate system. I think you are working with local projected coordinate system. Google KML support Global WGS84. Please convert your coordinate system to WGS84 and then try again to convert the ESRI shp file to KML. If you have access to ArcGIS data interoperability then you can easily convert also.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.