Ticket #2844 (closed defect: worksforme)

Opened 4 years ago

Last modified 4 years ago

OGR cannot read KML 2.2

Reported by: timmie Owned by: condit
Priority: normal Milestone:
Component: OGR_SF Version: 1.5.0
Severity: normal Keywords: KML
Cc: warmerdam, chaitanya

Description

Hello, I wanted to read a simple file saved from Google Earth 5.

It is in doctype KML 2.2.

But OGR doe not recognise it. When I replace the doctype definition (first 2 line) by the KML 2.1 doctpye definition the file is recognised and loaded well in QGIS.

Change History

Changed 4 years ago by warmerdam

  • cc warmerdam, chaitanya added
  • keywords KML added
  • owner changed from warmerdam to condit

Chris,

Do you have time to take this? I'd imagine the change is fairly straight forward. If not, I can have Chaitanya look into it.

Changed 4 years ago by condit

  • status changed from new to assigned

This issue was addressed in: http://trac.osgeo.org/gdal/ticket/2481 To test, I saved a KML document from Google Earth 5.0.11337.1968 (beta) on win32. Here's the resulting KML element: <kml xmlns=" http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom"> ogrinfo in fwtools 2.2.8 opened the file correctly and the latest code in the SVN trunk opens the file correctly. Perhaps an older version of OGR is being used by QGIS?

If updating to the latest OGR does not fix the problem, please attach your test file...

Changed 4 years ago by condit

  • status changed from assigned to closed
  • resolution set to worksforme

Please reopen if there are more details regarding this problem...

Note: See TracTickets for help on using tickets.