I thought that I could open KML layer like a normal vector layer but it doesn't work (it says "invalid datasource"). How can I open a KML layer in QGIS? Or how can I open it anyway, I never worked with kml-data before...

I'm working with QGIS v. 2.0.1, the OS is Windows.


kml is used by Google Earth to show all sorts of things within that programme.

QGIS uses the GDAL driver for kml or libkml which allow to import and export basic geometries:



Unfortunately, not all possibilites can be translated, especially not layers with mixed geometry type (point and line or line and polygon).

It might help to load the data into Google Earth, and separate the geometry types, if possible.

There are kml files too which work as a wrapper around some internet url's. These can not be understood by the GDAL driver.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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