2

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.

nmtoken
  • 13,355
  • 5
  • 38
  • 87
qgs
  • 288
  • 1
  • 8
  • 16

1 Answers1

2

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:

http://www.gdal.org/ogr/drv_kml.html

http://www.gdal.org/ogr/drv_libkml.html

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.

AndreJ
  • 76,698
  • 5
  • 86
  • 162