pyCreateTh update

This commit is contained in:
Alex38Lyon
2026-01-08 10:05:09 +01:00
parent cc6b472720
commit 8a54cbfad4
13 changed files with 133 additions and 45 deletions
@@ -88,6 +88,9 @@ def read_vtopo_header(lines):
if u'Trou' in line:
# read Trou
(cavename, xcoord, ycoord, alt, coordtro) = line[5:].replace(u'\n', u'').rstrip(u'\n\r').split(u',')
xcoord = "{:.2f}".format(float(xcoord) * 1000)
ycoord = "{:.2f}".format(float(ycoord) * 1000)
alt = "{:.2f}".format(float(alt) * 1)
coordinates = [xcoord, ycoord, alt]
# read club
if u'Club' in line: club = line[5:].replace(u'\n', u'')