Skip to main content
Bumped by Community user
Bumped by Community user
edited tags; edited title
Link
underdark
  • 84.5k
  • 22
  • 233
  • 415

Converting KML with multiple layers to shapefile using QGISShapefiles?

Bumped by Community user
Structured, Title adjusted
Source Link
Taras
  • 34.1k
  • 4
  • 73
  • 148

Converting KML to Shapefileshapefile using QGIS?

I have a kml file which is like a zip kml file available in hereKML-file (available https://www.eorc.jaxa.jp/ALOS-2/obs/map/world_asc/kml/A_Cycle06.kmlhere) which. It has several polygon paths for Alos/Palsar images. 

I am in need to convert all these files from KmlKML to shapefile, saving the layers using the layer ID"ID".

I am trying to use the piece of code bellow (PyQGIS), but I do not know how to unzip this kmlKML and save the shapefiles using the layer ID"ID" information

vlayer = QgsVectorLayer("D:/KML-Images/A_Cycle06.kml", "line", "ogr")

writer = QgsVectorFileWriter.writeAsVectorFormat(vlayer, "D:/KML-Images/<layer ID>.shp", "utf-8", None, "ESRI Shapefile")

Converting KML to Shapefile using QGIS?

I have a kml file which is like a zip kml file available in here (https://www.eorc.jaxa.jp/ALOS-2/obs/map/world_asc/kml/A_Cycle06.kml) which has several polygon paths for Alos/Palsar images. I am in need to convert all these files from Kml to shapefile, saving the layers using the layer ID.

I am trying to use the piece of code bellow (PyQGIS), but I do not know how to unzip this kml and save the shapefiles using the layer ID information

vlayer = QgsVectorLayer("D:/KML-Images/A_Cycle06.kml", "line", "ogr")

writer = QgsVectorFileWriter.writeAsVectorFormat(vlayer, "D:/KML-Images/<layer ID>.shp", "utf-8", None, "ESRI Shapefile")

Converting KML to shapefile using QGIS?

I have a KML-file (available here). It has several polygon paths for Alos/Palsar images. 

I am in need to convert all these files from KML to shapefile, saving the layers using the layer "ID".

I am trying to use the piece of code bellow (PyQGIS), but I do not know how to unzip this KML and save the shapefiles using the layer "ID" information

vlayer = QgsVectorLayer("D:/KML-Images/A_Cycle06.kml", "line", "ogr")

writer = QgsVectorFileWriter.writeAsVectorFormat(vlayer, "D:/KML-Images/<layer ID>.shp", "utf-8", None, "ESRI Shapefile")
deleted 46 characters in body; edited tags; edited title
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

Convert Converting KML to Shapefile using QGIS?

I have a kml file which is like a zip kml file available in here (https://www.eorc.jaxa.jp/ALOS-2/obs/map/world_asc/kml/A_Cycle06.kml) which has several polygon paths for Alos/Palsar images. I am in need to convert all these files from Kml to shapefile, saving the layers using the layer ID.

I am trying to use the piece of code bellow (PyQGIS), but I do not know how to unzip this kml and save the shapefiles using the layer ID information

vlayer = QgsVectorLayer("D:/KML-Images/A_Cycle06.kml", "line", "ogr")

writer = QgsVectorFileWriter.writeAsVectorFormat(vlayer, "D:/KML-Images/<layer ID>.shp", "utf-8", None, "ESRI Shapefile")

Any help on that will be very appreciated.

Convert KML to Shapefile QGIS

I have a kml file which is like a zip kml file available in here (https://www.eorc.jaxa.jp/ALOS-2/obs/map/world_asc/kml/A_Cycle06.kml) which has several polygon paths for Alos/Palsar images. I am in need to convert all these files from Kml to shapefile, saving the layers using the layer ID.

I am trying to use the piece of code bellow (PyQGIS), but I do not know how to unzip this kml and save the shapefiles using the layer ID information

vlayer = QgsVectorLayer("D:/KML-Images/A_Cycle06.kml", "line", "ogr")

writer = QgsVectorFileWriter.writeAsVectorFormat(vlayer, "D:/KML-Images/<layer ID>.shp", "utf-8", None, "ESRI Shapefile")

Any help on that will be very appreciated.

Converting KML to Shapefile using QGIS?

I have a kml file which is like a zip kml file available in here (https://www.eorc.jaxa.jp/ALOS-2/obs/map/world_asc/kml/A_Cycle06.kml) which has several polygon paths for Alos/Palsar images. I am in need to convert all these files from Kml to shapefile, saving the layers using the layer ID.

I am trying to use the piece of code bellow (PyQGIS), but I do not know how to unzip this kml and save the shapefiles using the layer ID information

vlayer = QgsVectorLayer("D:/KML-Images/A_Cycle06.kml", "line", "ogr")

writer = QgsVectorFileWriter.writeAsVectorFormat(vlayer, "D:/KML-Images/<layer ID>.shp", "utf-8", None, "ESRI Shapefile")
Source Link
Loading