Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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
add comment

2 Answers 2

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
1  
KML only supports WGS 84 system –  simplexio Dec 3 '12 at 8:02
add comment

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
add comment

Your Answer

 
discard

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.