First attempt

This commit is contained in:
Patrick Jentsch
2021-08-10 14:43:55 +02:00
parent 66516eeb89
commit 0ba0c14b72
4 changed files with 99 additions and 214 deletions

View File

@ -25,6 +25,12 @@ def main():
if text_md5.hexdigest() != stand_off_data.meta['file']['md5']:
raise Exception('md5 not equal')
with open(args.text, encoding=stand_off_data.meta['file']['encoding']) as text_file:
text = text_file.read()
with open(args.output, 'w') as vrt_file:
vrt_file.write(stand_off_data.to_vrt(text))
if __name__ == '__main__':
main()