[Qgis-developer] Error in QGIS or not proper KML format?

Even Rouault even.rouault at spatialys.com
Tue Dec 8 02:13:00 PST 2015


Le mardi 08 décembre 2015 10:50:04, magerlin a écrit :
> When I recieve KML files from af public state bureau the point coordinates
> are written like this in the kml file:
> 
> <Point>
> <coordinates>8.43307284569448, 55.478226574306</coordinates>
> </Point>
> 
> When opening it in Qgis all points get a y coordinate of zero. Removing the
> blank between the "," and the y coordinate 55.478 solves the problem.
> Google Earth can open the files without problems.
> 
> Shall I claim the producer for not writing proper KLM or is it an error in
> Qgis (or OGR or whatever is used for reading KLM)?

This is invalid KML. Depending on whether you use the "old" KML driver or the 
one based on libkml, this will respectively not work / work :
https://trac.osgeo.org/gdal/ticket/5140

Yes, the producer should fix their KML.

> 
> 
> 
> -----
> Regards Morten
> 
> Currently using Qgis 2.12.1 (OSGeo4),
> Windows 7, 64bit
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Error-in-QGIS-or-not-proper-KML-format
> -tp5240377.html Sent from the Quantum GIS - Developer mailing list archive
> at Nabble.com. _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the Qgis-developer mailing list