RE: [gdal-dev] Relax KML driver about xmlns

2009-05-20 Thread Christopher Condit
Hi Mateusz- Would it make sense to relax a bit the KML driver here [1] so it accepts kml root without xmlns attribute? The problem is that the KML schema had many iterations before becoming an OGC standard and in some cases those schema changes are not backward compatible. The namespace exists

Re: [gdal-dev] Relax KML driver about xmlns

2009-05-20 Thread Even Rouault
I've verified that the KML driver only looks for a known version (2.0, 2.1, 2.2), but doesn't make any other use of it, so we could reasonably implement Christopher's proposal : if the document element _is_ kml and the version _is not_ found or not recognized OGR issues a warning and proceeds

Re: [gdal-dev] Relax KML driver about xmlns

2009-05-20 Thread Mateusz Loskot
Christopher Condit wrote: Hi Mateusz- Would it make sense to relax a bit the KML driver here [1] so it accepts kml root without xmlns attribute? The problem is that the KML schema had many iterations before becoming an OGC standard and in some cases those schema changes are not backward

[gdal-dev] Relax KML driver about xmlns

2009-05-19 Thread Mateusz Loskot
Hi, Would it make sense to relax a bit the KML driver here [1] so it accepts kml root without xmlns attribute? One user reported to me that he is not able to read this file [2] using OGR KML driver and I found this is because of missing xmlns in kml root element. The KML was produced by some

Re: [gdal-dev] Relax KML driver about xmlns

2009-05-19 Thread Roger André
Are you doing any version-dependent actions, or just checking for one of three versions? If not, then yes, I'd say take the namespace requirement out. Roger -- On Tue, May 19, 2009 at 4:30 PM, Mateusz Loskot mate...@loskot.net wrote: Hi, Would it make sense to relax a bit the KML driver