Opened 17 years ago

Closed 17 years ago

#1766 closed defect (fixed)

OGR KML Driver - writes v2.0, reads only v2.1

Reported by: darkblueB Owned by: Didge
Priority: normal Milestone: 1.5.0
Component: OGR_SF Version: svn-trunk
Severity: normal Keywords: kml
Cc: warmerdam, Mateusz Łoskot

Description

the new KML driver for OGR requires KML v2.1 when reading. KML Files produced by the driver via ogr2ogr are set as v2.0.

This is a problem (at least) because many real world work flows would call for making changes to KML iteratively.

KML driver v15 from Google SoC site GDAL 1.4.2 otherwise

Change History (2)

comment:1 by warmerdam, 17 years ago

Cc: warmerdam Mateusz Łoskot added
Keywords: kml added
Milestone: 1.5.0
Owner: changed from warmerdam to Didge
Version: unspecifiedsvn-trunk

Jens,

What is needed to relax the KML reading code so it supports KML 2.0 as well as 2.1? Ideally also older and newer KML variants. The general rule of thumb is that OGR drivers should be as flexible as practical in the versions of a format that they can read.

comment:2 by Didge, 17 years ago

Resolution: fixed
Status: newclosed

I added two more lines to also detect 2.0 and 2.2 (beta). That's just done by parsing the kml-tag for the xml namespace. There is no documentation for 2.0 so I don't know what the differences are. But I think they will not affect the parsing of kml in ogr.

Note: See TracTickets for help on using tickets.