1
0
Fork 0

Added a comment indicating the gpx2svg version used to create the svg file.

This commit is contained in:
Tobias Leupold 2014-09-03 17:54:56 +02:00
parent 2341b13092
commit 592bdaf36b
1 changed files with 1 additions and 3 deletions

View File

@ -225,6 +225,7 @@ def writeSvgData(gpsData, width, height, maxPixels, dropSinglePoints, outfile):
'<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" '
'"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n'
))
fp.write('<!-- Created with gpx2svg {} -->\n'.format(__version__))
fp.write(
(
'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" '
@ -283,14 +284,11 @@ def writeSvgData(gpsData, width, height, maxPixels, dropSinglePoints, outfile):
fp.close()
def main():
# Setup the command line argument parser
cmdArgParser = argparse.ArgumentParser(
description = 'Convert GPX formatted geodata to Scalable Vector Graphics (SVG)',
epilog = 'gpx2svg {} - http://nasauber.de/opensource/gpx2svg/'.format(__version__)
)
cmdArgParser.add_argument(
'-i', metavar = 'FILE', nargs = '?', type = str, default = '/dev/stdin',
help = 'GPX input file (default: read from STDIN)'