Bug report #13014

Processing: OGR Convert Format fails to convert KML to Shapefile

Added by Jorge Santos about 9 years ago. Updated about 9 years ago.

Status:Closed
Priority:High
Assignee:Giovanni Manghi
Category:Processing/GDAL
Affected QGIS version:2.8.2 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:invalid
Crashes QGIS or corrupts data:Yes Copied to github as #:21090

Description

There's a crash when I'm trying to convert data form KML to ESRI Shapefile. No outtput file was produced. QGIS 2.8.2 32 Bit Standalone.

QGIS28_Processing_OGR_ConvertFormat_BUG.png - PNG image (112 KB) Jorge Santos, 2015-06-20 12:10 PM

QGIS282_BUG_Processing_OGR_ConvertFormat.mp4 - MP4 video (3.44 MB) Jorge Santos, 2015-06-20 12:10 PM

PONTO1.kml - KML file (1.49 KB) Jorge Santos, 2015-06-20 01:43 PM

History

#1 Updated by Jukka Rahkonen about 9 years ago

Please attach a minimal version of PONTO1.kml so that others can try to reproduce the issue. BTW. I would not call it as a crash, QGIS of GDAL does not find a layer to process but it does not crash but throws an error message.

#2 Updated by Giovanni Manghi about 9 years ago

  • Assignee changed from Victor Olaya to Giovanni Manghi
  • Status changed from Open to Feedback

I have just tested on qgis master on Windows and is ok here. Please attach sample data.

#3 Updated by Jorge Santos about 9 years ago

Thanks, Jukka/Giovanni. Here goes.

#4 Updated by Giovanni Manghi about 9 years ago

  • Status changed from Feedback to Closed
  • Resolution set to invalid

in your kml file the "name" tag contains a layer name in the form of "PONTO1.kml" while it should be "PONTO1". Maybe it is allowed but anyway ogr2ogr (and this qgis tool) expects to find a layer that has the same name as the file (without the ".kml").

#5 Updated by Jorge Santos about 9 years ago

Giovanni Manghi wrote:

in your kml file the "name" tag contains a layer name in the form of "PONTO1.kml" while it should be "PONTO1". Maybe it is allowed but anyway ogr2ogr (and this qgis tool) expects to find a layer that has the same name as the file (without the ".kml").

Oh, my gosh... Sorry for taking your time. I open this file in Google Earth and change the name "PONTO1.kml" to "PONTO1" and works now. Thank you very much.

Also available in: Atom PDF