Convert Shapefile to kml by QGIS




View akshay upadhyay's profile on LinkedIn

Convert Shapefile to kml by QGIS. Shapefile is ESRI based Vector file, While KML or Keyhole Markup Language is file which models and stores geographic features for display in Google Earth or Google maps. Many times you may require to convert the required shapefile to KML file, so that you can deploy the same over Google Earth for some reason. QGIS (Quantum GIS) is an open source GIS (Geographic Information System) tool, which let you upload the Shapefile and convert the same to KML file. You can also see to convert Kml to Shapefile and also Shapefile to GeoJSON in QGIS.

 

You can also go through other tutorial in QGIS. Here are the steps to convert shapefile to kml:

Convert Shapefile to kml in QGIS

Convert Shapefile to kml by QGIS

Convert Shapefile to kml by QGIS

Convert Shapefile to kml in QGIS:

1.) Open up the installed QGIS.
2.) In the menu bar, select Layer and press Add Vector Layer. Now select the source type in the pop up window opened as File and browse the source Shapefile(Note:Your shapefile .shp, .dbf and .shx file should be in same folder). Press open.

Convert Shapefile to kml by QGIS

Convert Shapefile to kml by QGIS

Select the coordinate reference type system if coordinate reference window appears and press ok.

3.) Right click on the name of Shapefile layer Appearing in the Left upper side and select save as:
or
You can select layer from the menu, and click on save as. (Image below provide demonstrate both the options with the indicator displayed)

Convert Shapefile to kml by QGIS

Convert Shapefile to kml by QGIS

4.) In the Save vector layer as window, Select the format from the drop down box as Keyhole Markup Language(KML) and browse the folder in which you want to save the KML file . Name it and Press OK.

Convert Shapefile to kml by QGIS

Convert Shapefile to kml by QGIS

Your KML file will be Exported in the directed folder. You can Verify the generated KML file for its validity by uploading the generated KML file to QGIS or uploading KML file in Google map. You may soon find the tool and the coding for the same on this site.

8 thoughts on “Convert Shapefile to kml by QGIS

  1. Rean Fadyl

    It can be helpful to note that there are two fields in the exported KML file that can be used to store metadate e.g. names or numbers to enable the shapefile to be linked to other datasets these are Name and Description. This is useful for when you are creating KML files for use in tools such as Qlik Sense.

    Steps:
    1. Right click on your layer and select Open Attribute Table
    2. Note down the names of the fields that contain the metadata you want to bring across
    3. Update the DescriptionField and NameField boxes in the “Datasource Options” with the metadata field names.

    Reply
    1. FRanck

      Thanks for this information.
      However, it seems not to work if the type of one of those fields is numeric.
      Do you have an idea ?

      Reply
  2. Erlinda Kartika

    I can manage to convert from shp to kml but some of the tribute table s missing. Why is it like this? and how can I simply convetr Shp to KML together with the atribute table.
    Thanks

    Reply

Your email address will not be published. Required fields are marked *

Subscribe For Latest GIS MAP Updates

Signup for our newsletter and get notified when we publish new articles for free!