2

I have almost the same question that was solved here (How to merge multiple KML points into one file?) but I cannot find the same options as the solution (https://gis.stackexchange.com/a/231506/96160).

I have 30 separate lines in a Google Earth kml. I need to merge them into one shapefile so I can import that to AutoCAD Civil 3D 2016. Right now they are 30 different vector layers.

How do you get the same options in version 2.18.7 on Windows as JohnR has in version 2.18.0 on Mac?

This is a screen shot from v2.18.7 on Windows. enter image description here

This is a screen shot from v2.18.0 on Mac. https://i.stack.imgur.com/QRiOf.png

  • Did you scroll to the right? It looks as if there is more to the right and you may find the button. – Fezter Apr 26 '17 at 22:41
  • Yes, but it still does not let you select multiple layers. It lets you open a file from the computer, but it does not open .kml files. – GIS Apr 26 '17 at 23:01
  • Are all the kmls definitely the same geometry? Shapefiles can only store a single geometry type. – Fezter Apr 26 '17 at 23:17
  • Yes, it is a single kml with multiple line segments about 1,500 feet in length. – GIS Apr 26 '17 at 23:50
  • What you're trying to do is fundamentally different to what the other question is about. The other question is focused on combining multiple KML files into one shapefile. You're trying to merge line segments in a KML into one line and convert to shapefile. These are two separate steps. – Fezter Apr 26 '17 at 23:53
1

To convert a KML to a shapefile, you simply need to open the KML in QGIS, right click on the layer, and click on Save As. Then choose shapefile.

Add Vector Layer:

enter image description here

Select your KML:

enter image description here

Save As...

enter image description here

Save it as an ESRI Shapefile.

enter image description here

  • Thank you Fezter. I was afraid this was going to be the only way. I will do a save as on all 30 line segments then use the merge shapefiles to one option. – GIS Apr 27 '17 at 16:44
  • I think you misunderstand. The above will convert all 30 line segments from a KML to Shapefile. No need to merge them. You're simply converting a single kml to a single shapefile, correct? – Fezter Apr 27 '17 at 22:23
  • Yes, I am converting a single kml to shp, but when I add the kml layer it splits all the line segments into individual layers. The kml is a polyline/path it is 30 separate line segments. – GIS May 1 '17 at 14:54

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.