[Qgis-developer] Re: [Qgis-user] Problem with kml file

mayeul.kauffmann at free.fr mayeul.kauffmann at free.fr
Thu Dec 23 08:40:08 EST 2010

Using Linux grep, you can remove the problematic tags, for instance to remove all lines with "<TR", do:

grep -v "<TR" fluxpyr_221010_1.kml > fluxpyr_221010_modif.kml

This deletes about two thirds of the lines!

You can use sed to have more control.
If you want a graphical interface/an easier Windows solution, you can use find and replace in OpenOffice.org writer.
(for finer control, use this OOo extension: 
Hope this helps

----- Mail Original -----
De: "Agustin Lobo" <alobolistas at gmail.com>
À: "Siki Zoltan" <siki at agt.bme.hu>
Cc: "qgis-user" <qgis-user at lists.osgeo.org>, "qgis-developer" <qgis-developer at lists.osgeo.org>
Envoyé: Jeudi 23 Décembre 2010 13h57:19 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne
Objet: [Qgis-developer] Re: [Qgis-user] Problem with kml file


Any way I can reformat the file? This file has been given to me, no way I
can modify the options of the gps now.
Or perhaps there is a way to tell gdal-OGR the file has html format
and then write a shapefile?


2010/12/23 Siki Zoltan <siki at agt.bme.hu>:
> Dear Augustin,
> you have html code in the description field of the xml.
> You sould display them in a browser e.g. FireFox.
> Or you should change the export configuration of your software/GPS to have
> plan txt.
> I've attached a sniplet from your xml in html and an image in my browser.
> regards,
> Zoltan
> On Thu, 23 Dec 2010, Agustin Lobo wrote:
>> Hi!
>> I have a problem with a kmz [1] (unzipped to kml [2]) file that once
>> imported to QGIS
>> has a table plenty of control characters etc [3]. I would appreciate
>> if someone knowing the
>> format could give a look to the kml file and tell me if the file is
>> defective or
>> we have a problem at importing some of them to QGIS, perhaps there are
>> different versions of kml.
>> The files are
>> [1] https://sites.google.com/site/filestemp2/home/fluxpyr_221010_1.kmz
>> [2] https://sites.google.com/site/filestemp2/home/fluxpyr_221010_1.kml
>> [3] https://sites.google.com/site/filestemp2/home/kmlproblem.jpeg
>> Thanks!
>> Agus
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
Qgis-developer mailing list
Qgis-developer at lists.osgeo.org

More information about the Qgis-developer mailing list