Convert KML to Shapefile in QGIS



Convert KML to Shapefile in QGIS. KML or Keyhole markup language file which store and models geographic features for displaying in Google earth or Google maps, which is not common in use for Map makers and GIS programmers. ESRI made a standard Vector file i.e Shapefile which is most commonly adopted in the field of GIS (Geographic Information System), and this made me to convert KML to shapefile, created for learning purpose from Google map. QGIS (Qunatum GIS) is an open source GIS tool, which provide you a function to convert the Shapefile to GeoJSON fileKML file to Shapefile, and Vice versa i.e Shapefile to kml file.

Convert KML to Shapefile in QGIS

Convert KML to Shapefile in QGIS

You might be interested in seeing QGIS tutorials.

Convert KML to Shapefile in QGIS:

1.) Open up the installed QGIS.
2.) Select Layer in the menu bar and press Add Vector Layer or select the shortcut icon. Browse the KML file, in the Source DataSet type, in the pop up window opened.(While browsing, select either all files or Key Hole Markup language in file type). And press Open.

Convert KML to Shapefile in QGIS

Convert KML to Shapefile in QGIS

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

3.) In the Layer file appearing in the left upper side, right click on it, and select save as:

or

you can either select layer from the menu and click on save as.

Convert KML to Shapefile in QGIS`

Convert KML to Shapefile in QGIS

4.) In the Save vector layer as window, Select the format from the drop down box as ESRI Shapefile(OGR) and browse the folder in which you want to save the shapefile. Name it and Press OK.

Convert KML to Shapefile in QGIS

Convert KML to Shapefile in QGIS

Your Shapefile i.e .shp, .shx and .dbf file will be created in the directed folder. Upload your KML file in your map browser tool, or try our tool, to verify whether the tool preserves all attributes and elements or not. You may also see how to merge two shapefile in QGIS. Do comment below if you are getting any problem in converting the file.

7 thoughts on “Convert KML to Shapefile in QGIS

  1. Pingback: google maps qgis - Search Yours

  2. Pingback: google maps qgis - Search Yours

  3. Roger W

    I can’t get this to work. . I’m following the instructions but the only thing that get’s created are three files: test.dbf, test.prj and test.qpj. No “test.shp”.
    When the processing has finished I’m getting an error message telling me C:/Users/Chefen/Pictures/Helikopter/Kavaheden/Test 2016-06-11/test.shp is not “a valid or known data source” or something similar.
    I’m using QGIS 2.14.

    Please advice me

    Reply
  4. Philip H

    This preserves the shapes fine, but not the attribute table. On import of the .kml, all fields are combined into one, labelled ‘Name’. How do you preserve the structure of the attribute table?

    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!