Ticket #2181 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

KML: Encoding issue and mixed container

Reported by: lhahne Owned by: warmerdam
Priority: normal Milestone: 1.6.1
Component: OGR_SF Version: 1.5.0
Severity: normal Keywords: kml
Cc:

Description

Ogr2ogr and ogrinfo fail to open a KML file which has no problems opening with Google Earth.

Attachments

raja.kml Download (0.7 MB) - added by lhahne 4 years ago.

Change History

Changed 4 years ago by lhahne

Changed 4 years ago by rouault

  • keywords kml added
  • component changed from Utilities to OGR_SF
  • summary changed from Ogr2ogr and ogrinfo fail to open a KML file to KML: Encoding issue and mixed container

I've improved a bit in r13623 the reporting of XML parsing error of the KML driver. Here the first problem is that the "Windows-1252" encoding of the XML file that is not handled by the Expat library out of the box. See the section "Encoding issues" of the GPX driver  http://www.gdal.org/ogr/drv_gpx.html, that also uses the Expat library. I think that supporting other encodings is possible, but require additionnal work from the application.

I've replaced "Windows-1252" by "ISO-8859-1", but the reading stops with "KML: We have a mixed container here" (message reported in debug mode), which is an issue already reported as #1803 and #1853.

I took the liberty to rename the summary to reflect both issues

Changed 3 years ago by rouault

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to 1.6.1

In trunk (r16908) and branches/1.6 (r16909) : "KML: Add support for reading MultiGeometry? and layers with mixed geometry type. Avoid quadratic complexity when reading KML files. Advertize 25D geometry type when relevant"

Test improved in r16910

Note: See TracTickets for help on using tickets.