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: http://extensions.services.openoffice.org/project/AltSearch) Hope this helps ----- Mail Original ----- De: "Agustin Lobo" <[email protected]> À: "Siki Zoltan" <[email protected]> Cc: "qgis-user" <[email protected]>, "qgis-developer" <[email protected]> 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 Thanks! 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? Agus 2010/12/23 Siki Zoltan <[email protected]>: > 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 >> [email protected] >> http://lists.osgeo.org/mailman/listinfo/qgis-user > > _______________________________________________ > Qgis-user mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/qgis-user > > _______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer _______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
