This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# Convert (and delete) TES files in Wintec WBT-201 to GPX files. | |
use strict; | |
use warnings; | |
use File::Basename; | |
use Time::Piece; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import lxml.etree as le | |
def main(filename): | |
with open(filename, 'r+b') as f: | |
doc = le.parse(f) | |
# strip border strokes | |
for elem in doc.xpath('//*[attribute::style]'): | |
if 'stroke:none' in elem.attrib['style']: |