[gdal-dev] Relax KML driver about xmlns

Roger André randre at gmail.com
Tue May 19 20:49:14 EDT 2009


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 <mateusz at loskot.net> wrote:

> 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 unknown
> software shipped with some GPS logger.
>
> I'm wondering if there are more KML generators in use that
> produce <kml> element without xmlns attribute.
>
>
> [1]
>
> http://trac.osgeo.org/gdal/browser/trunk/gdal/ogr/ogrsf_frmts/kml/kml.cpp#L268
> [2] http://mateusz.loskot.net/tmp/gdal/no-xmlns.kml
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
> Charter Member of OSGeo, http://osgeo.org
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20090519/b0151016/attachment.html


More information about the gdal-dev mailing list