Skip to content

Instantly share code, notes, and snippets.

@davidroettger
davidroettger / strip_border.py
Created March 23, 2019 14:03 — forked from thobbs/strip_border.py
Strip the border from an SVG for plotting through Inkscape
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']:
#!/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;